feature flags and a bit on the design
This commit is contained in:
@@ -40,6 +40,14 @@ class Product extends Model
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the route key for the model.
|
||||
*/
|
||||
public function getRouteKeyName(): string
|
||||
{
|
||||
return 'slug';
|
||||
}
|
||||
|
||||
/**
|
||||
* Boot the model.
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class WaitlistEntry extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'email',
|
||||
'notified',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'notified' => 'boolean',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user