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

19 lines
472 B

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