Posts

Showing posts from November, 2020

Laravel 8 Multi Auth (Authentication) Tutorial

Image
  Step 1: Install Laravel 8 first of all we need to get fresh Laravel 8 version application using bellow command, So open your terminal OR command prompt and run bellow command: composer create-project --prefer-dist laravel/laravel blog Step 2: Database Configuration In second step, we will make database configuration for example database name, username, password etc for our crud application of laravel 8. So let's open .env file and fill all details like as bellow: .env DB_CONNECTION = mysql DB_HOST = 127.0 . 0.1 DB _PORT = 3306 DB _DATABASE = here your database name ( blog ) DB_USERNAME = here database username ( root ) DB_PASSWORD = here database password ( root ) Read Also:   Laravel 8 Create Custom Helper Functions Tutorial Step 3: Update Migration and Model In this step, we need to add new row "is_admin" in users table and model. than we need to run migration. so let's change that on both file. database/migrations/000_create_users_table.php <? php use Illu...