I'm trying to do this query but the $ test variable goes empty in the query
but when I start it, I see it exists
namespace App\Http\Controllers;
use Illuminate\Http\Request;
Use App\User;
class BinarioController extends Controller
{
public f...
I want to check if the address has already been registered, if it is already registered I just want to link it to a civilian, but if it does not already exist I want to register the new address and then link.
The relationship is 1 civilian has O...
Next, in my model :
public function indicacao()
{
return $this->hasMany(User::class, 'indicacao','name');
}
public function todasindicacoes()
{
return $this->indicacao()->with('todasindicacoes');
}
and my controll...
By default of Laravel, the welcome.blade.php view comes with styling in the view itself and not in a separate file.
I would like to know if this practice of styling the view in the same file is correct or should be stylized separately....
I need to get the value of this checkbox but nothing is working.
@foreach ($options->getGenresEventos() as $agenda)
<input type="checkbox" name="cat" id="cat" class="checkbox" value="{{strtolower($agenda)}}" data-bind="checked: params.g...
I need to allow pdf upload, how do I? see validation
public $rules = array(
'file' => 'required|mimes:png,jpg,jpeg,gif,pdf|unique:images,local,NULL,id,type,upload'
);
I added pdf but it did not work, did not upload?
I have a system with the following routes
'\'
'expenses'
'\ register'
'\ login'
'home'
of these routes would like to leave only unauthenticated user '\' and '\ login',
For this I changed the handle function of the RedirectIfAut...