✨ Improve model serialization
Probably going to switch to spatie's package, though
This commit is contained in:
parent
3246004e58
commit
70e4404c22
2 changed files with 39 additions and 7 deletions
|
|
@ -6,12 +6,12 @@ use App\Exceptions\Quit;
|
|||
|
||||
class Input extends Model
|
||||
{
|
||||
public ?array $files;
|
||||
public ?string $url;
|
||||
public ?string $destination;
|
||||
public ?string $title;
|
||||
public bool $low;
|
||||
public bool $sync;
|
||||
protected ?array $files = null;
|
||||
protected ?string $url = null;
|
||||
protected ?string $destination = null;
|
||||
protected ?string $title = null;
|
||||
protected bool $low = false;
|
||||
protected bool $sync = false;
|
||||
|
||||
public function assertValid(): self
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue