Simple Laravel Command [including databse cretaion]
composer create-project --prefer-dist laravel/laravel project_name
Sudo apt-get update
sudo apt-get install php-mbstring
sudo apt install php-xml
php artisan make:migration create_tasks_table --create=tasks
Create Database in PhpMyadmin Local server. And add that database name in .env File:DB_DATABASE=DB_NAME
php artisan migrate
php artisan make:model model_name
composer update --ignore-platform-reqs
After installing fresh laravel project you might get permisson denied while you want see welcome page.
For this you have to change the ownership of your project vendor/ and storage/ Folder.
sudo chown -R www-data:www-data vendor/
sudo chown -R www-data:www-data storage/
Two most common causes of this behavior are: mod_rewrite not enabled
sudo a2enmod rewrite && sudo service apache2 restart
AllowOverride is set to None, set it to All, assuming Apache2.4
sudo nano /etc/apache2/apache2.conf
search for <Directory /var/www/> and change AllowOverride None to AllowOverride All, then save the file and restart apache
php artisan key:generate
