add role feature
This commit is contained in:
16
app/Http/Controllers/RoleController.php
Normal file
16
app/Http/Controllers/RoleController.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Role;
|
||||
use Illuminate\View\View;
|
||||
|
||||
class RoleController extends Controller
|
||||
{
|
||||
public function index(): View
|
||||
{
|
||||
$roles = Role::orderBy('name')->paginate(10);
|
||||
|
||||
return view('roles.index', compact('roles'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user