Questions tagged as 'laravel-5'

2
answers

Problem with destroy in laravel

I have a destroy method in my controller and I call it from a view to delete a record, but after confirming that I want to delete, the window remains blank and does not erase anything at all and does not redirect me to another view. The drive...
asked by 09.05.2018 / 02:52
1
answer

How can I make a blog of access to the pages of a website of a user in laravel?

Hello I request your support in order to implement security to a website in laravel, to make a log of all the accesses of a user, but I do not know how to capture the url to which a user accessed or the action he has executed. What do you recomm...
asked by 21.07.2017 / 06:39
1
answer

Session in Laravel

I have a question regarding the sessions that are due in Laravel, as they will know in the file session.php there is a variable called lifetime that there is configured the time in which you want a session to be alive. The issue that I do not...
asked by 20.10.2018 / 22:57
1
answer

How to keep the user bar placed correctly

You see, in my project I have this code for the user bar: <header style="width: 100%; position: fixed; z-index: 100;"> <nav class="navbar navbar-expand-md navbar-laravel" style="background-color: #0077FF;"> <div clas...
asked by 06.11.2018 / 12:46
1
answer

Upload image in Lavarel 5 encrypt and delete with Dropzone.js

I have a problem with Dropzone.js to delete images after being encrypted and upload with Laravel 5 I have the following code: $file = $request->file('image'); $extension = $file->getClientOriginalExtension() ?: 'png';...
asked by 27.02.2016 / 17:01
1
answer

Token not provided in authentication with JWT Laravel

I have this error in laravel since when I make the request I send the user's data and it generates the token but I try to add this and it tells me token not provided $user = JWTAuth::toUser(); This is the code of my controller <?php...
asked by 04.05.2018 / 22:37
2
answers

As I show the content of two tables with foreign key in Laravel 5.4

I have a problem when I want to show data in a CRUD for users. The user table has the id of the teaching table as a foreign key. This is the User model: class User extends Authenticatable{ use Notifiable; /** * The attributes that are mass a...
asked by 19.06.2017 / 21:39
1
answer

Problem with exception laravel 5.5

I have a small problem with an exception, which is with a route, for example. I have this route, which loads well. link but if I make a change like this. link I'm loading an error Now, in the other modules and routes,...
asked by 02.01.2019 / 19:02
2
answers

How to change the path to save an image with Laravel

Thank you to hire a hosting that does not let me access beyond the public_html. I must put the whole project there, using public_html as root. Then separate in a folder called laravel, the whole project and leave loose in public_html everything...
asked by 15.10.2016 / 05:44
2
answers

Problems showing items in laravel 5.0

I'm making this query $ventas = VentasProductos::select('id_factura','=' ,$id); to a database table from a FacturaController Controller and when I check the number of elements, it returns me that there are elements but at the time of showin...
asked by 19.03.2018 / 13:44