Deathgarden_Rebirth-Rewrite/dist/app/Http/Controllers/Web/Admin/Tools/GameNewsController.php
Vari 90fbc458db Created some more input components and added all attributes to game news entry.
Also added Route and function for accepting post in GameNewsController
2024-03-23 05:23:14 +01:00

31 lines
691 B
PHP

<?php
namespace App\Http\Controllers\Web\Admin\Tools;
use App\Enums\Auth\Permissions;
use App\Http\Controllers\Controller;
use App\Models\Game\Messages\News;
use Illuminate\Http\Request;
class GameNewsController extends AdminToolController
{
protected static string $name = 'Game News';
protected static string $description = 'Create and edit in game news.';
protected static string $iconComponent = 'icons.gamenews';
protected static Permissions $neededPermission = Permissions::GAME_NEWS;
public function index()
{
$news = News::all();
return view('admin.tools.game-news', ['newsList' => $news]);
}
public function put() {
}
}