ldc-boutique-cnc/app/Models/OrdersStatus.php
2022-09-03 16:56:16 +02:00

35 lines
661 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class OrdersStatus extends Model
{
use HasFactory;
/**
* The table associated with the model
*
* @var string
*/
protected $table = "orders_status";
/**
* Indicates if the model should be timestamped.
*
* @var boolean
*/
public $timestamps = false;
/**
* hasMany orders relation
*
* @return \Illuminate\Database\Eloquent\Relations\HasMany
*/
public function orders()
{
return $this->hasMany('App\Models\Order', 'status_id');
}
}