Questions tagged as 'laravel'

0
answers

Laravel Eloquent

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...
asked by 24.12.2017 / 22:58
1
answer

Problems when accessing route in laravel to delete using Vue.js

I'm trying to delete a record, but when I access the laravel route using this
asked by 19.12.2017 / 14:29
1
answer

Check if record already exists, if already exists just link

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...
asked by 21.12.2017 / 17:08
1
answer

Error in making listing

Trying to get property of non-object: @foreach($civis as $civil) <tr> <td>01</td> <td>{{$civil->matricula}}</td> <td>{{$civil...
asked by 18.12.2017 / 17:15
1
answer

Laravel Recursion?

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...
asked by 02.01.2018 / 22:56
1
answer

Stylization of views - Laravel

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....
asked by 15.12.2017 / 01:56
1
answer

request value from a checkbox in laravel

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...
asked by 29.12.2017 / 19:10
1
answer

Error in making listing

Trying to get property of non-object: @foreach($civis as $civil) <tr> <td>01</td> <td>{{$civil->matricula}}</td> <td>{{$civil...
asked by 18.12.2017 / 17:15
0
answers

Allow pdf upload laravel

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?     
asked by 01.01.2018 / 12:45
1
answer

How to control routes using laravel middleware?

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...
asked by 19.12.2017 / 19:20