mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 02:39:10 -04:00
42 lines
994 B
PHP
42 lines
994 B
PHP
<?php
|
|
use \App\Notifications\Alert;
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Web Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
| contains the "web" middleware group. Now create something great!
|
|
|
|
|
*/
|
|
|
|
/* Basic Auth Route */
|
|
Auth::routes();
|
|
|
|
/* Index Route */
|
|
Route::get('/', function () {
|
|
return view('public');
|
|
});
|
|
|
|
/* Espace Administration Route */
|
|
Route::get('/admin', 'AdminController@index')->name('admin');
|
|
Route::get('/admin/update', 'AdminController@update');
|
|
|
|
Route::get('/admin/calendar', 'CalendarController@index');
|
|
|
|
/* 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();
|
|
|
|
});
|
|
|
|
|