This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
memberdb/routes/web.php
Deon George c7e2a6866e WIP
2017-11-21 21:47:44 +11:00

57 lines
1.8 KiB
PHP

<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of the routes that are handled
| by your application. Just tell Laravel the URIs it should respond
| to using a Closure or controller method. Build something great!
|
*/
// The default home page
Route::get('/', function () {
return view('welcome');
});
Route::get('logout','Auth\LoginController@logout');
// Generic Image Renderer - Render images that we dont have with a generic image
Route::get('image/generic/{width}/{height}/{color}','MediaController@image')->name('image');
// Backend Routes
Route::group(['middleware'=>['auth','admin','setTheme:adminlte-be'],'prefix'=>'a'], function() {
Route::get('/home', function()
{
return View::make('home');
})->name('home');
});
Route::group(['prefix'=>'public','namespace'=>'public','middleware'=>['setTheme:metronic-be']], function() {
Route::get('/', function()
{
return View::make('home');
})->name('public');
});
Route::group(['prefix'=>'demo','namespace'=>'sbadmin','middleware'=>['setTheme:sbadmin']], function() {
Route::get('/a', function () {})->name('demo');
Route::get('/b', function () {})->name('demo.login');
Route::get('/c', function () {})->name('demo.charts');
Route::get('/d', function () {})->name('demo.tables');
Route::get('/e', function () {})->name('demo.forms');
Route::get('/f', function () {})->name('demo.panels');
Route::get('/g', function () {})->name('demo.buttons');
Route::get('/h', function () {})->name('demo.typography');
Route::get('/i', function () {})->name('demo.icons');
Route::get('/j', function () {})->name('demo.grid');
Route::get('/k', function () {})->name('demo.blank');
Route::get('/l', function () {})->name('demo.documentation');
});