| @@ 58-68 (lines=11) @@ | ||
| 55 | /** |
|
| 56 | * @return mixed |
|
| 57 | */ |
|
| 58 | public function categories() |
|
| 59 | { |
|
| 60 | // Check if the user is able to create forums. |
|
| 61 | if (!$this->canCreateForums()) { |
|
| 62 | return redirect()->route('laravel-forum.index'); |
|
| 63 | } |
|
| 64 | ||
| 65 | $data = $this->buildData(); |
|
| 66 | $data['categories'] = ForumCategory::all(); |
|
| 67 | return view('laravel-forum::admin/categories', $data); |
|
| 68 | } |
|
| 69 | ||
| 70 | public function forumForm() |
|
| 71 | { |
|
| @@ 70-80 (lines=11) @@ | ||
| 67 | return view('laravel-forum::admin/categories', $data); |
|
| 68 | } |
|
| 69 | ||
| 70 | public function forumForm() |
|
| 71 | { |
|
| 72 | // Check if the user is able to create forums. |
|
| 73 | if (!$this->canCreateForums()) { |
|
| 74 | return redirect()->route('laravel-forum.index'); |
|
| 75 | } |
|
| 76 | ||
| 77 | $data = $this->buildData(); |
|
| 78 | $data['categories'] = ForumCategory::all(); |
|
| 79 | return view('laravel-forum::admin.forum.create', $data); |
|
| 80 | } |
|
| 81 | ||
| 82 | public function categoryForm() |
|
| 83 | { |
|