Bootstrap a Laravel App with Sentinel Authentication
For best results, install this by issuing the Composer create-project
command in your terminal:
composer create-project whatthecode/laravel-sentinel-bootstrap [APPNAME] dev-master
cd [APPNAME]
Once installed, update your .env
file to reference your DB settings and credentials. By default you should see the following:
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:
php artisan migrate
Before running this command, make sure you review and/or modify the seeder (found in database/seeds/SentinelDatabaseSeeder.php
) to better suit your needs.
php artisan db:seed --class=SentinelDatabaseSeeder