/basic-auth-sentinel

Laravel Basic Authentication with Sentinel with roles

Primary LanguagePHP

Basic Authentication with Sentinel

Based on my other repo that used Sentry. My personal starting point for any Laravel app that requires standard users and admin users. Also has editable profiles (standard users can edit their own profile, admin users can edit all profiles).

See demo here (demo is Laravel 4 version of Sentry package. However, it works exactly the same) or install locally with instructions below.

Installation

This is just local installation using something like MAMP/WAMP or xampp. Of course you are free to use homestead if you like.

  1. clone the repo and cd into it
  2. composer install
  3. make sure db is running and credentials are setup in config\database.php (or in your .env file).
  4. If you have no .env file you can use the example one. Just rename .env.example to .env. Enter your db credentials here.
  5. php artisan key:generate
  6. php artisan migrate
  7. php artisan db:seed
  8. (Optional) Run vendor/bin/phpunit to run some functional tests I have written. Have a look at them in the tests/functional folder.
  9. php artisan serve
  10. Visit localhost:8000 in your browser