1
0
mirror of https://github.com/robonen/metr.git synced 2026-03-20 10:54:41 +00:00

Offer and order controllers

This commit is contained in:
2022-05-27 12:01:28 +07:00
parent c4f98fdb58
commit dc539ed911
21 changed files with 493 additions and 29 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Models;
use App\Enums\OrderTypesEnum;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
@@ -21,7 +22,8 @@ class Offer extends Model
'price',
'rooms',
'yandex_mark',
'text',
'location',
'description',
'is_group',
];
@@ -31,6 +33,8 @@ class Offer extends Model
* @var array<string, string>
*/
protected $casts = [
// 'is_group' => 'boolean',
'type' => OrderTypesEnum::class,
'price' => 'double',
'is_group' => 'boolean',
];
}