Skip to content
Advertisement

Can’t insert data on my database from laravel

When I try to insert data into my database, Laravel does not insert the records, but it is strange because when I migrate the tables to be able to perform the database, Laravel creates them without any problem, I do not know what I can be doing wrong if the migration run but stored no

Route:

JavaScript

Controler:

JavaScript

Template:

JavaScript

Advertisement

Answer

The problem is from your template. The select tag should have a name attribute. Change your template to this

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement