mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 10:49:10 -04:00
ALPHA 3.0.1a
This commit is contained in:
33
routes/web.php
Normal file
33
routes/web.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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');
|
||||
|
||||
/* Other Route */
|
||||
Route::get('/test', function () {
|
||||
|
||||
$user = Auth::user();
|
||||
|
||||
Notification::send($user,new Alert($user->id, "Something happen reaaaaaally big happe yesterday"));
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user