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