17 lines
362 B
17 lines
362 B
2 years ago
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers;
|
||
|
|
||
|
use Illuminate\Http\Request;
|
||
|
use App\Models\Faq;
|
||
|
use App\Models\Page;
|
||
|
|
||
|
class FaqController extends Controller
|
||
|
{
|
||
|
public function index(){
|
||
|
$page = Page::where(['title' => 'FAQ','status' => 1])->first();
|
||
|
$faqs = Faq::where('status',true)->get();
|
||
|
return view('faq',compact('faqs','page'));
|
||
|
}
|
||
|
}
|