
Laravel 8 Authentication Setup
Step 1: Install Laravel 8
To install a new Laravel application, run the following command in your terminal:
composer create-project --prefer-dist laravel/laravel dashboard_version4
Step 2: Install Laravel UI
Next, install Laravel UI and set up authentication with Vue.js:
composer require laravel/ui php artisan ui vue --auth
Step 3: Configure Database Credentials
Open your .env
file (located in the project root) and update the database details:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_db
DB_USERNAME=root
DB_PASSWORD=your_database_password
Step 4: Run Migrations
Execute the following command to create the necessary database tables:
php artisan migrate
Step 5: Start the Development Server
Run the Laravel development server with:
php artisan serve
Step 6: Access the Application
Open your browser and visit:
http://localhost/dashboard_version4/public/
Now, your authentication system is set up and ready to use!