Skip to content

Latest commit

 

History

History
58 lines (43 loc) · 731 Bytes

README.md

File metadata and controls

58 lines (43 loc) · 731 Bytes

Laravel suda

🏖️1 Laravel

composer create-project laravel/laravel example-app

cd example-app

🏖️2 Suda

composer require gtdxyz/suda

🏖️3 Database

// edit .env

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your-database
DB_USERNAME=your-database-user
DB_PASSWORD=your-database-pass

🏖️4 Install

php artisan suda:install

🏖️5 Auth

// edit config/auth.php

// add to guards
'operate' => [
    'driver'    => 'session',
    'provider'  => 'operates',
],

// add to providers
'operates' => [
    'driver' => 'authsuda_provider',
    'model' => Gtd\Suda\Models\Operate::class,
],

🏖️6 open your-domain/admin

admin@suda.run
suda#2021