You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
362 B
16 lines
362 B
<?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'));
|
|
}
|
|
}
|
|
|