Questions tagged as 'laravel-5'

1
answer

How do I list all instanciable controllers in Laravel?

In Laravel 5, we have a folder called Http\Controllers which has the controllers used in the application. There is also a controller called Controller , which is abstract, that is, it is used only to be extended by other controll...
asked by 18.05.2016 / 16:29
2
answers

Save Related Models (One to One) - Laravel 5.1

I have a Model Info and a Model Complement that are listed one by one. The relationships are already working properly, I can pull the data and such, but I need to do an update and I do not know how. Currently I get all the data in r...
asked by 14.04.2016 / 16:01
1
answer

How to escape a javascript variable for the Laravel blade?

Hello, I have this javascript function that gets a parameter: function teste(id){ document.getElementById("campo1").innerHTML = id; document.getElementById("campo2").innerHTML = {{app\User::find("id")->titulo}} } How do I get the Use...
asked by 24.02.2016 / 21:35
1
answer

Eloquent giving 500 error with many results [closed]

I'm doing a query in my database with some LEFT JOIN and some WHERE clauses, however, I'm having a lot of difficulties regarding the return of this query, which, having many results, simply after a certain processing time gives 500 error For exa...
asked by 26.01.2016 / 16:20
1
answer

Problem with select and use of ajax in Laravel 5 [closed]

I'm trying to implement a select with ajax in laravel 5 I have the following situation. A state model class class Estados extends Model { protected $table = 'estados'; public function cidades() { return $this->hasMany( 'App\Models...
asked by 28.02.2016 / 03:10
2
answers

Controller pulling bank data from the wrong place

I have the application properly configured and running normally. But one detail is stuck. This is my .env file: APP_ENV=local APP_DEBUG=true APP_KEY=9FaEj6iJCBur1favtWQ88b8m1anbGbzP DB_HOST=localhost DB_DATABASE=laravel_blog DB_USERNAME=roo...
asked by 22.12.2015 / 19:09
1
answer

Command Laravel [closed]

I have a queue class in laravel 5.1 that does an insert in mysql through a csv, but I can not use session in this class and not even get the id of the user logged in by oauth 2. How can I do this, at least use session. Within the handler meth...
asked by 29.09.2015 / 18:54
1
answer

Filter a query using an attribute in Laravel

I have, in short, the following structure: Suppliers : id | cnpj | razao_social | endereco_id People : id | nome | tipo_pessoa | fornecedor_id Model - Supplier: public function endereco() { return $this->hasOne('...
asked by 15.09.2015 / 17:54
2
answers

Nothing to migrate

Hello, I'm starting in php plus the Laravel framework, and my doubt is regarding the command php artisan migrate  to migrate a table in the database. When I ran the command for the first time it presented this message Nothing to mi...
asked by 18.09.2015 / 06:55
1
answer

Error while executing gulp --production Vagrant Laravel / Homestead

I set up a laravel/homestead environment to study Laravel 5.1 , when trying to execute the gulp --production command I get the following error: Error: Cannot find module 'strip-bom' at Function.Module._resolveFilena...
asked by 13.09.2015 / 23:28