-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fc9ab90
commit 55b5d37
Showing
141 changed files
with
7,986 additions
and
4,794 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
namespace App\Http\Controllers\Admin; | ||
|
||
use App\Http\Controllers\Controller; | ||
use Illuminate\Http\Request; | ||
|
||
class IndexController extends Controller | ||
{ | ||
public function index() | ||
{ | ||
return view('admin.index'); | ||
} | ||
public function users() | ||
{ | ||
if (!auth()->user()->can('access users')) | ||
{ | ||
abort(403); | ||
} | ||
return view('admin.users.index'); | ||
} | ||
public function tags() | ||
{ | ||
if (!auth()->user()->can('access tags')) | ||
{ | ||
abort(403); | ||
} | ||
return view('admin.tags.index'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace App\Http\Controllers\Admin; | ||
|
||
use App\Http\Controllers\Controller; | ||
use Illuminate\Http\Request; | ||
use Spatie\Permission\Models\Permission; | ||
|
||
class PermissionController extends Controller | ||
{ | ||
public function index() | ||
{ | ||
if (!auth()->user()->can('access permissions')) | ||
{ | ||
abort(403); | ||
} | ||
return view('admin.permissions.index'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace App\Http\Controllers\Admin; | ||
|
||
use App\Http\Controllers\Controller; | ||
use Illuminate\Http\Request; | ||
use Spatie\Permission\Models\Role; | ||
|
||
class RoleController extends Controller | ||
{ | ||
public function index() | ||
{ | ||
if (!auth()->user()->can('access roles')) | ||
{ | ||
abort(403); | ||
} | ||
|
||
return view('admin.roles.index'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.