Section dedicated to courses, tutorials and tips about the Laravel web development PHP framework.

Sections

featured-404-livewire-error-filament-login.webp

Often, after installing the Filament Admin Panel package in a fresh Laravel project, you may run into a recurring problem. The login page keeps reloading without any error, and a question mark “?” gets appended to the URL each time.

This issue is likely to occur when you attempt to access the login page via...

Laravel's CreateOrUpdate Upsert Technique: A Comprehensive Guide with Use Cases

Laravel offers a variety of methods for interacting with databases. Among these, the createOrUpdate method, also known as the upsert technique, is a powerful tool that allows developers to streamline their code and improve efficiency. This article provides an in-depth look at the createOrUpdate method, its usage, and...

featured-call-to-undefined-function-mb-strcut.webp

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...

featured-private-key-not-found.jpg

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...

featured-laravel-logo.png

PHP Laravel is an application framework based on a Open Source Code, aimed at developing web systems with expressive and elegant syntax. It is developed in PHP, being easily adopted and learning.

Its web structure provides an infrastructure and starting point...

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...

featured-key.webp

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:...

featured-vite.jpg

Twitter Bootstrap and jQuery are Html/CSS and JavaScript framework and library still in heavy use in the Laravel community to this day.

It’s ease add then with Laravel Mix, but since Laravel v9.2.0 Vite is now the default bundler and a lot of users have had trouble getting it to work.

In this post we will go over...

laravel-mix-featured.webp

I had a lot of problems with using laravel/ui to install and then use the last updated versions of packages Twitter Bootstrap, jQuery and Popper.js. Since, for example, the Bootstrap version laravel ui installs is outdated, for example on Laravel 8 it is only version 4.6, and the newest version is, as of today: 5.2.2...

featured-laravel-session-lifetime.webp

A session is a way to store information (in variables) to be used across multiple HTTP Requests, to simulate a “state” across pages navigation.

Laravel ships with a variety of session backends managers that are accessed through an expressive, unified API. Support for popular backends such as Memcached,...

featured-image-upload-scaled.webp

After validating data entry forms, which return to the user with information from the errors that should be corrected, the best practice is to fill the fields with the last (old) values, but is not possible to apply this techinique to upload field files, both in Laravel PHP and in any other language.

This is a browse...

featured-install.webp

If you work with the PHP Framework Laravel, you know that installing your application in a default directory of a VPS account or a shared server, without changes, will force you to run the application leaving the root directory as it will need to access it by the subdirectory /public. For example:...