Files
getgreen-backend/app/Models/NotificationAvailable.php

30 lines
488 B
PHP
Executable File

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class NotificationAvailable extends Model
{
/**
* @var array
*/
protected $guarded = ['id'];
/**
* @var array
*/
protected $casts = [
'phone' => 'integer',
'product_id' => 'integer'
];
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function product()
{
return $this->belongsTo(Product::class);
}
}