remonhasan / hesh
This will provide admin authentication and query will save in database.
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Blade
README
Hesh
provides a minimal and simple starting point for building a Laravel application with authentication and a customizable admin dashboard. Styled with Bootstrap, Hesh
publishes authentication controllers and views to your application that can be easily customized with your own design, template engine and functionalities based on your own application's needs.
Requirements
- PHP >=8.0.2
Installation
To install the most recent version, run the following command.
composer require remonhasan/hesh
Go to composer.json
"minimum-stability": "dev",
Download the zip from the link, extract and paste in your public directory: Download link
Go to app.php in config directory
'providers' => [ Remonhasan\Hesh\HeshServiceProvider::class, ],
Go to auth.php in config directory
use Remonhasan\Hesh\Models\Admin; 'guards' => [ 'web' => [ 'driver' => 'session', 'provider' => 'users', ], 'admin' => [ 'driver' => 'session', 'provider' => 'admins', ], ], 'providers' => [ 'users' => [ 'driver' => 'eloquent', 'model' => App\Models\User::class, ], 'admins' => [ 'driver' => 'eloquent', 'model' => Admin::class, ], ],
Go to Kernel.php
use Remonhasan\Hesh\Middleware\Admin; protected $routeMiddleware = [ 'admin' => Admin::class, ];
Run the migrations
php artisan migrate
Start the server by running php artisan serve
and acces route for registration, login and redirect to dashboard.
http://localhost:8000/admin-register http://localhost:8000/admin-login
License
Hesh is licensed under the MIT License.
Copyright 2023 Remon Hasan