Meadow is a laravel package used for instant admin panel.

v2.5.0 2022-06-12 08:58 UTC

This package is auto-updated.

Last update: 2024-04-19 14:08:46 UTC


README

Packagist Downloads Packagist Version Packagist License

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');

Dependents