mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 09:34:50 +02:00
fc193fdf1d
* chore: bump dependencies, fix StyleCI config, community docs * style: fix StyleCI findings * style: fix StyleCI findings * style: fix StyleCI findings * style: fix StyleCI findings
26 lines
558 B
PHP
26 lines
558 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Grills\GrillFactory;
|
|
use App\Models\Announcement;
|
|
use App\Models\Video;
|
|
use Illuminate\Http\Request;
|
|
|
|
class WelcomeController extends Controller
|
|
{
|
|
public function do()
|
|
{
|
|
// View Data
|
|
$grill = GrillFactory::getGrill();
|
|
$videoCount = Video::count();
|
|
$announcements = Announcement::all();
|
|
|
|
return view('welcome', [
|
|
'announcements' => $announcements,
|
|
'grill' => $grill->getPath(),
|
|
'videoCount' => $videoCount,
|
|
]);
|
|
}
|
|
}
|