mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 10:49:10 -04:00
ALPHA 3.0.1h
This commit is contained in:
@@ -26,17 +26,15 @@ Route::get('/admin/update', 'AdminController@update');
|
||||
Route::get('/admin/calendar', 'CalendarController@index');
|
||||
|
||||
Route::get('/admin/calendar/add/{date}', ['uses' =>'CalendarController@add']);
|
||||
Route::get('/admin/calendar/edit/{id}', ['uses' =>'CalendarController@edit']);
|
||||
|
||||
Route::post('/admin/calendar/add', 'CalendarController@store');
|
||||
Route::patch('/admin/calendar/edit/{id}', ['uses' =>'CalendarController@patch']);
|
||||
|
||||
/* Other Route */
|
||||
Route::get('/test', function () {
|
||||
|
||||
$today = new \App\Schedule;
|
||||
|
||||
$today->date = "2018-07-18";
|
||||
$today->type = "pilotage";
|
||||
$today->data = ['begin_at' => '09:30','end_at' => '12:00'];
|
||||
|
||||
$today->save();
|
||||
dd(\App\Schedule::all());
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user