12-05-2026 Frontend dev
This commit is contained in:
parent
405df0a122
commit
5b8bdf4182
779 changed files with 480564 additions and 6241 deletions
|
|
@ -1,83 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Created by Reliese Model.
|
||||
*/
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* Class NewsletterSubscription
|
||||
*
|
||||
* @property int $id
|
||||
* @property int $salutation_id
|
||||
* @property string $first_name
|
||||
* @property string $last_name
|
||||
* @property string $email
|
||||
* @property string|null $ip_address
|
||||
* @property int|null $is_active
|
||||
* @property Carbon|null $subscribe_date
|
||||
* @property Carbon|null $unsubscribe_date
|
||||
* @property int|null $user_id
|
||||
* @property string|null $validate
|
||||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
* @property Salutation $salutation
|
||||
* @property SfGuardUser|null $sf_guard_user
|
||||
* @package App\Models
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|NewsletterSubscription newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|NewsletterSubscription newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|NewsletterSubscription query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|NewsletterSubscription whereCreatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|NewsletterSubscription whereEmail($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|NewsletterSubscription whereFirstName($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|NewsletterSubscription whereId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|NewsletterSubscription whereIpAddress($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|NewsletterSubscription whereIsActive($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|NewsletterSubscription whereLastName($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|NewsletterSubscription whereSalutationId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|NewsletterSubscription whereSubscribeDate($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|NewsletterSubscription whereUnsubscribeDate($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|NewsletterSubscription whereUpdatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|NewsletterSubscription whereUserId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|NewsletterSubscription whereValidate($value)
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class NewsletterSubscription extends Model
|
||||
{
|
||||
protected $table = 'newsletter_subscription';
|
||||
|
||||
protected $casts = [
|
||||
'salutation_id' => 'int',
|
||||
'is_active' => 'int',
|
||||
'subscribe_date' => 'datetime',
|
||||
'unsubscribe_date' => 'datetime',
|
||||
'user_id' => 'int'
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'salutation_id',
|
||||
'first_name',
|
||||
'last_name',
|
||||
'email',
|
||||
'ip_address',
|
||||
'is_active',
|
||||
'subscribe_date',
|
||||
'unsubscribe_date',
|
||||
'user_id',
|
||||
'validate'
|
||||
];
|
||||
|
||||
public function salutation()
|
||||
{
|
||||
return $this->belongsTo(Salutation::class);
|
||||
}
|
||||
|
||||
public function sf_guard_user()
|
||||
{
|
||||
return $this->belongsTo(SfGuardUser::class, 'user_id');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue