MicroFrameWork/app/models/Post.php

27 lines
592 B
PHP
Raw Normal View History

2024-07-03 14:41:15 +03:00
<?php
2024-07-03 15:15:59 +03:00
namespace app\models;
2024-07-03 14:41:15 +03:00
use \Illuminate\Database\Eloquent\Model;
2024-07-25 16:15:18 +03:00
/**
* @property int $id
* @property string $post
* @property string $username
* @method static where(int[] $array)
* @method static find($id)
*/
2024-07-03 14:41:15 +03:00
class Post extends Model
{
2024-07-10 14:39:37 +03:00
protected $table = 'post';
2024-07-25 16:15:18 +03:00
protected $fillable = ['post', 'username'];
public static function labels(): array
{
return [
'post' => 'Пост',
'username' => 'Пользователь',
'created_at' => 'Создан',
'updated_at' => 'Обновлен'
];
}
2024-07-03 14:41:15 +03:00
}