diff --git a/skolehjem/app/Http/Controllers/EventController.php b/skolehjem/app/Http/Controllers/EventController.php index 95e95b5..30d65e8 100644 --- a/skolehjem/app/Http/Controllers/EventController.php +++ b/skolehjem/app/Http/Controllers/EventController.php @@ -5,6 +5,7 @@ namespace App\Http\Controllers; use App\Event; use App\User; use Illuminate\Http\Request; +use Illuminate\Http\Response; class EventController extends Controller { @@ -27,7 +28,7 @@ class EventController extends Controller */ public function create() { - return Response::detect("admin.events.create"); + return Response::detect("events.create"); } /** diff --git a/skolehjem/app/Http/Controllers/RootController.php b/skolehjem/app/Http/Controllers/RootController.php index 0f3916e..1889de3 100644 --- a/skolehjem/app/Http/Controllers/RootController.php +++ b/skolehjem/app/Http/Controllers/RootController.php @@ -3,6 +3,7 @@ namespace App\Http\Controllers; use Illuminate\Http\Request; +use Illuminate\Http\Response; class RootController extends Controller {