Calendar stuff.
This commit is contained in:
parent
79af2dee20
commit
39ecd64d04
|
@ -0,0 +1,12 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
use Illuminate\Http\Response;
|
||||||
|
|
||||||
|
|
||||||
|
class CalendarController extends Controller
|
||||||
|
{
|
||||||
|
// public function index()
|
||||||
|
}
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,5 +3,5 @@
|
||||||
return [
|
return [
|
||||||
"defaultPath" => "admin",
|
"defaultPath" => "admin",
|
||||||
|
|
||||||
"mobilePath" => "webapp",
|
"mobilePath" => "app",
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue