Initial rbac;
This commit is contained in:
@@ -9,6 +9,12 @@ use Illuminate\Http\Request;
|
||||
|
||||
class WordsController extends Controller
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware('role:ADMIN');
|
||||
}
|
||||
|
||||
|
||||
public function index()
|
||||
{
|
||||
return view('words.index', [
|
||||
|
||||
Reference in New Issue
Block a user