Questions tagged as 'laravel-5.3'

1
answer

Obtain authenticated user in constructor

After much research and a look at documentation , I fully realize that why not make the "old fashioned", but wanted a workaround / solution to do the following: I have a base class, it is not called directly in the request, it is not declare...
asked by 29.12.2016 / 12:41
0
answers

File Download with Laravel 5.3

I need to make PDF files available for download. I do not know if I'm at least on the right track, but I'm having an error that indicates that the file does not exist. My controller looks like this: public function download($id,Request $reque...
asked by 15.12.2016 / 16:27
1
answer

Route restrictions with laravel

Good afternoon. How can I make a restriction of some specific routes with Laravel? For example. If I have an e-commerce I will have the admin users who will be able to access the routes of the administrative panel and all the other routes...
asked by 02.05.2018 / 18:47
2
answers

Access direct key

I would like to access the direct key of an array object without having to loop (foreach) Instead of being like this: $nome = ""; $codigo = 0; $objeto = DB::select( "SELECT NOME FROM TABELA WHERE CODIGO = ?", array( $codigo )...
asked by 26.10.2017 / 21:43
1
answer

Does not the Defect class exist?

I have the following error:    ReflectionException in Container.php line 731: Class App \ Defect does not exist I'm using laravel 5.4, I've already checked everything out right. Code: Defeito.php <?php namespace App; use...
asked by 14.03.2017 / 23:36
1
answer

Blocking routes for a certain type of User in Laravel 5.3 [duplicate]

This is my first post here. I'm starting to use Laravel 5.3 to create a system. In this system I will have two types of users (Admin and Client). I'd like to block certain routes for the client. I've been able to limit clients from viewing cer...
asked by 08.12.2016 / 18:36
1
answer

Send form to controller with ajax

I need to send formulario with ajax , so there is no reloading of página . If you do not have it, I need the screen to return to where it was. InthewebsiteIhavethesetabs,thetabwheretherewillbesubmitisAGENDADEREUNIÕESift...
asked by 10.01.2017 / 13:39
1
answer

How to create functions available globally in laravel?

I would like to create functions that are globally available to reuse the code. What would be the best way to do this, in laravel ... The flow I need would be like this: I will receive a "Route" request    Then I'll process > "Con...
asked by 02.01.2019 / 00:12
1
answer

Login with Ionic using laravel for the backend

Good afternoon. Could anyone suggest some tutorial on how to login with ionic 1 using laravel 5 or 5.3 for the backend? Att, Mauritius.     
asked by 16.12.2017 / 20:54
1
answer

How do I solve this method create problem in Laravel

Well, I have a form where it contains an html input of an image. When I send the form to the Control, I do the image processing, taking its name and uploading it to the image directory. But when I look in the bank, the image name is not correct....
asked by 04.08.2017 / 18:13