Home >Backend Development >PHP Tutorial >Laravel error solution Wireless network solution Broadcast solution Video conferencing solution
①Laravel5 routing home cannot be accessed
Set all AllowOverride none; to AllowOverride all; in the apache configuration file. The specific location of the configuration file changes due to different systems, ubuntu14.0.1LTS The version is in the /etc/apache2/apache2.conf file.
②500 error
After installing laravel, a 500 error occurred immediately after opening it. The configuration was correct, but a 500 error occurred------------- ----->`500 (Internal Server Error)`
I searched on Google Baidu for a long time and found that it turned out to be sudo chmod -R 777 storage (Give storage 777 permission)
③There can only be one AI
Once I used php artisan migrate ------->The result was an error. . . .
The reason is that the primary key id is AI, and setting a foreign key xx_xx_id is of integer type, which conflicts. The solution is just to change xx_xx_id to unsigned integer type
(like this
<span>$table</span>-><span>integer</span>('role_id')-><span>unsigned();</span>)
Updates to be continued. . . . . . . .
The above has introduced Laravel error solutions, including laravel and solution aspects. I hope it will be helpful to friends who are interested in PHP tutorials.