Questions tagged as 'laravel'

1
answer

How could a search engine in laravel 5.1?

Good friends, the question is simple, I need to do a search engine in laravel but the way I'm doing it, complicates me a bit because I'm doing the following: currently in the controller I have this: public function index(Request $request) {...
asked by 16.07.2017 / 05:31
1
answer

Pass variable from the controller to several views in laravel

I have the following funcion edit in my controller public function edit($id){ $ficha= Data::findOrFail($id); return view('ficha.edit')->with('ficha', $ficha); } This sends the variable $ficha to 'ficha.edit'...
asked by 29.11.2017 / 20:54
1
answer

Query two different tables and show in the blade view?

Table 1 news Table 2 notes The following controller makes a query to the news table. The search engine makes the query with three different fields. The question is how to make the query from the table (notes) at the same time as the news t...
asked by 06.04.2018 / 22:37
1
answer

I can not save values via POST - laravel vue

I'm trying to save the data I send from the Event view. I went to the storeEvent method of the EventController driver but it gives me error 422 and I can not find the problem so far. The Event model has a many-to-many relationship with the Ca...
asked by 25.04.2018 / 20:06
1
answer

Problem with Laravel Collective form

It turns out that I am trying to send data, in Laravel , through a form using Laravel Collective . But when I press the Register button (the one that starts the request to send the data) nothing happens. Checking the console, it shows me tha...
asked by 15.11.2016 / 15:26
1
answer

Laravel MethodNotAllowedHttpException error en route Resource

I have a question, when I try to update a data I get the MethodNotAllowedHttpException error, I understand that this error comes out when there is a problem with the paths that are get and should be post but in my case my path is...
asked by 04.12.2018 / 06:33
1
answer

Laravel redirects in a controller

I have a controller that receives a call for post , with some data in the request ( $request ). I need that controller to do a calculation and then redirect to another controller, sending the same data that he received in the body of...
asked by 22.12.2018 / 16:42
1
answer

How can I put the functions of Export in Datatables laravel

I have this little problem with the datatables, I can not put the elements to export Try using this example Datatables Export But I could not, I use laravel 5.5 and well this is what I have This is my driver use Illuminate\Ht...
asked by 21.10.2018 / 03:37
2
answers

call attributes through multiple relationships and select multiple

I am relatively new working in Laravel, and I am learning on the fly, this time I'm stuck, and where I am I can not watch videos to try to solve the doubt that I have in these moments, hopefully they will ask me to help. I have a relationship...
asked by 28.09.2018 / 22:31
1
answer

Slow loading yajra / laravel-datatables

Summary of problem or feature request Well I have a problem using DataTable in laravel, so I saw the problem is because I have a relationship and when calling the values of the relationship this is the one with an excessive delay I have 13...
asked by 27.09.2018 / 05:07