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

17 lines
377 B

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