Questions tagged as 'laravel-5.2'

1
answer

Problem Laravel 5.2 non-object in foreach

I'm trying to pull the information out of this relationship as you can see below: Template: public function endereco(){ return $this->belongsTo('App\Models\End\Logradouro_Bairro'); } public function local(){ return $this->has...
asked by 06.01.2017 / 12:16
1
answer

How to update the data of a registry Laravel 5.2?

I'm moving on Laravel soon, I have name, email and password and wanted to know how do I update this data with a form. <div class="container"> <div class="row"> <div class="col-md-10 col-md-offset-1">...
asked by 13.05.2018 / 08:40
0
answers

Laravel 5.2: DB: raw in relationship

I need to access the avaliações table and make a calculation to calculate the grade of each product. I tried this way, but the nota field created in DB does not appear when I try to access in view , but I can access the field...
asked by 25.03.2018 / 00:54
1
answer

Laravel 5.2: Multi authentication always returns false

Always returning error when making login , even though the data is correct. I have already seen several topics about this error, but none have solved the problem. CONTROLLER public function cadastro(Request $request) { $dataForm = $r...
asked by 19.01.2018 / 13:39
1
answer

Call to undefined method Illuminate \ Database \ Query \ JoinClause :: whereBetween () Laravel 5.2

I'm having this error in my query, I've already identified that the use of whereBetween within a function join is impossible to use, but I saw that staff could use DB::Raw and replace that whereBetween %. The po...
asked by 28.09.2017 / 20:13
0
answers

How to delete an image from the Storage laravel 5.2 folder?

I'm using this code to upload image is all working my doubt and in the condition if to delete the old image I have to leave a default.jpg image as default plus my condition if deleting this image. my question and how can I leave this image alway...
asked by 21.09.2017 / 20:01
1
answer

How to recover the image of the Storage folder using INTERVENTION IMAGE Laravel 5.2?

This solution works in the Public Folder more when switching to Storage folder I can not get the image and display in the view Can anyone help me? Controller public function profile(){ return view('profile', array('user' => Auth:...
asked by 13.09.2017 / 16:24
2
answers

How can I recover an image from the Storage Folder without passing parameter in Route Laravel5.2?

How to recover an image of the Storage Folder without passing parameter in the Laravel Route? My current code is working, but I'm having security problems because when I pass the parameter on the route the logged in user can see the image o...
asked by 12.09.2017 / 07:34
1
answer

How do I remove the photos from the public folder or protect them from being accessed by the URL using Intervention image with Laravel?

I'm using the intervention image is this all working, my doubt and would like to remove the saved photos from the public folder so as not to be accessed by the URL or protect access by the URL for security reasons would anyone know how to do it?...
asked by 18.05.2017 / 04:10
1
answer

How can I make a password update on a user logged in to Laravel 5.2?

I was trying to change the user's password, but it did not work, someone can help me I'm new to Laravel. public function updatePassword() { $user = Auth::user(); $user->password = bcrypt($request['newpassword']); $user->sav...
asked by 01.04.2017 / 05:37