App\Http\Controllers\ScaffoldInterface\RoleController::index PHP Méthode

index() public méthode

Display a listing of the resource.
public index ( ) : Illuminate\Http\Response
Résultat Illuminate\Http\Response
    public function index()
    {
        $roles = Role::all();
        return view('scaffold-interface.roles.index', compact('roles'));
    }