Questions tagged as 'laravel-5'

1
answer

Controller Laravel?

How can I style an object in a array in controller Laravel? Mapper::marker($marker['lat'], $marker['lng'],['label'=> "<div>".$marker['label']."</div>"]); Controller public function index(){ Map...
asked by 10.09.2017 / 01:35
1
answer

Get records with date greater than the current one - Laravel 5.1

I need to list schedules that have date greater than or equal to the current date, I'm doing it as below but it does not work, it does not return any record. Auth::user()->Agendamentos->where('data', '>=', date("Y-m-d h:i:s")) I'm...
asked by 01.06.2017 / 16:19
1
answer

Select Laravel Collective does not select value

I'm trying to retrieve the value set in the database and it gets selected in the edit form. The value 2 is reaching the form but I'm not getting it selected. {!! Form::label('cupUnic', 'Único?') !!} {!! Form::select('cupUnic', ['' => 'Selec...
asked by 12.05.2017 / 02:46
1
answer

Redirection through the private method in Laravel

No Laravel has helpers redirection that works perfectly within public methods. But in the class I had to split in two public methods and one private so as not to be repeating the authentication and registration codes that is practi...
asked by 23.03.2017 / 14:42
1
answer

How to set the url for a route in Laravel?

I'm using Laravel 5.4 and controllers in the Restful pattern. I configured the route file as follows: Route::resource('entryRegistry', 'EntryRegistryController'); In view: {{ route('entryRegistry.create') }} On Controller: public...
asked by 25.03.2017 / 17:22
1
answer

Insert multiple rows from a single query using FOR

I'm trying to give an insert of various data using FOR but it is not working. The impression is that it is not getting the FOR data? The spec is that this happens: ID|id_proposta|id_produto|quantidade|valor|total 1 |8 |1...
asked by 27.01.2017 / 19:23
1
answer

Javascript does not receive json response from Laravel

I'm trying to get Javascript to get the data sent by the server and play on the alert. But it always comes undefined. I have already looked at many topics on the internet and found nothing wrong with the code. In theory it was meant to work. Can...
asked by 02.03.2017 / 17:45
1
answer

Angular js reload

Person, I noticed that whenever I reload the page, while page is being loaded, it shows all the keys {{}} of the scopes of my project, is it normal? the page containing the scopes coming from a get json is in php ....     
asked by 05.01.2017 / 20:45
1
answer

Confirm deletion in Laravel 5.4

I have the form below, in which a button deletes the record of the current line. <form class="form-inline" method="POST" action="/servidores/{{ $serve->id }}"> {{ method_field('DELETE') }} <input type="hidden" name="_t...
asked by 06.02.2017 / 14:16
1
answer

Laravel: Model-Form Binding undefined variable

Hello, I'm new to using laravel, and at this point I use laravel 5.3, I can not edit any data in my database and I'm using Route Model Binding. The error it gives me is " undefined variable $ lord_english " of the object I passed through a view....
asked by 14.11.2016 / 01:23