laravel-sentinel-bootstrap
Bootstrap a Laravel App with Sentinel Authentication, (*1)
Install via Composer Create-Project
For best results, install this by issuing the Composer create-project
command in your terminal:, (*2)
composer create-project whatthecode/laravel-sentinel-bootstrap [APPNAME] dev-master
cd [APPNAME]
Database Migrations and Seeding
Once installed, update your .env
file to reference your DB settings and credentials. By default you should see the following:, (*3)
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
Update accordingly. When you've done that, run the migrations and the seeding. Running the migrations will create all the required tables for using Sentinel authentication and the seeding will create an admin user and a regular user:, (*4)
Migration
php artisan migrate
Seeding
Before running this command, make sure you review and/or modify the seeder (found in database/seeds/SentinelDatabaseSeeder.php
) to better suit your needs., (*5)
php artisan db:seed --class=SentinelDatabaseSeeder