Calendar stuff.

This commit is contained in:
Sebastian Davaris 2020-06-24 08:54:56 +02:00
parent 79af2dee20
commit 39ecd64d04
3 changed files with 20 additions and 8 deletions

View File

@ -0,0 +1,12 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
class CalendarController extends Controller
{
// public function index()
}

View File

@ -19,7 +19,7 @@ class EventController extends Controller
{ {
$events = Event::query()->paginate($request->input("limit", 20)); $events = Event::query()->paginate($request->input("limit", 20));
return Response::detect("admin.events.index", [ "events" => $events]); return Response::detect("events.index", [ "events" => $events]);
} }
/** /**
@ -29,7 +29,7 @@ class EventController extends Controller
*/ */
public function create() public function create()
{ {
return Response::detect("admin.events.create"); return Response::detect("events.create");
} }
/** /**
@ -49,7 +49,7 @@ class EventController extends Controller
$event->save(); $event->save();
return Response::detect("admin.events.store"); return Response::detect("events.store");
} }
/** /**
@ -60,7 +60,7 @@ class EventController extends Controller
*/ */
public function show(Event $id) public function show(Event $id)
{ {
return Response::detect("admin.events.show", [ "event" => $id ]); return Response::detect("events.show", [ "event" => $id ]);
} }
/** /**
@ -71,7 +71,7 @@ class EventController extends Controller
*/ */
public function edit(Event $id) public function edit(Event $id)
{ {
return Response::detect("admin.events.edit", [ "event" => $id ]); return Response::detect("events.edit", [ "event" => $id ]);
} }
/** /**
@ -91,7 +91,7 @@ class EventController extends Controller
$id->update($requestBody); $id->update($requestBody);
$id->save(); $id->save();
return Response::detect("admin.events.update"); return Response::detect("events.update");
} }
/** /**
@ -105,6 +105,6 @@ class EventController extends Controller
{ {
$id->delete(); $id->delete();
return Response::detect("admin.events.destroy"); return Response::detect("events.destroy");
} }
} }

View File

@ -3,5 +3,5 @@
return [ return [
"defaultPath" => "admin", "defaultPath" => "admin",
"mobilePath" => "webapp", "mobilePath" => "app",
]; ];