Meadow is a laravel package used for instant admin panel.
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.
You can install the package via composer:
composer require ajaycalicut17/meadow --devRun artisan command for installation:
php artisan meadow:installRun npm
npm install && npm run devDatabase migration
php artisan migrateCreate a new user account using:
php artisan make:meadow-userEnable 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');