mirror of
https://github.com/robonen/metr.git
synced 2026-03-20 02:44:42 +00:00
User authentication
This commit is contained in:
@@ -5,7 +5,7 @@ namespace App\Models;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Review extends Model
|
||||
class Feedback extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
@@ -15,7 +15,6 @@ class Review extends Model
|
||||
* @var array<int, string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'offer_id',
|
||||
'user_id',
|
||||
'comment',
|
||||
'rating',
|
||||
@@ -16,11 +16,12 @@ class Offer extends Model
|
||||
* @var array<int, string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'owner_id',
|
||||
'user_id',
|
||||
'name',
|
||||
'type',
|
||||
'price',
|
||||
'rooms',
|
||||
'space',
|
||||
'yandex_mark',
|
||||
'location',
|
||||
'description',
|
||||
@@ -34,6 +35,7 @@ class Offer extends Model
|
||||
*/
|
||||
protected $casts = [
|
||||
'type' => OrderTypesEnum::class,
|
||||
'space' => 'double',
|
||||
'price' => 'double',
|
||||
'is_group' => 'boolean',
|
||||
];
|
||||
|
||||
@@ -17,8 +17,6 @@ class Order extends Model
|
||||
protected $fillable = [
|
||||
'offer_id',
|
||||
'user_id',
|
||||
'start_date',
|
||||
'end_date',
|
||||
'price',
|
||||
'discount',
|
||||
];
|
||||
@@ -29,8 +27,6 @@ class Order extends Model
|
||||
* @var array<string, string>
|
||||
*/
|
||||
protected $casts = [
|
||||
'start_date' => 'datetime',
|
||||
'end_date' => 'datetime',
|
||||
'price' => 'double',
|
||||
'discount' => 'double',
|
||||
];
|
||||
|
||||
@@ -34,13 +34,4 @@ class User extends Authenticatable
|
||||
protected $hidden = [
|
||||
'password',
|
||||
];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast.
|
||||
*
|
||||
* @var array<string, string>
|
||||
*/
|
||||
// protected $casts = [
|
||||
// 'email_verified_at' => 'datetime',
|
||||
// ];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user