| @@ 35-44 (lines=10) @@ | ||
| 32 | * |
|
| 33 | * @return \Illuminate\View\View |
|
| 34 | */ |
|
| 35 | public function showCreateForm(): View |
|
| 36 | { |
|
| 37 | $categories = Category::pluck('title', 'id'); |
|
| 38 | ||
| 39 | $breadcrumbs = $this->breadcrumbs |
|
| 40 | ->addCrumb('Manage Articles', route('admin.blog.article.index')) |
|
| 41 | ->addCrumb("Create", route('admin.blog.article.create')); |
|
| 42 | ||
| 43 | return view('Admin::Blog.article.create', compact('categories', 'breadcrumbs')); |
|
| 44 | } |
|
| 45 | ||
| 46 | /** |
|
| 47 | * Handle an article create request for the application. |
|
| @@ 34-45 (lines=12) @@ | ||
| 31 | * |
|
| 32 | * @return \Illuminate\View\View |
|
| 33 | */ |
|
| 34 | public function showCreateForm(): View |
|
| 35 | { |
|
| 36 | $permissions = Permission::pluck('name', 'id'); |
|
| 37 | ||
| 38 | $optionsAttributes = $this->getOptionAttributes(); |
|
| 39 | ||
| 40 | $breadcrumbs = $this->breadcrumbs |
|
| 41 | ->addCrumb('Manage Roles', route('admin.role.role.index')) |
|
| 42 | ->addCrumb("Create", route('admin.role.role.create')); |
|
| 43 | ||
| 44 | return view('Admin::Role.role.create', compact('permissions', 'breadcrumbs', 'optionsAttributes')); |
|
| 45 | } |
|
| 46 | ||
| 47 | /** |
|
| 48 | * Handle a role create request for the application. |
|