For system requirements you Check Laravel Requirement
Laravel utilizes Composer to manage its dependencies. So, before using Laravel, make sure you have Composer installed on your machine.
cd YourDirectoryName
composer install
Rename or copy .env.example
file to .env
1.php artisan key:generate
to generate app key.
- Set your database credentials in your
.env
file - Set your
APP_URL
in your.env
file.
- Migrate database table
php artisan migrate
php artisan db:seed
, this will initialize settings and create and admin user for you [email: [email protected] - password: admin123]
npm install
to install node dependenciesnpm run dev
for development ornpm run build
for production
php artisan storage:link
php artisan serve
or Laravel Homestead- Visit
localhost:8000
in your browser. Email:[email protected]
, Password:admin123
.