mirror of
https://github.com/robonen/metr.git
synced 2026-03-20 10:54:41 +00:00
All models
This commit is contained in:
36
backend/app/Models/Offer.php
Normal file
36
backend/app/Models/Offer.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Offer extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int, string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'owner_id',
|
||||
'name',
|
||||
'type',
|
||||
'price',
|
||||
'rooms',
|
||||
'yandex_mark',
|
||||
'text',
|
||||
'is_group',
|
||||
];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast.
|
||||
*
|
||||
* @var array<string, string>
|
||||
*/
|
||||
protected $casts = [
|
||||
// 'is_group' => 'boolean',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user