One Hat Cyber Team
Your IP :
108.162.241.37
Server IP :
188.114.97.7
Server :
Linux advantage-project 5.14.0-503.26.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 19 16:28:19 UTC 2025 x86_64
Server Software :
Apache/2.4.62 (Rocky Linux) OpenSSL/3.2.2
PHP Version :
8.3.17
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
htmlOld
/
app
/
Http
/
Controllers
/
Edit File:
HomeController.php
<?php namespace App\Http\Controllers; use App\Models\Content; use Illuminate\Http\Request; class HomeController extends Controller { /** * Create a new controller instance. * * @return void */ // public function __construct() // { // $this->middleware('auth'); // } /** * Show the application dashboard. * * @return \Illuminate\Contracts\Support\Renderable */ public function index() { $contents = Content::where('category_id',1) ->orderBy('id', 'desc')->limit(8)->get(); return view('index',compact('contents')); } }
Simpan