24 lines
471 B
PHP
24 lines
471 B
PHP
<?php
|
|
|
|
namespace App\Models\Spot;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
use PhpParser\Node\Stmt\Block;
|
|
|
|
class SpotSmartBlock extends Model
|
|
{
|
|
protected $table = 'wa_spot_block';
|
|
|
|
protected $fillable = [
|
|
'block_id',
|
|
];
|
|
|
|
/**
|
|
* Get the block associated with this spot.
|
|
*/
|
|
public function block(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Block::class, 'block_id');
|
|
}
|
|
}
|