mirror of
https://github.com/ericasch6/scrum-poker-internal.git
synced 2026-10-14 01:12:09 +00:00
initial Setup and data structure
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user