Build
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Attributes\Fillable;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
#[Fillable([
|
||||
'user_id', 'business_name', 'headline', 'bio', 'service_area', 'skills',
|
||||
'tools', 'certifications', 'insurance_status', 'rate_card', 'travel_policy',
|
||||
'availability_notes', 'website_url', 'phone', 'public_contact',
|
||||
])]
|
||||
class ProviderProfile extends Model
|
||||
{
|
||||
public function user(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
|
||||
public function externalImports(): HasMany
|
||||
{
|
||||
return $this->hasMany(ExternalProfileImport::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user