MicroFrameWork/kernel/modules/post/controllers/PostRestController.php
2024-10-07 11:31:16 +03:00

22 lines
399 B
PHP

<?php
namespace kernel\modules\post\controllers;
use Illuminate\Database\Eloquent\Model;
use JetBrains\PhpStorm\NoReturn;
use kernel\modules\post\models\Post;
use kernel\RestController;
class PostRestController extends RestController
{
public function __construct()
{
$this->model = new Post();
}
protected function expand(): array
{
return ["user"];
}
}