How to solve known or recurring errors when working with Laravel?
The error “Call to undefined function mb_strcut()” typically occurs with PHP softwares or Laravel projects, when the PHP Multibyte String (mbstring) extension is not installed or enabled in your server environment. Laravel requires this extension for string manipulation with multi-byte characters. To...
In Laravel when you try to run php artisan
, you may sometimes encounter the error: Unable to read key from file file:///var/www/mysite/storage/oauth-private.key at vendor/league/oauth2-server/src/CryptKey.php:64
.
This error occurs when Laravel cannot find or access the private key file (oauth-private.key) used for the...
If you are geting the error class not found
when executing the command php artisan migrate:rollback
in a project with the Laravel framework, this article shows how to solve the error and execute rollback.
Migrations
When working with Migations, the migrations of databases in the Laravel, mainly in the initial...
Sometimes when running a Laravel Migration you get the error: errno 150 "Foreign key constraint is incorrectly formed"
. This error is mainly caused because your foreign key column is declared in a different data type that is the related key column on source table.
Main cause of the error “errno 150:...
This article deals with the Laravel routing not to working in new projects, taking into account a very specific context, when you have new Apache server installations.
Problem script
At some point you will start a new project with the newly installed project with the Laravel Framework, after running the standard...
Only the "Target Class XXX does not exist" error is common in PHP, a specific change in the LARABLE VERSION 8 brought a punctual problem with not finding the controllers, see how to solve.