Questions tagged as 'laravel-5'

1
answer

How to send email by laravel?

I have the following routine implemented in Laravel $prestadores = \App\Prestador::all(); Mail::send('emails.listaprestadores',['prestadores' => $prestadores], function($message) use ($prestadores){ $message->to('marcelo@mgsis...
asked by 12.11.2016 / 04:10
1
answer

Route error when accessing the page in Laravel

   composer require mnabialek / laravel-eloquent-filter The error below appears, I did not make any changes besides executing this command. ReflectionException in Route.php line 333: Method App \ Http \ Controllers \ AdvertisementC...
asked by 23.10.2016 / 02:36
1
answer

Type error in update Laravel

Error is appearing:    Type error: Argument 1 passed to   Illuminate \ Database \ Eloquent \ Model :: update () must be of the type   array, object given, called in   /var/www/html/laravel/app/Http/Controllers/PropertyController.php on   li...
asked by 07.11.2016 / 00:25
1
answer

Access in the view the last values entered in the database

I'm trying to access the latest "books" inserted in the database, and display in the view. This function of the controller returns the view with the values retrieved from the bank. public function index(){ $books = Book::orderBy('cr...
asked by 11.10.2016 / 23:13
1
answer

How to upload files by sending the attachment as email in laravel 5.3?

I'm making a page of work with us with uploaded files (resumes), I would send this file by email attachment, but I'm kind of aimless. Can anyone help me? Controller public function trabalheConosco(RequestNewsletter $request) { $dat...
asked by 11.10.2016 / 14:41
1
answer

Relationship of Tables Laravel

I have a bank with the following relationships:    I'd like to bring the Menu relationship to the Perfil of the user. In tiker I take the following steps: $user = App\Models\User::find(1); $perfil = $user->perfi...
asked by 01.10.2016 / 21:57
1
answer

How to insert multiple rows from a single query using the same ID

I'm trying to make multiple inserts using the same ID with Laravel but it's only doing 1 insert. The idea would look something like this. ped_cod|est_cod|ped_qtde 8 |2 |9 8 |3 |2 8 |4 |2 8 |9 |15...
asked by 22.09.2016 / 16:43
2
answers

Bug change position of laravel site banners

I am developing a site where it has a modal banners and want to set a field in the database of the "order", where I can decide which banner appears first, second, third ... in my admin panel I I have a list of all banners and banner that is thir...
asked by 22.09.2016 / 17:03
1
answer

Return select field value in Laravel

How do I return the value that is in the bank of a select field and continue showing the other options for editing: <div class="form-group"> <label>Tipo de imóvel</label> <select name="tipo_id" class=...
asked by 23.11.2016 / 14:34
1
answer

Ajax request for laravel server

My minimundo is as follows, I am developing an API for a bakery, where it can be on the same server or different server, I am using the laravel framework in the 5.2.* version. In order to facilitate the work I did some controllers...
asked by 04.10.2016 / 01:54