Questions tagged as 'laravel-5.4'

0
answers

How to page a JavaScript filter in Laravel 5.4?

I created a search filter for a table, in it I have Description, Model, Status, among others 'inputs' to make the search. But after the search is done, pagination does not track the result. Here is the code below: Index: @extends('admin/l...
asked by 02.05.2017 / 19:35
2
answers

Trying to get property of non-object?

This is my View : <tbody> @if(isset($pessoas)) @foreach($pessoas as $p) <tr> <td>{{$p->nome}}</td> <td>{{$p->idade}}</td> &...
asked by 02.03.2017 / 14:40
1
answer

Get JSON value returned from Laravel

I have the following JSON returned from a controller Laravel : { "id": 105, "tratamento_id": "24", "eim": null, "oft": "12", "codigo_produto": "CO009-1200-1200", "descricao_produto": "COMPENSADO 9X1200X1200 ", "t...
asked by 29.08.2017 / 22:28
1
answer

Problem when requesting with ajax in Laravel 5.4

I'm learning the web language for creating my website and using the Laravel framework 5.4, and having trouble sending forms with ajax. Every form I send, returns me the error:    Unprocessable Entity {"account": ["The account field is requ...
asked by 09.03.2017 / 17:04
1
answer

Create method in laravel with rollback

I was studying laravel 5.4 and I had a question. As a good programmer I researched google in many ways and found nothing like it. Imagine the following case: $prod = $this->product->create([ name -> 'produto 1', valor -&g...
asked by 14.06.2018 / 17:45
1
answer

Select with foreign key Laravel

Hello, I have been able to solve a foreign key problem now and I came across a second, I have no idea how to retrieve in a select in the view the data of another table. If anyone can give me a simple example, I would be grateful. My create, store...
asked by 26.03.2018 / 00:50
1
answer

Adding Datatable Features in Laravel 5.4 with AdminLTE

Good evening, ladies, I recently started a project in order to upgrade with laravel 5.4, I created a project and I'm using adminLTE to the layout. The thing is, this AdminLTe has a table template that I want to use. but I'm not able to use a...
asked by 19.05.2017 / 04:12
1
answer

Form in Laravel 5.4?

I'm having a hard time trying to create a form in Laravel 5.4, at the time of loading View the following error appears:    "ErrorException in helpers.php line 532: htmlspecialchars () expects parameter 1 to be string, array give...
asked by 19.05.2017 / 21:41
1
answer

Help with error Trying to get property of non-object Laravel

I have a relationship, where I try to get the name of a teacher, I can return the id of it, but when I try to return the name it gives me the message Trying to get property of non-object My code looks like this: Model Course.php <?php...
asked by 25.03.2018 / 23:37
2
answers

Return relationship data and generate PDF in Laravel / DomPdf

Hello, I have a problem and I found a part of the solution here, I'm dealing with this in a different way in another question, however I decided to test a form I saw here from the user Vigilio about DomPDF My case is as follows, I have course an...
asked by 27.03.2018 / 18:35