Once the installation is complete, navigate to the project directory:
cd appure-app
Start the development server to verify everything is working:
php artisan serve
Open your browser and go to the URL displayed (usually [http://127.0.0.1:8000]) to confirm the Laravel application is running correctly.
Step 2: Set Up the Database
In the root directory of your project, open the `.env` file.
Locate the line starting with `DB_DATABASE=` and replace it with your desired database name, for example:
DB_DATABASE=project-db
Save the changes, then run the following command to create the database and apply migrations:
php artisan migrate
If prompted to create the database, type “yes” and press Enter. The database will be created, and you can verify it by checking in phpMyAdmin.
Step 3: Install Authentication with Laravel Breeze
Install Laravel Breeze by running:
composer require laravel/breeze –dev
Run the following command to install Breeze, choose your preferred frontend stack and testing options if prompted:
php artisan breeze:install
Run the migrations and set up frontend dependencies:
php artisan migrate
npm install
npm run dev
Once setup is complete, Laravel Breeze will provide basic user authentication (login and registration functionality). You can further customize it as needed for your project.