if php version changed. You can create new laravel project and copy paste hte composer file here. then run below cmd. bash
composer update
bash
composer install
copy .env.example .env
create a database withname photo ( then change database name there i.e. "photo" in my case)
php aritsan migrate
php artisan key:generate
npm install
npm run watch
for photo content public/storage to storage/app/public/
first delete the storage folder from public
php aritsan storage:link
php artisan serve