Questions tagged as 'laravel-5'

1
answer

Obtain data from tables of different database

I have a dilemma that I try to do something that I do not know if it is even possible, I have 2 databases dpnmwin and spi_intranet of which dpnmwin is an existing one of a long time ago and which I can not touch its structur...
asked by 01.06.2018 / 19:00
1
answer

How to create a request object in laravel 5.1?

I need to have a request in laravel 5.1, but I need to create it from php and not from a form. What I'm trying to do is call a laravel function to regain user passwords from my own controller private function sendEmailWithPassword($objUser) {...
asked by 12.02.2018 / 17:17
3
answers

Doubts about method EDIT, UPDATE and routes

I'm working with the default auth of laravel, the question I have is that to edit the profile, is it necessary to pass the user's $ id in the edit form? this $ id is captured by the EDIT method of the UserController and then by the UPDATE method...
asked by 19.03.2018 / 20:31
1
answer

Access object element returned to view by laravel blade

I'm working with blade laravel, I need to access the internal elements of an array that I return to my view from the controller, this is the result when I make a dd [! [Arrangement] [1]] [1]     
asked by 20.02.2018 / 22:04
1
answer

How to define an alias to columns with the same name in Laravel?

I have a question. how do I define the alias for columns with the same name ????. In particular I wish to consult my Database with records related to laravel in the following way $proveedor =DB::table('proveedors') ->join('pais'...
asked by 08.05.2018 / 20:57
1
answer

Laravel-blade- @ extends does not work and missing snippet?

I have a problem with @extends, it does not activate, it goes blank when I make the request for the route: Route::get('/demos', function () { return view('demo'); }); I get the following error:    (2/2) ErrorException Can not end a s...
asked by 07.08.2017 / 23:24
1
answer

Restore Soft Delete Laravel

I have the store method of a Size class, which uses the NewSizesRequest validator public function store(NewSizesRequest $r) { if ($r->ajax()) { $this->sizesInterface->store($r->all()); return response()->jso...
asked by 27.09.2017 / 04:55
1
answer

Send several input with the same name or id - Laravel Ajax

I want to send several input values that have the same name through a POST with Ajax. I do not know if you let me understand, but what I want is to create a detail of purchases. My form is as follows: <form class="form-horizontal" role="...
asked by 26.09.2017 / 04:29
3
answers

Error executing php artisan command

When executing the php artisan command within my project in laravel, it gives me this error: PHP Warning: require(/root/blog/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /root/blog/bootstrap/autoload....
asked by 18.08.2017 / 19:51
1
answer

How to fix error when loading image in laravel?

I have uploaded an image in laravel, however I am receiving the following error: LogicException in MimeTypeGuesser.php line 135: Unable to guess the mime type as no guessers are available (Did you enable the php_fileinfo extension?) As I...
asked by 10.04.2017 / 18:31