28 lines
475 B
PHP
28 lines
475 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Models;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
||
|
class Pedido extends Model
|
||
|
{
|
||
|
/**
|
||
|
* The attributes that are mass assignable.
|
||
|
*
|
||
|
* @var array<int, string>
|
||
|
*/
|
||
|
protected $fillable = [
|
||
|
'name',
|
||
|
];
|
||
|
|
||
|
/**
|
||
|
* El barrio al que pertenece el pedido.
|
||
|
*/
|
||
|
public function barrio(): BelongsTo
|
||
|
{
|
||
|
return $this->belongsTo(Barrio::class);
|
||
|
}
|
||
|
|
||
|
}
|