0.1.5
This commit is contained in:
@@ -13,13 +13,12 @@ class PagesController
|
||||
{
|
||||
|
||||
/**
|
||||
* @param Request $request
|
||||
* @param string $path
|
||||
* @return ResponseFactory|Application|\Illuminate\Http\Response|Response
|
||||
*/
|
||||
public function show(Request $request, string $path = '')
|
||||
public function show(string $path = '')
|
||||
{
|
||||
if (!File::exists(resource_path("js/Pages/Pages/$path.jsx"))) {
|
||||
if (!File::exists(resource_path("js/Pages/Pages/{$path}.jsx"))) {
|
||||
return response('Page not found', 404);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user