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...
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...
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...
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...
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...
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...
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...
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 ....
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...
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....