diff --git a/src/Phaseolies/Console/Commands/stubs/controller/complete.stub b/src/Phaseolies/Console/Commands/stubs/controller/complete.stub index 7617321..ab9a0c2 100644 --- a/src/Phaseolies/Console/Commands/stubs/controller/complete.stub +++ b/src/Phaseolies/Console/Commands/stubs/controller/complete.stub @@ -10,6 +10,10 @@ class {{ class }} extends Controller #[Route(uri:'/{{ routeName }}', name:'{{ routingName }}.default')] public function index() { - return view('{{ routeView }}.default', ['className' => '{{ class }}']); + return view('{{ routeView }}.default', [ + 'className' => '{{ class }}', + 'controllerPath' => '{{ controllerPath }}', + 'routeName' => '{{ routeName }}' + ]); } } \ No newline at end of file diff --git a/src/Phaseolies/Console/Commands/stubs/controller/layouts/complete.stub b/src/Phaseolies/Console/Commands/stubs/controller/layouts/complete.stub index eeda64c..d37e125 100644 --- a/src/Phaseolies/Console/Commands/stubs/controller/layouts/complete.stub +++ b/src/Phaseolies/Console/Commands/stubs/controller/layouts/complete.stub @@ -19,8 +19,8 @@

Generated Files

The following files were created for you: