Skip to content

Commit

Permalink
Remove unneeded template vars
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeelio committed Jun 10, 2020
1 parent 4bf4d09 commit b76294c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions app/Http/Controllers/Admin/PagesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ public function index(Request $request)
*/
public function create()
{
return view('admin.pages.create', [
'page_types' => PageType::select(false),
]);
return view('admin.pages.create');
}

/**
Expand Down Expand Up @@ -102,8 +100,7 @@ public function edit($id)
}

return view('admin.pages.edit', [
'page' => $page,
'page_types' => PageType::select(false),
'page' => $page,
]);
}

Expand Down

0 comments on commit b76294c

Please sign in to comment.