Questions tagged as 'laravel-5'

1
answer

Error in making listing

Trying to get property of non-object: @foreach($civis as $civil) <tr> <td>01</td> <td>{{$civil->matricula}}</td> <td>{{$civil...
asked by 18.12.2017 / 17:15
1
answer

Error trying to make a belongsToMany relationship in Laravel

I'm trying to make a belongsToMany relationship in my Model but it's bringing the error:    QueryException       SQLSTATE [42S02]: Base table or view not found: 1146 Table 'api.codigo' does not exist (SQL: select sequenciaaprovacaos . *...
asked by 11.12.2017 / 21:34
1
answer

Save several attributes to the same object in Laravel

I have a property table of other properties and created a property_table_table since an property can have several attributes. I have created the models Imovel and Attribute, I need to create an Imovel_atributo model? How could I do in the store...
asked by 30.11.2016 / 17:18
0
answers

With view PDF generated with Laravel-dompdf in viewer.js?

I have a Laravel application that generates reports in PDF according to parameters received from a form via POST and would like to view the files generated with viewer.js without having to save the files in directory and t...
asked by 30.11.2017 / 17:43
1
answer

Update validation on laravel

I have a problem to do validation in the update in Laravel. My Controller looks like this: public function editar(EspecieRequest $request, Especie $esp) { $especie = Especie::find($esp->id_especie); $valores = Request::all();...
asked by 15.11.2017 / 21:57
0
answers

Error installing npm on Ubuntu 17.04

I'm at the beginning of learning laravel along with ajax and I'm not able to pass data via post with ajax. This is my ajax: $(document).on('click', "#cad_academia", function(e){ e.preventDefault(); //var data = $("#new_gym").seriali...
asked by 15.11.2017 / 04:46
1
answer

Store method in Laravel with problem

I'm trying to implement a POST in this method: public function store(Request $request) { $veiculo = new Veiculo($request->(['marca', 'modelo', 'ano', 'preco'])); $veiculo->save(); return $this->respondCreated...
asked by 30.10.2017 / 15:04
0
answers

Heroku Server does not recognize my CSS and Javascript files

I recently created a Laravel project that is using VueJs and Axios, and then I sent it to the Heroku server, but something strange happened, the page is very strange and I noticed that the public folder was not being viewed, but this was not t...
asked by 30.10.2017 / 09:51
1
answer

Query for multi-table search

I need to fetch the data from a process table, and from 2 other tables one of process authors and defendants, the question is how to search in a grouped way that I can go through with foreach to fill a report, I'm using Laravel, follows list of...
asked by 31.10.2017 / 17:13
1
answer

Problem with upload using Laravel's store method

I have a question with uploads of files in Laravel. I created the symbolic link with php artisan storage:link and to upload files I am using the code below according to the Laravel doc link public function updatePhoto(Request $request...
asked by 03.11.2017 / 13:14