ajaycalicut17 / meadow
Meadow is a laravel package used for instant admin panel.
Installs: 34
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
Language:Blade
Requires
- laravel/fortify: ^1.10
README
Meadow is a laravel package used for instant admin panel.
Important
This package should only be installed into new Laravel applications. Attempting to install into an existing Laravel application will result in unexpected behavior and issues.
Installation
You can install the package via composer:
composer require ajaycalicut17/meadow --dev
Run artisan command for installation:
php artisan meadow:install
Run npm
npm install && npm run dev
Database migration
php artisan migrate
Create a new user account using:
php artisan make:meadow-user
Features
Enable two factor authentication feature in config/fortify.php
Features::twoFactorAuthentication([
'confirm' => true,
'confirmPassword' => true,
]),
Ensure App\Models\User model uses the Laravel\Fortify\TwoFactorAuthenticatable trait.
use Laravel\Fortify\TwoFactorAuthenticatable;
class User extends Authenticatable
{
use TwoFactorAuthenticatable;
Enable email verification feature in config/fortify.php
Features::emailVerification(),
Ensure App\Models\User class implements the Illuminate\Contracts\Auth\MustVerifyEmail interface.
use Illuminate\Contracts\Auth\MustVerifyEmail;
class User extends Authenticatable implements MustVerifyEmail
{
To specify that a route or group of routes requires that the user has verified their email address, you should attach verified middleware to the route.
Route::view('/home', 'home.index')->name('home')->middleware('verified');
To specify that a route or group of routes requires that the user has confirmed their current password, you should attach password.confirm middleware to the route.
Route::view('/home', 'home.index')->name('home')->middleware('password.confirm');