adding Dashboard to inertia render path
This commit is contained in:
parent
329fd2b11e
commit
bbac3cc205
@ -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})
|
||||
|
Loading…
x
Reference in New Issue
Block a user