Questions tagged as 'laravel-5'

0
answers

Laravel-How can I insert in tables with many-to-many relationship when I have foreign keys created in mysql through migrations?

When I submit the form, it shows me this: error: Integrity constraint violation: 1452 Can not add or update to child row: a foreign key constraint fails (bolsa_empleo.aplicante_empleo, CONSTRAINT aplicantes_empleo_aplicante_usuario_id_foreign FO...
asked by 02.10.2018 / 14:08
0
answers

Problems with 000webhost

You see, I already did my laravel project, called Andalucia Games File and I have uploaded it to a 000webhost server. The problem is that it is giving me several security problems, probably because I use a free server. Basically, I skip the secu...
asked by 18.08.2018 / 16:53
0
answers

Error in Laravel Routes 5

I am new to Laravel, I currently have a problem. I have a project that happened to me, which was done in version 5.2 of Laravel, I currently have 5.7. Execute the commands: php artisan cache:clear php artisan config:clear Verify that you al...
asked by 10.09.2018 / 03:34
2
answers

Problems with query where by means of select

Good morning I have tried to make a filtered query, that is, in my view I select a name, after selecting it I give it to search and it should appear all the records related to that name. in my view I have this: link In my controlle...
asked by 13.10.2018 / 22:05
0
answers

Select query problem in Laravel

I am creating a form to register users, it works with normal fields, but if I want to add a select the form says that it does not recognize the variable.    "Undefined variable: user_types (View:   C: \ laragon \ www \ crudgobernaciont...
asked by 05.10.2018 / 21:58
0
answers

Problems with laravel routes Register

Good morning I've run tests with the auth system that comes with default laravel 5.5, initially try the register on the main cover and then start session, but I do not want the register on the main cover, so after starting the session I put...
asked by 05.10.2018 / 19:34
1
answer

Get list of products with VAT included

I have a product model with the column price and VAT How can I get the final price (with percentage of VAT included) Especially when I do something like \App\Producto::where('marca_id', 4)->paginate(); Thanks     
asked by 06.12.2018 / 01:54
2
answers

Obtain data from a user in Laravel

They ask me to show the data of a user (using their id), I have created the table and the model with artisan, I have filled two objects in the phpmyadmin database, in the model I have Put this: <?php namespace App; use Illuminate\Databa...
asked by 08.07.2018 / 22:16
0
answers

Configure laravel expiration log 5.5

I have a problem, my page after a period of time expires, and redirects me to a page that no longer exists, where can I change the time and address in laravel? Greetings     
asked by 03.11.2018 / 20:41
1
answer

How to generate a proper join query that brings me data from two tables?

I am presenting inconveniences to show the data I require. I currently have two tables that are related as follows: Peliculas imagenes_peliculas -id <--> -pelicula_id -nombre -urlimg -descripcion by means of id I have tha...
asked by 12.04.2018 / 22:56