diff --git a/src/ZurbFoundationPreset.php b/src/ZurbFoundationPreset.php index 4a9fe7d..ccdd249 100644 --- a/src/ZurbFoundationPreset.php +++ b/src/ZurbFoundationPreset.php @@ -102,6 +102,9 @@ protected static function updateWelcomePage() */ protected static function addAuthTemplates() { + // Add Home controller + copy(__DIR__.'/foundation-stubs/Controllers/HomeController.php', app_path('Http/Controllers/HomeController.php')); + // Add Auth route in 'routes/web.php' $auth_route_entry = "Auth::routes();\n\nRoute::get('/home', 'HomeController@index')->name('home');\n\n"; file_put_contents('./routes/web.php', $auth_route_entry, FILE_APPEND); diff --git a/src/foundation-stubs/Controllers/HomeController.php b/src/foundation-stubs/Controllers/HomeController.php new file mode 100644 index 0000000..a3af7dd --- /dev/null +++ b/src/foundation-stubs/Controllers/HomeController.php @@ -0,0 +1,28 @@ +middleware('auth'); + } + + /** + * Show the application dashboard. + * + * @return \Illuminate\Http\Response + */ + public function index() + { + return view('home'); + } +} diff --git a/src/foundation-stubs/views/welcome.blade.php b/src/foundation-stubs/views/welcome.blade.php index ffa8421..67682de 100644 --- a/src/foundation-stubs/views/welcome.blade.php +++ b/src/foundation-stubs/views/welcome.blade.php @@ -115,7 +115,7 @@
-

Zurb Foundation 6.4.1 Buttons

+

Zurb Foundation 6.4.1

Primary Secondary Success