From bbac3cc205b3c84be6c85bf85a5d30ea924a6e73 Mon Sep 17 00:00:00 2001 From: Brian Rogers Date: Wed, 26 Oct 2022 13:14:54 -0600 Subject: [PATCH] adding Dashboard to inertia render path --- Packages/User/laravel_controller.sublime-snippet | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Packages/User/laravel_controller.sublime-snippet b/Packages/User/laravel_controller.sublime-snippet index ff30d52..ed4886c 100644 --- a/Packages/User/laravel_controller.sublime-snippet +++ b/Packages/User/laravel_controller.sublime-snippet @@ -9,7 +9,7 @@ public function index(Request \$request) 'all${2:Models}' => ${1:Model}::where('user_id', \$request->user()->id)->paginate(), ]; - return Inertia::render('${2:Models}/Index')->with(\$data); + return Inertia::render('Dashboard/${2:Models}/Index')->with(\$data); } public function show(${1:Model} \$${4:model}) @@ -18,14 +18,14 @@ public function show(${1:Model} \$${4:model}) '${4:model}' => \$${4:model}, ]; - return Inertia::render('${2:Models}/Show')->with(\$data); + return Inertia::render('Dashboard/${2:Models}/Show')->with(\$data); } public function create() { \$data = []; - return Inertia::render('${2:Models}/Create')->with(\$data); + return Inertia::render('Dashboard/${2:Models}/Create')->with(\$data); } public function store(Request \$request) @@ -48,7 +48,7 @@ public function edit(Request \$request, ${1:Model} \$${4:model}) '${4:model}' => \$${4:model}, ]; - return Inertia::render('${2:Models}/Edit')->with(\$data); + return Inertia::render('Dashboard/${2:Models}/Edit')->with(\$data); } public function update(Request \$request, ${1:Model} \$${4:model})