Questions tagged as 'laravel-5'

1
answer

Error bringing information from the database in laravel 5.3

I have a student table with the following structure: And a TestAuth table with this structure: As you can see both are related to the Group table, I am trying to consult the students that belong to the same group that is associ...
asked by 03.11.2016 / 03:02
0
answers

High use of the cpu with gulp watch in laravel

Good afternoon. How can I avoid using 50% of my cpu when using gulp watch with webpack or browserify in Laravel? : / addition browserSync is not working, the pages are not updated and there are errors in the chrome console. elixir(function(mix...
asked by 21.09.2016 / 19:39
2
answers

Problem with Validate Rules Laravel

I have a Table Role with the attributes id and Role . I do some of the roles softdelete . Now, when I want to create a new role I have the following rules: public function rules() { return [ 'role' => '...
asked by 26.10.2016 / 14:54
2
answers

Error in the Eloquent concept and namespaces

I am developing an application with laravel 5.3 THE application changes the name App to MyApp with artisan Everything works fine except when I went to use an eloquent model, for example User composer.json ... "psr-4": { "C...
asked by 26.10.2016 / 09:54
1
answer

Import of filters in angular Js 1.5.8

In my html I have the code which I call the filter <div class="stream-media" ng-if="'video' == stream.type"> <div class="embed-responsive embed-responsive-16by9"> {{ stream.code | trustHt...
asked by 11.11.2016 / 22:47
1
answer

Instanciar files in L5 Modular - Laravel 5

Through the "artem-schander / l5-modular" library: "dev-master" [ link installed in the composer json, I am adjusting my project to be modular and not mix everything in it (see folder Modules / Reports in the image). Everything works correctl...
asked by 17.08.2016 / 00:24
3
answers

Dynamically call a method within a class

is it possible to call methods dynamically in PHP? Within a class you want to have different methods with a pattern class MyClass { private $tables; function __construct(){ $this->tables = array('a','b','n'); }...
asked by 09.07.2016 / 11:49
1
answer

Error deploy App Laravel 5 in Heroku

When executing the $git push heroku master command it throws me the following error: [Symfony\Component\Debug\Exception\FatalThrowableError] Class 'Way\Generators\GeneratorsServiceProvider' not found I followed all the steps of insta...
asked by 09.09.2016 / 22:36
1
answer

How to paginate 2 lists with laravel

as I can page 2 lists with their page each one that at the time of paging does not change the data in the 2 lists if only change where I am paging.     
asked by 13.04.2016 / 19:13
1
answer

Problems with Accessors and Mutators in Laravel 5

Following an example of L5 in your documentation, what I present here should print a title in capital letters, it is just an example because what I want to do is something else but if the example does not work for me it is because something is w...
asked by 31.03.2016 / 03:48