| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class FaqController extends Controller |
||
| 19 | { |
||
| 20 | public function index() |
||
| 25 | } |
||
| 26 | |||
| 27 | public function showCategoryPage($categoryId) |
||
| 28 | { |
||
| 29 | $category = FaqCategory::findOrFail($categoryId); |
||
| 30 | $categories = FaqCategory::all(); |
||
| 31 | $articles = $category->articles()->orderByDesc('updated_at')->paginate(15); |
||
| 32 | |||
| 33 | return view('frontend.faq.category_detail', compact('category', 'categories', 'articles')); |
||
| 34 | } |
||
| 35 | |||
| 36 | public function showArticlePage($articleId) |
||
| 42 | } |
||
| 43 | } |
||
| 44 |