Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

jeremytubbs-deprecated/lair

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lair - Laravel Roles and Permissions

This Package provides migrations for roles and permissions, middleware for checking (roles, permissions, owns), blade extensions for @role and @owner, config for super_role and default_role, publishes basic views for auth (login, register, reset, password) and finally provides routes for auth.

I have created this to save myself time... Consider this a kitchen sink for auth.

Standard Setup

Add the service provider to config\app.php

Jeremytubbs\Lair\LairServiceProvider::class,

Publish Lair $ php artisan vendor:publish

Most important! add the HasRoles trait to your User model.

This package is some what based on Jeffrey Way's video on Laracasts and its Github Repo.

Todo -

  • Add admin area for managing users/roles/permissions
  • API for Auth