Coder Social home page Coder Social logo

brucewu16899 / basic-auth-sentinel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from drehimself/basic-auth-sentinel

0.0 1.0 0.0 196 KB

Laravel Basic Authentication with Sentinel with roles

PHP 99.28% JavaScript 0.37% ApacheConf 0.30% CSS 0.05%

basic-auth-sentinel's Introduction

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

basic-auth-sentinel's People

Contributors

drehimself avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.