Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

Commit

Permalink
Fixed the exporting of DashboardController.stub
Browse files Browse the repository at this point in the history
  • Loading branch information
ravenberg committed Jan 5, 2020
1 parent 1cd2481 commit 8ae069a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/InertiaReactPreset.php
Expand Up @@ -188,7 +188,8 @@ public static function exportInertiaBladeView()
}

/**
* Export the Auth controllers that override the default ones that try to render blade views.
* Export the Auth controllers that override the default ones that try to render blade views. Also exports the
* dashboard controller.
*/
public static function exportAuthControllers()
{
Expand All @@ -198,6 +199,7 @@ public static function exportAuthControllers()
File::copy(__DIR__.'/stubs/Controllers/Auth/ForgotPasswordController.stub', app_path('Http/Controllers/Auth/ForgotPasswordController.php'));
File::delete(app_path('Http/Controllers/ResetPasswordController.php'));
File::copy(__DIR__.'/stubs/Controllers/Auth/ResetPasswordController.stub', app_path('Http/Controllers/Auth/ResetPasswordController.php'));
File::copy(__DIR__.'/stubs/Controllers/DashboardController.stub', app_path('Http/Controllers/DashboardController.php'));
}

/**
Expand Down
3 changes: 3 additions & 0 deletions src/stubs/Controllers/DashboardController.stub
Expand Up @@ -7,6 +7,9 @@ use Inertia\Inertia;

class DashboardController extends Controller
{
/**
* @return \Inertia\Response
*/
public function index()
{
return Inertia::render('Dashboard/Index');
Expand Down

0 comments on commit 8ae069a

Please sign in to comment.