PHP Laravel: Cloning a Github Repo Starter Guide
1. Install Dependencies
Since vendor/ is ignored, run:
composer install
If you use npm or yarn:
npm install
yarn install
2. Recreate
Since .env is ignored, it won’t be in your repo. You'll need to manually create it:
copy .env.example .env
Then generate the app key:
php artisan key:generate
3. Setup Storage Symlink (Optional but Recommended)
If your project uses file uploads, you might need to link public/storage:
php artisan storage:link
4. Set Up Your Database
Make sure your database exists and matches the .env config. Then run:
php artisan migrate
5. Clear Cache & Start the Server
php artisan config:clear
php artisan cache:clear
php artisan serve