@@ -2,13 +2,13 @@ |
||
| 2 | 2 | |
| 3 | 3 | Route::group(['namespace' => '\\MeestorHok\\Blue\\Http\\Controllers'], function() |
| 4 | 4 | { |
| 5 | - Route::group(['prefix' => 'admin'/* , 'middleware' => 'auth' */], function () |
|
| 5 | + Route::group(['prefix' => 'admin'/* , 'middleware' => 'auth' */], function() |
|
| 6 | 6 | { |
| 7 | 7 | Route::get('/', 'AdminController@index'); |
| 8 | 8 | Route::get('dashboard', 'AdminController@showDashboard'); |
| 9 | 9 | }); |
| 10 | 10 | |
| 11 | - Route::group(['middleware' => 'guest'], function () |
|
| 11 | + Route::group(['middleware' => 'guest'], function() |
|
| 12 | 12 | { |
| 13 | 13 | Route::get('login', 'AuthController@showLoginForm'); |
| 14 | 14 | Route::post('login', 'AuthController@postLoginForm'); |
@@ -7,19 +7,19 @@ |
||
| 7 | 7 | |
| 8 | 8 | class AuthController extends Controller |
| 9 | 9 | { |
| 10 | - public function showLoginForm () { |
|
| 10 | + public function showLoginForm() { |
|
| 11 | 11 | return view('Blue::auth.login'); |
| 12 | 12 | } |
| 13 | 13 | |
| 14 | - public function postLoginForm () { |
|
| 14 | + public function postLoginForm() { |
|
| 15 | 15 | return 'Posted!'; |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | - public function showRegisterForm () { |
|
| 18 | + public function showRegisterForm() { |
|
| 19 | 19 | return view('Blue::auth.register'); |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | - public function postRegisterForm () { |
|
| 22 | + public function postRegisterForm() { |
|
| 23 | 23 | return 'Posted!'; |
| 24 | 24 | } |
| 25 | 25 | } |
| 26 | 26 | \ No newline at end of file |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | |
| 12 | 12 | class PagesController extends Controller |
| 13 | 13 | { |
| 14 | - private function generateSEO ($site, $page) { |
|
| 14 | + private function generateSEO($site, $page) { |
|
| 15 | 15 | SEO::metatags() |
| 16 | 16 | ->setTitleDefault($site['title']) |
| 17 | 17 | ->setTitleSeparator(' - ') |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | } |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | - public function home () { |
|
| 50 | + public function home() { |
|
| 51 | 51 | $site = [ |
| 52 | 52 | 'title' => 'Blue CMS', |
| 53 | 53 | 'twitter' => '@BlueCMS', |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | return view('Blue::home'); |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | - public function page ($page = null) { |
|
| 81 | + public function page($page = null) { |
|
| 82 | 82 | if (is_null($page)) { |
| 83 | 83 | return $this->home(); |
| 84 | 84 | } |
@@ -7,11 +7,11 @@ |
||
| 7 | 7 | |
| 8 | 8 | class AdminController extends Controller |
| 9 | 9 | { |
| 10 | - public function index () { |
|
| 10 | + public function index() { |
|
| 11 | 11 | return redirect('admin/dashboard'); |
| 12 | 12 | } |
| 13 | 13 | |
| 14 | - public function showDashboard () { |
|
| 14 | + public function showDashboard() { |
|
| 15 | 15 | return view('Blue::admin.dashboard'); |
| 16 | 16 | } |
| 17 | 17 | } |
| 18 | 18 | \ No newline at end of file |