Questions tagged as 'laravel'

1
answer

compile laravel mix 5.4

Hello, I have a problem with laravel 5.4 I'm trying to put a personal js library of mine and I can not even remove the vue My package.json { "private": true, "scripts": { "dev": "npm run development", "development": "cro...
asked by 01.06.2017 / 17:40
1
answer

Maximum function nesting level of '100'

I'm getting the following error in Laravel (when retrieving a password):    Maximum function nesting level of '100' reached, aborting! The solution I found was to add this line in autoload.php ini_set('xdebug.max_nesting_level', 500);...
asked by 09.05.2017 / 13:58
1
answer

Random Search laravel

I'm doing a random query in the users table of my application in laravel , example below: User::inRandomOrder()->paginate(10) It actually returns the result to me in a random way, but I need the whole record of the...
asked by 12.06.2017 / 22:16
1
answer

What is the best strategy for creating a record and associating with another by means of a pivot table?

The section below takes the user's session data, uses the posts method present in the User model to create a new post in the database. I then retrieve the id of the created record and associate this record with a category...
asked by 17.04.2017 / 13:52
1
answer

Date update in Laravel

I'd like to change the value of the date field at the time of a data edit. I can bring all the values except the date. I'm using Laravel's Form :: : {!! Form::label('dtemissao','Data de Emissão') !!} {!! Form::input('date','dtemissao',$Fin...
asked by 12.04.2017 / 19:25
1
answer

Help with relationships in laravel

I'm really enjoying using laravel 5.4 and I have some questions about relationships and how best to use I have the tables evento -id -nome categorias_evento -id -id_evento -nome lotes_evento -id -id_categorias_evento -valor itens_ev...
asked by 08.06.2017 / 21:32
2
answers

Seeder Laravel with 2 relationships

I need a help, I want to create a Category for each Category and for each Local / strong>, but when running the seeds, the error below occurs:    Call to undefined method Illuminate \ Database \ Query \ Builder :: each () Model Pla...
asked by 10.06.2017 / 23:14
1
answer

Instantiate class within the bootstrap / start.php file Laravel 4.2?

I have an application running Laravel 4.2 , I have a class that takes care of IP's in blacklist , and this is saved in the database. I need when a user accesses my application the system validates if IP is in blac...
asked by 09.06.2017 / 14:38
1
answer

Correct way to install Laravel on Linux

I'm starting in the Laravel Framework and I'm having some problems with installing on Linux. I made the installation by composer using the command php composer.phar global require "laravel / installer" , set the $ PATH path export PATH="$ PATH...
asked by 11.03.2017 / 04:28
2
answers

How to remove duplicate query values in two tables?

I am doing a query in two tables (students and users) and taking the values of id, name and email. Soon after I make a union between them. However, I wanted to have no rows with duplicate values for the email field. I need these values because f...
asked by 25.04.2017 / 17:39