Skip to content

Commit

Permalink
build: spatie/laravel-permission was installed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Josemprog committed Nov 30, 2020
1 parent 9a78fcf commit dd50e35
Show file tree
Hide file tree
Showing 9 changed files with 754 additions and 284 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/Admin/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Http\Requests\SaveUsers;
use Spatie\Permission\Models\Role;

class UserController extends Controller
{
Expand Down
4 changes: 2 additions & 2 deletions app/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

namespace App;


use App\Cart;
use App\Order;
use App\Payment;
use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Database\Eloquent\Builder as EloquentBuilder;
use Spatie\Permission\Traits\HasRoles;

class User extends Authenticatable implements MustVerifyEmail
{
use Notifiable;
use Notifiable, HasRoles;

/**
* The attributes that are mass assignable.
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"laravel/tinker": "^2.0",
"laravel/ui": "^2.0",
"maatwebsite/excel": "^3.1",
"predis/predis": "^1.1"
"predis/predis": "^1.1",
"spatie/laravel-permission": "^3.18"
},
"require-dev": {
"facade/ignition": "^2.0",
Expand Down
Loading

0 comments on commit dd50e35

Please sign in to comment.