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

15 lines
272 B

<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Slider;
class HomeController extends Controller
{
public function index(){
$sliders = Slider::where('status',1)->get();
return view('welcome',compact('sliders'));
}
}