Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

How to Login with Token in Laravel PHP Framework?

How to Login with Token in Laravel PHP Framework?

Step 1. Create a new Project, so write down the following command on Git Bash:

$ composer create-project --prefer-dist laravel/laravel token "5.8.*"

Step 2. Move to the current working Project directory. Write down the following command:

$ cd token

Step 3. Create a new Database for this project. Open XAMP Server phpmyadmin.

Mysql Database connection Laravel

Step 4.  Go to .env file to set the project path and give the project DB_DATABASE name, DB_HOST and DB_USERNAME name.

DB_HOST=127.0.0.1:8000
DB_DATABASE=tokendatabase
DB_USERNAME=root

Step 5. Create the user authentication scaffolding and write down this command:

$ php artisan make:auth

Step 6. Migrate the table into the MySQL database.

$ php artisan migrate

Step 7.

$ php artisan make:middleware AuthKey

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.