I am using the Laravel 5.2 authentication standard Controlller:
php artisan make:auth
As the names are in English, I need to change to Portuguese. I already configured the locale for Portuguese, in /config/app.php :
'locale' => 'pt-BR...
I have a project in Laravel where I used the make:auth command to create the views , routes, controllers and etc from a registration form.
I need to change the view that is used by default in login to a view that I create...
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...
I'm using laravel 5.2 and in my class IndexController I'm trying to create an array with the function date('Y') like this:
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
cl...
I have some views that only clients can access, and some that only administrators can access. What I defined in the case is the client_id, which if "1" is an administrator and if it is any other client. I control this with 2 Middleware locally,...
I'm using Laravel 5.3 , and when doing a foreach in the view, it does not recognize as an object, but if I print only what is in the $user variable it prints a json object %.
Controller:
public function getAll()
{
retu...
I need to fill in a field:
<input id="date" type="datetime-local" class="form-control" value="{{$task->date}}" name="date">
The return comes in timestamp format, 2016-09-20 10:00:00 ), there is some helper in> laravel to conv...
I have the following foreach in Laravel.
@foreach($values as $value)
<li>{{ $value }}</li>
@endforeach
I would like to add some special information when it comes to the first item in the loop.
In some other template...
I have a View where in it I would like to add the link of a Controller with its Action specifies and when loading this View to Action of that Controller is triggered.
Example: within a View I...