Before you install Laravel, you should check to make sure that your system has the proper prerequisites installed. These include:
Laravel 10 installation requires the most up-to-date form of PHP 8 and a number of other prerequisites specified within the future. Laravel, as a framework, depends on several community-driven and Symfony 9 libraries.
The default assets compiler is using Webpack Mix. Assets compile require the build tools. These libraries are required as below.
composer --version
starterkit
folder.
cd starterkit
composer install
.env.example
file and create duplicate. Use cp
command for Linux or Mac user.
cp .env.example .env
Windows
, use copy
instead of cp
.
copy .env.example .env
DB_DATABASE
in .env
file.
migration
and seeder
.
php artisan migrate:fresh --seed
php artisan key:generate
starterkit
folder.
cd starterkit
npm install
public
folder:
npm run dev
starterkit
folder and run the following command. This command will listen for changes and hot reload them.
starterkit
folder.
cd starterkit
php artisan serve