31 lines
531 B
PHP
31 lines
531 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Enums\PotentialClientType;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class PotentialClient extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = [
|
|
'type',
|
|
'name',
|
|
'phone',
|
|
'email',
|
|
'address',
|
|
'social_media',
|
|
'website',
|
|
'notes',
|
|
];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return [
|
|
'type' => PotentialClientType::class,
|
|
];
|
|
}
|
|
}
|