1. first install composer if its show the error composer.json like that then just go to in composer.json and change the version of php like this.

  1. "require": {
        "php": ">=7.3",
        .....
    },
    

    Try to update this requirement to:

    "require": {
        "php": "^7.3|^8.0",
        ..... 
    }, 

2. run the cmd "composer update"
3.change the database name and password in .nmv file and make the database name of   it and run the cmd "php artisan migrate"
4.run the cmd "php artisan db:seed"