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/src/commit/2278b8c858f4e6cc4e663f0c8f6d07f960a1d45e/app/Http/Controllers/VisaController.php You should set ROOT_URL correctly, otherwise the web may not work correctly.
 
 
 
 

16 lines
380 B

<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\VisaService;
use App\Models\Page;
class VisaController extends Controller
{
public function index(){
$page = Page::where(['title' => 'Visa','status' => 1])->first();
$visas = VisaService::where('status',1)->get();
return view('visa',compact('visas','page'));
}
}