This is a Laravel application that provides authentication using Laravel Sanctum and a custom authentication system. This guide will walk you through the steps to install and set up the application.
- PHP 7.4 or higher
- MySQL 5.7 or higher
- Composer
- Node.js (for frontend dependencies)
Clone the repository using Git:
git clone https://github.com/mUchG0Di/cozy-auth.git
Install the dependencies using Composer:
composer install
Create a copy of the .env.example
file and rename it to .env
. Update the environment variables as needed:
cp .env.example .env
Generate a new application key:
php artisan key:generate
Run the database migrations:
php artisan migrate
Install the frontend dependencies using Node.js:
npm install
Build the frontend assets:
npm run dev
Start the Laravel development server:
php artisan serve
Build the frontend assets:
npm run dev
# or
npm run build
Access the application in your web browser:
http://localhost:8000
The application provides two authentication systems:
- Laravel Sanctum: Access the Laravel Sanctum form at
http://localhost:8000/login
- Custom Auth: Access the custom authentication form at
http://localhost:8000/custom/auth/login
You can find the links for each Authentication system in: http://localhost:8000/
If you encounter any issues during the installation process, please reach out to me.