mirror of
https://github.com/ericasch6/scrum-poker-internal.git
synced 2026-10-13 14:12:08 +00:00
28 lines
460 B
PHP
28 lines
460 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class Deck extends Model
|
|
{
|
|
protected $fillable = [
|
|
'name',
|
|
'cards',
|
|
];
|
|
|
|
protected function casts()
|
|
{
|
|
return [
|
|
'cards' => 'array',
|
|
'is_system' => 'boolean'
|
|
];
|
|
}
|
|
|
|
public function user(): BelongsTo
|
|
{
|
|
return $this->belongsTo(User::class);
|
|
}
|
|
}
|