🆙 Forget data back 🆙

This commit is contained in:
Remco
2026-01-07 20:31:19 +01:00
parent acf2d7e661
commit 789b670f51
412 changed files with 66963 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(),
]);
}
}