MicroFrameWork/kernel/modules/post/controllers/PostRestController.php

22 lines
399 B
PHP
Raw Normal View History

2024-09-26 14:47:13 +03:00
<?php
namespace kernel\modules\post\controllers;
use Illuminate\Database\Eloquent\Model;
use JetBrains\PhpStorm\NoReturn;
2024-09-26 14:47:13 +03:00
use kernel\modules\post\models\Post;
use kernel\RestController;
class PostRestController extends RestController
{
public function __construct()
{
$this->model = new Post();
}
2024-10-07 11:31:16 +03:00
protected function expand(): array
2024-09-26 14:47:13 +03:00
{
2024-10-07 11:31:16 +03:00
return ["user"];
2024-09-26 14:47:13 +03:00
}
2024-09-26 14:47:13 +03:00
}