Questions tagged as 'laravel'

3
answers

Problem with created_at / updated_at when updating record in laravel 5.6

I am programming the CRUD of the user (modified) in my laravel project (5.6) but when updating a user it conflicts with the registration / update dates, or at least that is what I have understood after reviewing several queries on the web....
asked by 08.08.2018 / 18:57
0
answers

Events in pivot tables laravel

How can I define an event with their respective listener to a pivot table that does not have a model in laravel? Someone can give me an example.     
asked by 12.07.2018 / 17:39
0
answers

Error loading laravel service

Hello I need help I am beginning to learn to program with laravel using laragon still and when loading the service in the terminal of laragon with the command: php artisan serve shows me this address <http://127.0.0.1:8000>...
asked by 08.06.2018 / 14:00
1
answer

How can I avoid duplicate data when filling an array from an sql query?

I want to bring several data according to the year to which the data belongs, but when making a foreach I create more arrangements with the same year, and does not unify the data for the same year: See base de datos : $dataa...
asked by 07.06.2018 / 22:54
1
answer

It helps the unset () function, it does not eliminate the variables of $ _SESSION

hello I hope you can help me I want to delete specific session variables, but it does not, I'm using the unset function, but my code does not delete the session variables I have two buttons by which depending on which one they choose me to a fil...
asked by 27.05.2018 / 12:12
1
answer

Validate modal window when there is an error in Laravel?

Cordial regards colleagues, it turns out that I am developing an application in laravel that so far allows me to perform a full crud of clients, to create and edit clients I use bootstrap and jquery modal windows, the problem that I present is t...
asked by 20.06.2018 / 02:34
1
answer

Error loading image with Dropzone js in Laravel?

Cordial greeting colleagues, I have the following problem, I am developing an application in which you can upload images and for that I use the dropzone js plugin, my problem is that when I upload the image I get the following error: I'...
asked by 23.05.2018 / 05:28
0
answers

Use and redirect with laravel 5.6 middleware

Good morning, I have been using laravel 5.6 and I have just applied several middleware to my project in order to protect the routes, in the access to the different user roles, but when making the login it keeps redirecting me to 'home'. That'...
asked by 17.05.2018 / 15:53
1
answer

List results in laravel 5.4

Could you help me with this case? I saw that this is done but I get the error that I attached so I do not know what I'm doing wrong /: public function index() { // Inicializa @rownum DB::statement(DB::raw('SET @rownum = 0')); /...
asked by 22.05.2018 / 04:13
1
answer

Indicate the base_path () correctly in Laravel 5.6

I'm doing tests on deploy . A few days ago I did it in the following way, I uploaded the files in my CPanel hosting to the root, that is, /home/miproyecto and that of the public folder in /home/miproyecto/public_html , I made th...
asked by 20.08.2018 / 19:12