🆙 Added fixed cms

This commit is contained in:
Remco
2026-01-07 19:32:43 +01:00
parent fdb0dc276d
commit 711fa2c29e
3992 changed files with 183381 additions and 0 deletions
@@ -0,0 +1,27 @@
<?php
namespace App\Http\Controllers\Miscellaneous;
use App\Http\Controllers\Controller;
use App\Models\Articles\WebsiteArticle;
use App\Models\Miscellaneous\CameraWeb;
use Illuminate\View\View;
class HomeController extends Controller
{
public function __invoke(): View
{
return view('index', [
'articles' => WebsiteArticle::latest('id')
->take(4)
->has('user')
->with('user:id,username,look')
->get(),
'photos' => CameraWeb::latest('id')
->take(4)
->where('visible', true)
->with('user:id,username,look')
->get(),
]);
}
}