Navigate to your project directory:
e.g., cd E:\Project\Laravel\laravel-new-app
Install Composer dependencies:
composer install
*If composer install doesn't work or the vendor folder is still missing/incomplete
1. Clear Composer cache:
composer clear-cache
2. Delete vendor folder and composer.lock file (optional, but can help with fresh installs):
rm -rf vendor
rm composer.lock
3. Install the composer
composer install
-----------------------------------------------------------------------------------------------------------------
After completing these steps, the vendor folder and its contents, including autoload.php, should be present, resolving the error.
Even complete the above steps if you encounter this error->
Failed to download livewire/volt from dist: The zip extension and unzip/7z commands are both missing, skipping. The php.ini used by your command-line PHP is: C:\xampp\php\php.ini Now trying to download from source
To resolve this issue,
Locate your php.ini file. The error message indicates it's at C:\xampp\php\php.ini if you are using XAMPP.
Open php.ini with a text editor.
Search for the line ;extension=zip.
Remove the semicolon (;) at the beginning of the line to uncomment it, making it extension=zip.
Save the php.ini file.
Restart the server
-----------------------------------------------------------------------------------------------------------------
After if you encounter this error->
Database file at path [E:\Project\Laravel\laravel-new-app\database\database.sqlite] does not exist. Ensure this is an absolute path to the database. (Connection: sqlite, SQL: select * from "sessions" where "id" = T9cQVcjhXc9StyBdsVuD9IkZpbdyD6BsCFYAPXz8 limit 1)
Go to your Laravel project’s database folder.
E:\Project\Laravel\laravel-new-app\database
Create a new empty file called:
database.sqlite
Run migrations:
php artisan migrate