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

25 lines
745 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', 'pages'));
}
public function details($slug)
{
$page = Page::where(['title' => 'Visa', 'status' => 1])->first();
$visas = VisaService::where('status', 1)->get();
$service = VisaService::where(['slug' => $slug, 'status' => 1])->orderby('order_by', 'asc')->first();
return view('visa', compact('service', 'page', 'visas'));
}
}