
Laravel 8 Authentication Setup
Step 1: Install Laravel
First, install a new Laravel application by running:
composer create-project --prefer-dist laravel/laravel dashboard_version
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
Update your .env
file (located in the project root) with your 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
Run the following command to create the necessary tables in your database:
php artisan migrate
Step 5: Start the Development Server
Now, start the Laravel development server:
php artisan serve
Step 6: Access the Application
Open your browser and visit:
http://localhost/dashboard_version/public/
This will take you to the login page, and your authentication system is now ready!