App\Http\Controllers\ScaffoldInterface\RoleController::index PHP Метод

index() публичный Метод

Display a listing of the resource.
public index ( ) : Illuminate\Http\Response
Результат Illuminate\Http\Response
    public function index()
    {
        $roles = Role::all();
        return view('scaffold-interface.roles.index', compact('roles'));
    }