12345678910111213141516171819202122232425262728293031 |
- <?php
- namespace App\Shop\OrderStatuses;
- use App\Shop\Orders\Order;
- use Illuminate\Database\Eloquent\Model;
- class OrderStatus extends Model
- {
- /**
- * The attributes that are mass assignable.
- *
- * @var array
- */
- protected $fillable = [
- 'name',
- 'color',
- ];
- /**
- * The attributes that should be hidden for arrays.
- *
- * @var array
- */
- protected $hidden = [];
- public function orders()
- {
- return $this->hasMany(Order::class);
- }
- }
|