Your ROOT_URL in app.ini is http://159.89.207.79:3000/ but you are visiting http://9.cron.my.id:3000/tribikram/ET-VISA/blame/commit/3940ca697f96117a33fa5609fa35e27c9dc78ee9/app/Http/Controllers/FaqController.php You should set ROOT_URL correctly, otherwise the web may not work correctly.

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'));
}
}