12-05-2026 Frontend dev
This commit is contained in:
parent
405df0a122
commit
5b8bdf4182
779 changed files with 480564 additions and 6241 deletions
|
|
@ -17,7 +17,7 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
* @property SfGuardUser|null $sf_guard_user
|
||||
* @package App\Models
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|ApiUser newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|ApiUser newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|ApiUser query()
|
||||
|
|
@ -25,22 +25,23 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @method static \Illuminate\Database\Eloquent\Builder|ApiUser whereId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|ApiUser whereUpdatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|ApiUser whereUserId($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class ApiUser extends Model
|
||||
{
|
||||
protected $table = 'api_user';
|
||||
protected $table = 'api_user';
|
||||
|
||||
protected $casts = [
|
||||
'user_id' => 'int'
|
||||
];
|
||||
protected $casts = [
|
||||
'user_id' => 'int',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'user_id'
|
||||
];
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
];
|
||||
|
||||
public function sf_guard_user()
|
||||
{
|
||||
return $this->belongsTo(SfGuardUser::class, 'user_id');
|
||||
}
|
||||
public function sf_guard_user()
|
||||
{
|
||||
return $this->belongsTo(SfGuardUser::class, 'user_id');
|
||||
}
|
||||
}
|
||||
|
|
@ -14,22 +14,24 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property int $id
|
||||
* @property string $title
|
||||
* @property string $content
|
||||
* @package App\Models
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Blacklist newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Blacklist newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Blacklist query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Blacklist whereContent($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Blacklist whereId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Blacklist whereTitle($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class Blacklist extends Model
|
||||
{
|
||||
protected $table = 'blacklist';
|
||||
public $timestamps = false;
|
||||
protected $table = 'blacklist';
|
||||
|
||||
protected $fillable = [
|
||||
'title',
|
||||
'content'
|
||||
];
|
||||
public $timestamps = false;
|
||||
|
||||
protected $fillable = [
|
||||
'title',
|
||||
'content',
|
||||
];
|
||||
}
|
||||
|
|
@ -17,39 +17,41 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property Collection|CategoryTranslation[] $category_translations
|
||||
* @property Collection|PressRelease[] $press_releases
|
||||
* @property Collection|PromotionLink[] $promotion_links
|
||||
* @package App\Models
|
||||
* @property-read int|null $category_translations_count
|
||||
* @property-read int|null $footer_codes_count
|
||||
* @property-read int|null $press_releases_count
|
||||
* @property-read int|null $promotion_links_count
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Category newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Category newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Category query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Category whereId($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class Category extends Model
|
||||
{
|
||||
protected $table = 'category';
|
||||
public $timestamps = false;
|
||||
protected $table = 'category';
|
||||
|
||||
public function footer_codes()
|
||||
{
|
||||
return $this->belongsToMany(FooterCode::class);
|
||||
}
|
||||
public $timestamps = false;
|
||||
|
||||
public function category_translations()
|
||||
{
|
||||
return $this->hasMany(CategoryTranslation::class, 'id');
|
||||
}
|
||||
public function footer_codes()
|
||||
{
|
||||
return $this->belongsToMany(FooterCode::class);
|
||||
}
|
||||
|
||||
public function press_releases()
|
||||
{
|
||||
return $this->hasMany(PressRelease::class);
|
||||
}
|
||||
public function category_translations()
|
||||
{
|
||||
return $this->hasMany(CategoryTranslation::class, 'id');
|
||||
}
|
||||
|
||||
public function promotion_links()
|
||||
{
|
||||
return $this->belongsToMany(PromotionLink::class, 'promotion_link_category');
|
||||
}
|
||||
public function press_releases()
|
||||
{
|
||||
return $this->hasMany(PressRelease::class);
|
||||
}
|
||||
|
||||
public function promotion_links()
|
||||
{
|
||||
return $this->belongsToMany(PromotionLink::class, 'promotion_link_category');
|
||||
}
|
||||
}
|
||||
|
|
@ -15,37 +15,40 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property int $category_id
|
||||
* @property Category $category
|
||||
* @property FooterCode $footer_code
|
||||
* @package App\Models
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|CategoryFooterCode newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|CategoryFooterCode newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|CategoryFooterCode query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|CategoryFooterCode whereCategoryId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|CategoryFooterCode whereFooterCodeId($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class CategoryFooterCode extends Model
|
||||
{
|
||||
protected $table = 'category_footer_code';
|
||||
public $incrementing = false;
|
||||
public $timestamps = false;
|
||||
protected $table = 'category_footer_code';
|
||||
|
||||
protected $casts = [
|
||||
'footer_code_id' => 'int',
|
||||
'category_id' => 'int'
|
||||
];
|
||||
public $incrementing = false;
|
||||
|
||||
protected $fillable = [
|
||||
'footer_code_id',
|
||||
'category_id'
|
||||
];
|
||||
public $timestamps = false;
|
||||
|
||||
public function category()
|
||||
{
|
||||
return $this->belongsTo(Category::class);
|
||||
}
|
||||
protected $casts = [
|
||||
'footer_code_id' => 'int',
|
||||
'category_id' => 'int',
|
||||
];
|
||||
|
||||
public function footer_code()
|
||||
{
|
||||
return $this->belongsTo(FooterCode::class);
|
||||
}
|
||||
protected $fillable = [
|
||||
'footer_code_id',
|
||||
'category_id',
|
||||
];
|
||||
|
||||
public function category()
|
||||
{
|
||||
return $this->belongsTo(Category::class);
|
||||
}
|
||||
|
||||
public function footer_code()
|
||||
{
|
||||
return $this->belongsTo(FooterCode::class);
|
||||
}
|
||||
}
|
||||
|
|
@ -17,7 +17,7 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property string $lang
|
||||
* @property string|null $slug
|
||||
* @property Category $category
|
||||
* @package App\Models
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|CategoryTranslation newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|CategoryTranslation newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|CategoryTranslation query()
|
||||
|
|
@ -26,25 +26,28 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @method static \Illuminate\Database\Eloquent\Builder|CategoryTranslation whereLang($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|CategoryTranslation whereName($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|CategoryTranslation whereSlug($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class CategoryTranslation extends Model
|
||||
{
|
||||
protected $table = 'category_translation';
|
||||
public $incrementing = false;
|
||||
public $timestamps = false;
|
||||
protected $table = 'category_translation';
|
||||
|
||||
protected $casts = [
|
||||
'id' => 'int'
|
||||
];
|
||||
public $incrementing = false;
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'description'
|
||||
];
|
||||
public $timestamps = false;
|
||||
|
||||
public function category()
|
||||
{
|
||||
return $this->belongsTo(Category::class, 'id');
|
||||
}
|
||||
protected $casts = [
|
||||
'id' => 'int',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'description',
|
||||
];
|
||||
|
||||
public function category()
|
||||
{
|
||||
return $this->belongsTo(Category::class, 'id');
|
||||
}
|
||||
}
|
||||
|
|
@ -38,10 +38,10 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property Collection|PressRelease[] $press_releases
|
||||
* @property ResponsibleCompanyUser $responsible_company_user
|
||||
* @property Collection|UserPaymentOption[] $user_payment_options
|
||||
* @package App\Models
|
||||
* @property-read int|null $contacts_count
|
||||
* @property-read int|null $press_releases_count
|
||||
* @property-read int|null $user_payment_options_count
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Company newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Company newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Company query()
|
||||
|
|
@ -63,75 +63,76 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @method static \Illuminate\Database\Eloquent\Builder|Company whereUpdatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Company whereUserId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Company whereWebsite($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class Company extends Model
|
||||
{
|
||||
protected $table = 'company';
|
||||
protected $table = 'company';
|
||||
|
||||
protected $casts = [
|
||||
'country_id' => 'int',
|
||||
'is_active' => 'int',
|
||||
'user_id' => 'int',
|
||||
'disable_footer_code' => 'int'
|
||||
];
|
||||
protected $casts = [
|
||||
'country_id' => 'int',
|
||||
'is_active' => 'int',
|
||||
'user_id' => 'int',
|
||||
'disable_footer_code' => 'int',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'password'
|
||||
];
|
||||
protected $hidden = [
|
||||
'password',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'address',
|
||||
'country_id',
|
||||
'phone',
|
||||
'fax',
|
||||
'email',
|
||||
'website',
|
||||
'logo',
|
||||
'ctype',
|
||||
'login',
|
||||
'password',
|
||||
'is_active',
|
||||
'user_id',
|
||||
'slug',
|
||||
'disable_footer_code'
|
||||
];
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'address',
|
||||
'country_id',
|
||||
'phone',
|
||||
'fax',
|
||||
'email',
|
||||
'website',
|
||||
'logo',
|
||||
'ctype',
|
||||
'login',
|
||||
'password',
|
||||
'is_active',
|
||||
'user_id',
|
||||
'slug',
|
||||
'disable_footer_code',
|
||||
];
|
||||
|
||||
public function country()
|
||||
{
|
||||
return $this->belongsTo(Country::class);
|
||||
}
|
||||
public function country()
|
||||
{
|
||||
return $this->belongsTo(Country::class);
|
||||
}
|
||||
|
||||
public function sf_guard_user()
|
||||
{
|
||||
return $this->belongsTo(SfGuardUser::class, 'user_id');
|
||||
}
|
||||
public function sf_guard_user()
|
||||
{
|
||||
return $this->belongsTo(SfGuardUser::class, 'user_id');
|
||||
}
|
||||
|
||||
public function company_user()
|
||||
{
|
||||
return $this->hasOne(CompanyUser::class);
|
||||
}
|
||||
public function company_user()
|
||||
{
|
||||
return $this->hasOne(CompanyUser::class);
|
||||
}
|
||||
|
||||
public function contacts()
|
||||
{
|
||||
return $this->hasMany(Contact::class);
|
||||
}
|
||||
public function contacts()
|
||||
{
|
||||
return $this->hasMany(Contact::class);
|
||||
}
|
||||
|
||||
public function press_releases()
|
||||
{
|
||||
return $this->hasMany(PressRelease::class);
|
||||
}
|
||||
public function press_releases()
|
||||
{
|
||||
return $this->hasMany(PressRelease::class);
|
||||
}
|
||||
|
||||
public function responsible_company_user()
|
||||
{
|
||||
return $this->hasOne(ResponsibleCompanyUser::class);
|
||||
}
|
||||
public function responsible_company_user()
|
||||
{
|
||||
return $this->hasOne(ResponsibleCompanyUser::class);
|
||||
}
|
||||
|
||||
public function user_payment_options()
|
||||
{
|
||||
return $this->belongsToMany(UserPaymentOption::class, 'user_payment_option_company', 'company_id', 'payment_option_id')
|
||||
->withPivot('ip_address', 'is_active')
|
||||
->withTimestamps();
|
||||
}
|
||||
public function user_payment_options()
|
||||
{
|
||||
return $this->belongsToMany(UserPaymentOption::class, 'user_payment_option_company', 'company_id', 'payment_option_id')
|
||||
->withPivot('ip_address', 'is_active')
|
||||
->withTimestamps();
|
||||
}
|
||||
}
|
||||
|
|
@ -15,37 +15,40 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property int $user_id
|
||||
* @property Company $company
|
||||
* @property SfGuardUser $sf_guard_user
|
||||
* @package App\Models
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|CompanyUser newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|CompanyUser newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|CompanyUser query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|CompanyUser whereCompanyId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|CompanyUser whereUserId($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class CompanyUser extends Model
|
||||
{
|
||||
protected $table = 'company_user';
|
||||
public $incrementing = false;
|
||||
public $timestamps = false;
|
||||
protected $table = 'company_user';
|
||||
|
||||
protected $casts = [
|
||||
'company_id' => 'int',
|
||||
'user_id' => 'int'
|
||||
];
|
||||
public $incrementing = false;
|
||||
|
||||
protected $fillable = [
|
||||
'company_id',
|
||||
'user_id'
|
||||
];
|
||||
public $timestamps = false;
|
||||
|
||||
public function company()
|
||||
{
|
||||
return $this->belongsTo(Company::class);
|
||||
}
|
||||
protected $casts = [
|
||||
'company_id' => 'int',
|
||||
'user_id' => 'int',
|
||||
];
|
||||
|
||||
public function sf_guard_user()
|
||||
{
|
||||
return $this->belongsTo(SfGuardUser::class, 'user_id');
|
||||
}
|
||||
protected $fillable = [
|
||||
'company_id',
|
||||
'user_id',
|
||||
];
|
||||
|
||||
public function company()
|
||||
{
|
||||
return $this->belongsTo(Company::class);
|
||||
}
|
||||
|
||||
public function sf_guard_user()
|
||||
{
|
||||
return $this->belongsTo(SfGuardUser::class, 'user_id');
|
||||
}
|
||||
}
|
||||
|
|
@ -28,8 +28,8 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property Company $company
|
||||
* @property Salutation $salutation
|
||||
* @property Collection|PressRelease[] $press_releases
|
||||
* @package App\Models
|
||||
* @property-read int|null $press_releases_count
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Contact newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Contact newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Contact query()
|
||||
|
|
@ -45,41 +45,42 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @method static \Illuminate\Database\Eloquent\Builder|Contact whereSalutationId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Contact whereTitle($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Contact whereUpdatedAt($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class Contact extends Model
|
||||
{
|
||||
protected $table = 'contact';
|
||||
protected $table = 'contact';
|
||||
|
||||
protected $casts = [
|
||||
'company_id' => 'int',
|
||||
'salutation_id' => 'int'
|
||||
];
|
||||
protected $casts = [
|
||||
'company_id' => 'int',
|
||||
'salutation_id' => 'int',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'company_id',
|
||||
'salutation_id',
|
||||
'title',
|
||||
'first_name',
|
||||
'last_name',
|
||||
'responsibility',
|
||||
'phone',
|
||||
'fax',
|
||||
'email'
|
||||
];
|
||||
protected $fillable = [
|
||||
'company_id',
|
||||
'salutation_id',
|
||||
'title',
|
||||
'first_name',
|
||||
'last_name',
|
||||
'responsibility',
|
||||
'phone',
|
||||
'fax',
|
||||
'email',
|
||||
];
|
||||
|
||||
public function company()
|
||||
{
|
||||
return $this->belongsTo(Company::class);
|
||||
}
|
||||
public function company()
|
||||
{
|
||||
return $this->belongsTo(Company::class);
|
||||
}
|
||||
|
||||
public function salutation()
|
||||
{
|
||||
return $this->belongsTo(Salutation::class);
|
||||
}
|
||||
public function salutation()
|
||||
{
|
||||
return $this->belongsTo(Salutation::class);
|
||||
}
|
||||
|
||||
public function press_releases()
|
||||
{
|
||||
return $this->belongsToMany(PressRelease::class, 'press_release_contact');
|
||||
}
|
||||
public function press_releases()
|
||||
{
|
||||
return $this->belongsToMany(PressRelease::class, 'press_release_contact');
|
||||
}
|
||||
}
|
||||
|
|
@ -18,44 +18,46 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property Collection|InvoiceBillingAddress[] $invoice_billing_addresses
|
||||
* @property Collection|SfGuardUserProfile[] $sf_guard_user_profiles
|
||||
* @property Collection|UserBillingAddress[] $user_billing_addresses
|
||||
* @package App\Models
|
||||
* @property-read int|null $companies_count
|
||||
* @property-read int|null $invoice_billing_addresses_count
|
||||
* @property-read int|null $sf_guard_user_profiles_count
|
||||
* @property-read int|null $user_billing_addresses_count
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Country newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Country newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Country query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Country whereId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Country whereName($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class Country extends Model
|
||||
{
|
||||
protected $table = 'country';
|
||||
public $timestamps = false;
|
||||
protected $table = 'country';
|
||||
|
||||
protected $fillable = [
|
||||
'name'
|
||||
];
|
||||
public $timestamps = false;
|
||||
|
||||
public function companies()
|
||||
{
|
||||
return $this->hasMany(Company::class);
|
||||
}
|
||||
protected $fillable = [
|
||||
'name',
|
||||
];
|
||||
|
||||
public function invoice_billing_addresses()
|
||||
{
|
||||
return $this->hasMany(InvoiceBillingAddress::class);
|
||||
}
|
||||
public function companies()
|
||||
{
|
||||
return $this->hasMany(Company::class);
|
||||
}
|
||||
|
||||
public function sf_guard_user_profiles()
|
||||
{
|
||||
return $this->hasMany(SfGuardUserProfile::class);
|
||||
}
|
||||
public function invoice_billing_addresses()
|
||||
{
|
||||
return $this->hasMany(InvoiceBillingAddress::class);
|
||||
}
|
||||
|
||||
public function user_billing_addresses()
|
||||
{
|
||||
return $this->hasMany(UserBillingAddress::class);
|
||||
}
|
||||
public function sf_guard_user_profiles()
|
||||
{
|
||||
return $this->hasMany(SfGuardUserProfile::class);
|
||||
}
|
||||
|
||||
public function user_billing_addresses()
|
||||
{
|
||||
return $this->hasMany(UserBillingAddress::class);
|
||||
}
|
||||
}
|
||||
|
|
@ -22,8 +22,8 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property Carbon|null $valid_until_date
|
||||
* @property PaymentOption $payment_option
|
||||
* @property Collection|UserPaymentOption[] $user_payment_options
|
||||
* @package App\Models
|
||||
* @property-read int|null $user_payment_options_count
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Coupon newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Coupon newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Coupon query()
|
||||
|
|
@ -34,37 +34,39 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @method static \Illuminate\Database\Eloquent\Builder|Coupon wherePaymentOptionId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Coupon whereValidUntilDate($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Coupon whereValue($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class Coupon extends Model
|
||||
{
|
||||
protected $table = 'coupon';
|
||||
public $timestamps = false;
|
||||
protected $table = 'coupon';
|
||||
|
||||
protected $casts = [
|
||||
'payment_option_id' => 'int',
|
||||
'value' => 'float',
|
||||
'on_redeem_expire' => 'int',
|
||||
'is_expired' => 'int',
|
||||
'valid_until_date' => 'datetime'
|
||||
];
|
||||
public $timestamps = false;
|
||||
|
||||
protected $fillable = [
|
||||
'payment_option_id',
|
||||
'code',
|
||||
'value',
|
||||
'on_redeem_expire',
|
||||
'is_expired',
|
||||
'valid_until_date'
|
||||
];
|
||||
protected $casts = [
|
||||
'payment_option_id' => 'int',
|
||||
'value' => 'float',
|
||||
'on_redeem_expire' => 'int',
|
||||
'is_expired' => 'int',
|
||||
'valid_until_date' => 'datetime',
|
||||
];
|
||||
|
||||
public function payment_option()
|
||||
{
|
||||
return $this->belongsTo(PaymentOption::class);
|
||||
}
|
||||
protected $fillable = [
|
||||
'payment_option_id',
|
||||
'code',
|
||||
'value',
|
||||
'on_redeem_expire',
|
||||
'is_expired',
|
||||
'valid_until_date',
|
||||
];
|
||||
|
||||
public function user_payment_options()
|
||||
{
|
||||
return $this->hasMany(UserPaymentOption::class);
|
||||
}
|
||||
public function payment_option()
|
||||
{
|
||||
return $this->belongsTo(PaymentOption::class);
|
||||
}
|
||||
|
||||
public function user_payment_options()
|
||||
{
|
||||
return $this->hasMany(UserPaymentOption::class);
|
||||
}
|
||||
}
|
||||
|
|
@ -18,8 +18,8 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property string|null $language
|
||||
* @property int $is_global
|
||||
* @property Collection|Category[] $categories
|
||||
* @package App\Models
|
||||
* @property-read int|null $categories_count
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|FooterCode newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|FooterCode newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|FooterCode query()
|
||||
|
|
@ -28,26 +28,28 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @method static \Illuminate\Database\Eloquent\Builder|FooterCode whereIsGlobal($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|FooterCode whereLanguage($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|FooterCode whereTitle($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class FooterCode extends Model
|
||||
{
|
||||
protected $table = 'footer_code';
|
||||
public $timestamps = false;
|
||||
protected $table = 'footer_code';
|
||||
|
||||
protected $casts = [
|
||||
'is_global' => 'int'
|
||||
];
|
||||
public $timestamps = false;
|
||||
|
||||
protected $fillable = [
|
||||
'title',
|
||||
'content',
|
||||
'language',
|
||||
'is_global'
|
||||
];
|
||||
protected $casts = [
|
||||
'is_global' => 'int',
|
||||
];
|
||||
|
||||
public function categories()
|
||||
{
|
||||
return $this->belongsToMany(Category::class);
|
||||
}
|
||||
protected $fillable = [
|
||||
'title',
|
||||
'content',
|
||||
'language',
|
||||
'is_global',
|
||||
];
|
||||
|
||||
public function categories()
|
||||
{
|
||||
return $this->belongsToMany(Category::class);
|
||||
}
|
||||
}
|
||||
|
|
@ -34,7 +34,7 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property InvoiceBillingAddress $invoice_billing_address
|
||||
* @property SfGuardUser $sf_guard_user
|
||||
* @property UserPayment $user_payment
|
||||
* @package App\Models
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Invoice newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Invoice newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Invoice query()
|
||||
|
|
@ -57,59 +57,60 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @method static \Illuminate\Database\Eloquent\Builder|Invoice whereUpdatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Invoice whereUserId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Invoice whereUserPaymentId($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class Invoice extends Model
|
||||
{
|
||||
protected $table = 'invoice';
|
||||
protected $table = 'invoice';
|
||||
|
||||
protected $casts = [
|
||||
'user_id' => 'int',
|
||||
'user_payment_id' => 'int',
|
||||
'billing_address_id' => 'int',
|
||||
'reminder_count' => 'int',
|
||||
'next_reminder_date' => 'datetime',
|
||||
'amount' => 'float',
|
||||
'is_netto' => 'int',
|
||||
'is_media' => 'int',
|
||||
'invoice_date' => 'datetime',
|
||||
'due_date' => 'datetime',
|
||||
'service_period_begin_date' => 'datetime',
|
||||
'service_period_end_date' => 'datetime',
|
||||
'pay_date' => 'datetime'
|
||||
];
|
||||
protected $casts = [
|
||||
'user_id' => 'int',
|
||||
'user_payment_id' => 'int',
|
||||
'billing_address_id' => 'int',
|
||||
'reminder_count' => 'int',
|
||||
'next_reminder_date' => 'datetime',
|
||||
'amount' => 'float',
|
||||
'is_netto' => 'int',
|
||||
'is_media' => 'int',
|
||||
'invoice_date' => 'datetime',
|
||||
'due_date' => 'datetime',
|
||||
'service_period_begin_date' => 'datetime',
|
||||
'service_period_end_date' => 'datetime',
|
||||
'pay_date' => 'datetime',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'user_payment_id',
|
||||
'billing_address_id',
|
||||
'number',
|
||||
'status',
|
||||
'reminder_count',
|
||||
'next_reminder_date',
|
||||
'amount',
|
||||
'is_netto',
|
||||
'is_media',
|
||||
'invoice_date',
|
||||
'due_date',
|
||||
'service_period_begin_date',
|
||||
'service_period_end_date',
|
||||
'payment_method',
|
||||
'pay_date'
|
||||
];
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'user_payment_id',
|
||||
'billing_address_id',
|
||||
'number',
|
||||
'status',
|
||||
'reminder_count',
|
||||
'next_reminder_date',
|
||||
'amount',
|
||||
'is_netto',
|
||||
'is_media',
|
||||
'invoice_date',
|
||||
'due_date',
|
||||
'service_period_begin_date',
|
||||
'service_period_end_date',
|
||||
'payment_method',
|
||||
'pay_date',
|
||||
];
|
||||
|
||||
public function invoice_billing_address()
|
||||
{
|
||||
return $this->belongsTo(InvoiceBillingAddress::class, 'billing_address_id');
|
||||
}
|
||||
public function invoice_billing_address()
|
||||
{
|
||||
return $this->belongsTo(InvoiceBillingAddress::class, 'billing_address_id');
|
||||
}
|
||||
|
||||
public function sf_guard_user()
|
||||
{
|
||||
return $this->belongsTo(SfGuardUser::class, 'user_id');
|
||||
}
|
||||
public function sf_guard_user()
|
||||
{
|
||||
return $this->belongsTo(SfGuardUser::class, 'user_id');
|
||||
}
|
||||
|
||||
public function user_payment()
|
||||
{
|
||||
return $this->belongsTo(UserPayment::class);
|
||||
}
|
||||
public function user_payment()
|
||||
{
|
||||
return $this->belongsTo(UserPayment::class);
|
||||
}
|
||||
}
|
||||
|
|
@ -29,8 +29,8 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property Country|null $country
|
||||
* @property Salutation|null $salutation
|
||||
* @property Collection|Invoice[] $invoices
|
||||
* @package App\Models
|
||||
* @property-read int|null $invoices_count
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|InvoiceBillingAddress newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|InvoiceBillingAddress newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|InvoiceBillingAddress query()
|
||||
|
|
@ -47,42 +47,43 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @method static \Illuminate\Database\Eloquent\Builder|InvoiceBillingAddress whereSalutationId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|InvoiceBillingAddress whereTitle($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|InvoiceBillingAddress whereUpdatedAt($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class InvoiceBillingAddress extends Model
|
||||
{
|
||||
protected $table = 'invoice_billing_address';
|
||||
protected $table = 'invoice_billing_address';
|
||||
|
||||
protected $casts = [
|
||||
'salutation_id' => 'int',
|
||||
'country_id' => 'int'
|
||||
];
|
||||
protected $casts = [
|
||||
'salutation_id' => 'int',
|
||||
'country_id' => 'int',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'salutation_id',
|
||||
'title',
|
||||
'name',
|
||||
'address',
|
||||
'address1',
|
||||
'address2',
|
||||
'postal_code',
|
||||
'city',
|
||||
'country_id',
|
||||
'country_name'
|
||||
];
|
||||
protected $fillable = [
|
||||
'salutation_id',
|
||||
'title',
|
||||
'name',
|
||||
'address',
|
||||
'address1',
|
||||
'address2',
|
||||
'postal_code',
|
||||
'city',
|
||||
'country_id',
|
||||
'country_name',
|
||||
];
|
||||
|
||||
public function country()
|
||||
{
|
||||
return $this->belongsTo(Country::class);
|
||||
}
|
||||
public function country()
|
||||
{
|
||||
return $this->belongsTo(Country::class);
|
||||
}
|
||||
|
||||
public function salutation()
|
||||
{
|
||||
return $this->belongsTo(Salutation::class);
|
||||
}
|
||||
public function salutation()
|
||||
{
|
||||
return $this->belongsTo(Salutation::class);
|
||||
}
|
||||
|
||||
public function invoices()
|
||||
{
|
||||
return $this->hasMany(Invoice::class, 'billing_address_id');
|
||||
}
|
||||
public function invoices()
|
||||
{
|
||||
return $this->hasMany(Invoice::class, 'billing_address_id');
|
||||
}
|
||||
}
|
||||
|
|
@ -12,24 +12,27 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* Class MigrationVersion
|
||||
*
|
||||
* @property int|null $version
|
||||
* @package App\Models
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|MigrationVersion newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|MigrationVersion newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|MigrationVersion query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|MigrationVersion whereVersion($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class MigrationVersion extends Model
|
||||
{
|
||||
protected $table = 'migration_version';
|
||||
public $incrementing = false;
|
||||
public $timestamps = false;
|
||||
protected $table = 'migration_version';
|
||||
|
||||
protected $casts = [
|
||||
'version' => 'int'
|
||||
];
|
||||
public $incrementing = false;
|
||||
|
||||
protected $fillable = [
|
||||
'version'
|
||||
];
|
||||
public $timestamps = false;
|
||||
|
||||
protected $casts = [
|
||||
'version' => 'int',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'version',
|
||||
];
|
||||
}
|
||||
|
|
@ -27,7 +27,7 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @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()
|
||||
|
|
@ -44,40 +44,41 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @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 $table = 'newsletter_subscription';
|
||||
|
||||
protected $casts = [
|
||||
'salutation_id' => 'int',
|
||||
'is_active' => 'int',
|
||||
'subscribe_date' => 'datetime',
|
||||
'unsubscribe_date' => 'datetime',
|
||||
'user_id' => 'int'
|
||||
];
|
||||
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'
|
||||
];
|
||||
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 salutation()
|
||||
{
|
||||
return $this->belongsTo(Salutation::class);
|
||||
}
|
||||
|
||||
public function sf_guard_user()
|
||||
{
|
||||
return $this->belongsTo(SfGuardUser::class, 'user_id');
|
||||
}
|
||||
public function sf_guard_user()
|
||||
{
|
||||
return $this->belongsTo(SfGuardUser::class, 'user_id');
|
||||
}
|
||||
}
|
||||
|
|
@ -25,9 +25,9 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property PaymentOptionReference $payment_option_reference
|
||||
* @property PaymentOptionTranslation $payment_option_translation
|
||||
* @property Collection|UserPaymentOption[] $user_payment_options
|
||||
* @package App\Models
|
||||
* @property-read int|null $coupons_count
|
||||
* @property-read int|null $user_payment_options_count
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOption newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOption newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOption query()
|
||||
|
|
@ -38,55 +38,57 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOption whereIsHidden($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOption wherePrice($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOption whereType($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class PaymentOption extends Model
|
||||
{
|
||||
protected $table = 'payment_option';
|
||||
public $timestamps = false;
|
||||
protected $table = 'payment_option';
|
||||
|
||||
protected $casts = [
|
||||
'price' => 'float',
|
||||
'is_hidden' => 'int',
|
||||
'activate_on_first_payment' => 'int'
|
||||
];
|
||||
public $timestamps = false;
|
||||
|
||||
protected $fillable = [
|
||||
'article_number',
|
||||
'type',
|
||||
'price',
|
||||
'is_hidden',
|
||||
'event_name_prefix',
|
||||
'activate_on_first_payment'
|
||||
];
|
||||
protected $casts = [
|
||||
'price' => 'float',
|
||||
'is_hidden' => 'int',
|
||||
'activate_on_first_payment' => 'int',
|
||||
];
|
||||
|
||||
public function coupons()
|
||||
{
|
||||
return $this->hasMany(Coupon::class);
|
||||
}
|
||||
protected $fillable = [
|
||||
'article_number',
|
||||
'type',
|
||||
'price',
|
||||
'is_hidden',
|
||||
'event_name_prefix',
|
||||
'activate_on_first_payment',
|
||||
];
|
||||
|
||||
public function payment_option_access_group()
|
||||
{
|
||||
return $this->hasOne(PaymentOptionAccessGroup::class);
|
||||
}
|
||||
public function coupons()
|
||||
{
|
||||
return $this->hasMany(Coupon::class);
|
||||
}
|
||||
|
||||
public function payment_option_exclude_group()
|
||||
{
|
||||
return $this->hasOne(PaymentOptionExcludeGroup::class);
|
||||
}
|
||||
public function payment_option_access_group()
|
||||
{
|
||||
return $this->hasOne(PaymentOptionAccessGroup::class);
|
||||
}
|
||||
|
||||
public function payment_option_reference()
|
||||
{
|
||||
return $this->hasOne(PaymentOptionReference::class, 'parent_payment_option_id');
|
||||
}
|
||||
public function payment_option_exclude_group()
|
||||
{
|
||||
return $this->hasOne(PaymentOptionExcludeGroup::class);
|
||||
}
|
||||
|
||||
public function payment_option_translation()
|
||||
{
|
||||
return $this->hasOne(PaymentOptionTranslation::class, 'id');
|
||||
}
|
||||
public function payment_option_reference()
|
||||
{
|
||||
return $this->hasOne(PaymentOptionReference::class, 'parent_payment_option_id');
|
||||
}
|
||||
|
||||
public function user_payment_options()
|
||||
{
|
||||
return $this->hasMany(UserPaymentOption::class);
|
||||
}
|
||||
public function payment_option_translation()
|
||||
{
|
||||
return $this->hasOne(PaymentOptionTranslation::class, 'id');
|
||||
}
|
||||
|
||||
public function user_payment_options()
|
||||
{
|
||||
return $this->hasMany(UserPaymentOption::class);
|
||||
}
|
||||
}
|
||||
|
|
@ -15,37 +15,40 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property int $group_id
|
||||
* @property SfGuardGroup $sf_guard_group
|
||||
* @property PaymentOption $payment_option
|
||||
* @package App\Models
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOptionAccessGroup newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOptionAccessGroup newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOptionAccessGroup query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOptionAccessGroup whereGroupId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOptionAccessGroup wherePaymentOptionId($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class PaymentOptionAccessGroup extends Model
|
||||
{
|
||||
protected $table = 'payment_option_access_group';
|
||||
public $incrementing = false;
|
||||
public $timestamps = false;
|
||||
protected $table = 'payment_option_access_group';
|
||||
|
||||
protected $casts = [
|
||||
'payment_option_id' => 'int',
|
||||
'group_id' => 'int'
|
||||
];
|
||||
public $incrementing = false;
|
||||
|
||||
protected $fillable = [
|
||||
'payment_option_id',
|
||||
'group_id'
|
||||
];
|
||||
public $timestamps = false;
|
||||
|
||||
public function sf_guard_group()
|
||||
{
|
||||
return $this->belongsTo(SfGuardGroup::class, 'group_id');
|
||||
}
|
||||
protected $casts = [
|
||||
'payment_option_id' => 'int',
|
||||
'group_id' => 'int',
|
||||
];
|
||||
|
||||
public function payment_option()
|
||||
{
|
||||
return $this->belongsTo(PaymentOption::class);
|
||||
}
|
||||
protected $fillable = [
|
||||
'payment_option_id',
|
||||
'group_id',
|
||||
];
|
||||
|
||||
public function sf_guard_group()
|
||||
{
|
||||
return $this->belongsTo(SfGuardGroup::class, 'group_id');
|
||||
}
|
||||
|
||||
public function payment_option()
|
||||
{
|
||||
return $this->belongsTo(PaymentOption::class);
|
||||
}
|
||||
}
|
||||
|
|
@ -15,37 +15,40 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property int $group_id
|
||||
* @property SfGuardGroup $sf_guard_group
|
||||
* @property PaymentOption $payment_option
|
||||
* @package App\Models
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOptionExcludeGroup newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOptionExcludeGroup newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOptionExcludeGroup query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOptionExcludeGroup whereGroupId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOptionExcludeGroup wherePaymentOptionId($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class PaymentOptionExcludeGroup extends Model
|
||||
{
|
||||
protected $table = 'payment_option_exclude_group';
|
||||
public $incrementing = false;
|
||||
public $timestamps = false;
|
||||
protected $table = 'payment_option_exclude_group';
|
||||
|
||||
protected $casts = [
|
||||
'payment_option_id' => 'int',
|
||||
'group_id' => 'int'
|
||||
];
|
||||
public $incrementing = false;
|
||||
|
||||
protected $fillable = [
|
||||
'payment_option_id',
|
||||
'group_id'
|
||||
];
|
||||
public $timestamps = false;
|
||||
|
||||
public function sf_guard_group()
|
||||
{
|
||||
return $this->belongsTo(SfGuardGroup::class, 'group_id');
|
||||
}
|
||||
protected $casts = [
|
||||
'payment_option_id' => 'int',
|
||||
'group_id' => 'int',
|
||||
];
|
||||
|
||||
public function payment_option()
|
||||
{
|
||||
return $this->belongsTo(PaymentOption::class);
|
||||
}
|
||||
protected $fillable = [
|
||||
'payment_option_id',
|
||||
'group_id',
|
||||
];
|
||||
|
||||
public function sf_guard_group()
|
||||
{
|
||||
return $this->belongsTo(SfGuardGroup::class, 'group_id');
|
||||
}
|
||||
|
||||
public function payment_option()
|
||||
{
|
||||
return $this->belongsTo(PaymentOption::class);
|
||||
}
|
||||
}
|
||||
|
|
@ -14,32 +14,35 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property int $parent_payment_option_id
|
||||
* @property int $child_payment_option_id
|
||||
* @property PaymentOption $payment_option
|
||||
* @package App\Models
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOptionReference newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOptionReference newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOptionReference query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOptionReference whereChildPaymentOptionId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOptionReference whereParentPaymentOptionId($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class PaymentOptionReference extends Model
|
||||
{
|
||||
protected $table = 'payment_option_reference';
|
||||
public $incrementing = false;
|
||||
public $timestamps = false;
|
||||
protected $table = 'payment_option_reference';
|
||||
|
||||
protected $casts = [
|
||||
'parent_payment_option_id' => 'int',
|
||||
'child_payment_option_id' => 'int'
|
||||
];
|
||||
public $incrementing = false;
|
||||
|
||||
protected $fillable = [
|
||||
'parent_payment_option_id',
|
||||
'child_payment_option_id'
|
||||
];
|
||||
public $timestamps = false;
|
||||
|
||||
public function payment_option()
|
||||
{
|
||||
return $this->belongsTo(PaymentOption::class, 'parent_payment_option_id');
|
||||
}
|
||||
protected $casts = [
|
||||
'parent_payment_option_id' => 'int',
|
||||
'child_payment_option_id' => 'int',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'parent_payment_option_id',
|
||||
'child_payment_option_id',
|
||||
];
|
||||
|
||||
public function payment_option()
|
||||
{
|
||||
return $this->belongsTo(PaymentOption::class, 'parent_payment_option_id');
|
||||
}
|
||||
}
|
||||
|
|
@ -16,7 +16,7 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property string|null $description
|
||||
* @property string $lang
|
||||
* @property PaymentOption $payment_option
|
||||
* @package App\Models
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOptionTranslation newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOptionTranslation newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOptionTranslation query()
|
||||
|
|
@ -24,27 +24,30 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOptionTranslation whereId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOptionTranslation whereLang($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOptionTranslation whereName($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class PaymentOptionTranslation extends Model
|
||||
{
|
||||
protected $table = 'payment_option_translation';
|
||||
public $incrementing = false;
|
||||
public $timestamps = false;
|
||||
protected $table = 'payment_option_translation';
|
||||
|
||||
protected $casts = [
|
||||
'id' => 'int'
|
||||
];
|
||||
public $incrementing = false;
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'name',
|
||||
'description',
|
||||
'lang'
|
||||
];
|
||||
public $timestamps = false;
|
||||
|
||||
public function payment_option()
|
||||
{
|
||||
return $this->belongsTo(PaymentOption::class, 'id');
|
||||
}
|
||||
protected $casts = [
|
||||
'id' => 'int',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'name',
|
||||
'description',
|
||||
'lang',
|
||||
];
|
||||
|
||||
public function payment_option()
|
||||
{
|
||||
return $this->belongsTo(PaymentOption::class, 'id');
|
||||
}
|
||||
}
|
||||
|
|
@ -37,9 +37,9 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property SfGuardUser $sf_guard_user
|
||||
* @property Collection|Contact[] $contacts
|
||||
* @property Collection|PressReleaseImageOld[] $press_release_image_olds
|
||||
* @package App\Models
|
||||
* @property-read int|null $contacts_count
|
||||
* @property-read int|null $press_release_image_olds_count
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PressRelease newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PressRelease newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PressRelease query()
|
||||
|
|
@ -62,65 +62,66 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @method static \Illuminate\Database\Eloquent\Builder|PressRelease whereUpdatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PressRelease whereUserId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PressRelease whereUserPaymentId($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class PressRelease extends Model
|
||||
{
|
||||
protected $table = 'press_release';
|
||||
protected $table = 'press_release';
|
||||
|
||||
protected $casts = [
|
||||
'category_id' => 'int',
|
||||
'user_id' => 'int',
|
||||
'company_id' => 'int',
|
||||
'user_payment_id' => 'int',
|
||||
'payment' => 'int',
|
||||
'hits' => 'int',
|
||||
'teaser_begin' => 'int',
|
||||
'teaser_end' => 'int',
|
||||
'no_export' => 'int'
|
||||
];
|
||||
protected $casts = [
|
||||
'category_id' => 'int',
|
||||
'user_id' => 'int',
|
||||
'company_id' => 'int',
|
||||
'user_payment_id' => 'int',
|
||||
'payment' => 'int',
|
||||
'hits' => 'int',
|
||||
'teaser_begin' => 'int',
|
||||
'teaser_end' => 'int',
|
||||
'no_export' => 'int',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'title',
|
||||
'language',
|
||||
'text',
|
||||
'backlink_url',
|
||||
'category_id',
|
||||
'user_id',
|
||||
'company_id',
|
||||
'user_payment_id',
|
||||
'payment',
|
||||
'status',
|
||||
'hits',
|
||||
'slug',
|
||||
'teaser_begin',
|
||||
'teaser_end',
|
||||
'no_export',
|
||||
'keywords'
|
||||
];
|
||||
protected $fillable = [
|
||||
'title',
|
||||
'language',
|
||||
'text',
|
||||
'backlink_url',
|
||||
'category_id',
|
||||
'user_id',
|
||||
'company_id',
|
||||
'user_payment_id',
|
||||
'payment',
|
||||
'status',
|
||||
'hits',
|
||||
'slug',
|
||||
'teaser_begin',
|
||||
'teaser_end',
|
||||
'no_export',
|
||||
'keywords',
|
||||
];
|
||||
|
||||
public function category()
|
||||
{
|
||||
return $this->belongsTo(Category::class);
|
||||
}
|
||||
public function category()
|
||||
{
|
||||
return $this->belongsTo(Category::class);
|
||||
}
|
||||
|
||||
public function company()
|
||||
{
|
||||
return $this->belongsTo(Company::class);
|
||||
}
|
||||
public function company()
|
||||
{
|
||||
return $this->belongsTo(Company::class);
|
||||
}
|
||||
|
||||
public function sf_guard_user()
|
||||
{
|
||||
return $this->belongsTo(SfGuardUser::class, 'user_id');
|
||||
}
|
||||
public function sf_guard_user()
|
||||
{
|
||||
return $this->belongsTo(SfGuardUser::class, 'user_id');
|
||||
}
|
||||
|
||||
public function contacts()
|
||||
{
|
||||
return $this->belongsToMany(Contact::class, 'press_release_contact');
|
||||
}
|
||||
public function contacts()
|
||||
{
|
||||
return $this->belongsToMany(Contact::class, 'press_release_contact');
|
||||
}
|
||||
|
||||
public function press_release_image_olds()
|
||||
{
|
||||
return $this->hasMany(PressReleaseImageOld::class);
|
||||
}
|
||||
public function press_release_image_olds()
|
||||
{
|
||||
return $this->hasMany(PressReleaseImageOld::class);
|
||||
}
|
||||
}
|
||||
|
|
@ -15,37 +15,40 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property int $contact_id
|
||||
* @property Contact $contact
|
||||
* @property PressRelease $press_release
|
||||
* @package App\Models
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseContact newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseContact newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseContact query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseContact whereContactId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseContact wherePressReleaseId($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class PressReleaseContact extends Model
|
||||
{
|
||||
protected $table = 'press_release_contact';
|
||||
public $incrementing = false;
|
||||
public $timestamps = false;
|
||||
protected $table = 'press_release_contact';
|
||||
|
||||
protected $casts = [
|
||||
'press_release_id' => 'int',
|
||||
'contact_id' => 'int'
|
||||
];
|
||||
public $incrementing = false;
|
||||
|
||||
protected $fillable = [
|
||||
'press_release_id',
|
||||
'contact_id'
|
||||
];
|
||||
public $timestamps = false;
|
||||
|
||||
public function contact()
|
||||
{
|
||||
return $this->belongsTo(Contact::class);
|
||||
}
|
||||
protected $casts = [
|
||||
'press_release_id' => 'int',
|
||||
'contact_id' => 'int',
|
||||
];
|
||||
|
||||
public function press_release()
|
||||
{
|
||||
return $this->belongsTo(PressRelease::class);
|
||||
}
|
||||
protected $fillable = [
|
||||
'press_release_id',
|
||||
'contact_id',
|
||||
];
|
||||
|
||||
public function contact()
|
||||
{
|
||||
return $this->belongsTo(Contact::class);
|
||||
}
|
||||
|
||||
public function press_release()
|
||||
{
|
||||
return $this->belongsTo(PressRelease::class);
|
||||
}
|
||||
}
|
||||
|
|
@ -22,7 +22,7 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
* @property string|null $slug
|
||||
* @package App\Models
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImage newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImage newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImage query()
|
||||
|
|
@ -36,24 +36,25 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImage whereSlug($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImage whereTitle($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImage whereUpdatedAt($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class PressReleaseImage extends Model
|
||||
{
|
||||
protected $table = 'press_release_image';
|
||||
protected $table = 'press_release_image';
|
||||
|
||||
protected $casts = [
|
||||
'press_release_id' => 'int',
|
||||
'is_preview_image' => 'int'
|
||||
];
|
||||
protected $casts = [
|
||||
'press_release_id' => 'int',
|
||||
'is_preview_image' => 'int',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'title',
|
||||
'description',
|
||||
'image',
|
||||
'copyright',
|
||||
'press_release_id',
|
||||
'is_preview_image',
|
||||
'slug'
|
||||
];
|
||||
protected $fillable = [
|
||||
'title',
|
||||
'description',
|
||||
'image',
|
||||
'copyright',
|
||||
'press_release_id',
|
||||
'is_preview_image',
|
||||
'slug',
|
||||
];
|
||||
}
|
||||
|
|
@ -23,7 +23,7 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property Carbon|null $updated_at
|
||||
* @property string|null $slug
|
||||
* @property PressRelease|null $press_release
|
||||
* @package App\Models
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImageOld newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImageOld newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImageOld query()
|
||||
|
|
@ -37,29 +37,30 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImageOld whereSlug($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImageOld whereTitle($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseImageOld whereUpdatedAt($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class PressReleaseImageOld extends Model
|
||||
{
|
||||
protected $table = 'press_release_image_old';
|
||||
protected $table = 'press_release_image_old';
|
||||
|
||||
protected $casts = [
|
||||
'press_release_id' => 'int',
|
||||
'is_preview_image' => 'int'
|
||||
];
|
||||
protected $casts = [
|
||||
'press_release_id' => 'int',
|
||||
'is_preview_image' => 'int',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'title',
|
||||
'description',
|
||||
'image',
|
||||
'copyright',
|
||||
'press_release_id',
|
||||
'is_preview_image',
|
||||
'slug'
|
||||
];
|
||||
protected $fillable = [
|
||||
'title',
|
||||
'description',
|
||||
'image',
|
||||
'copyright',
|
||||
'press_release_id',
|
||||
'is_preview_image',
|
||||
'slug',
|
||||
];
|
||||
|
||||
public function press_release()
|
||||
{
|
||||
return $this->belongsTo(PressRelease::class);
|
||||
}
|
||||
public function press_release()
|
||||
{
|
||||
return $this->belongsTo(PressRelease::class);
|
||||
}
|
||||
}
|
||||
|
|
@ -19,8 +19,8 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property int|null $show_on_homepage
|
||||
* @property int|null $press_release_id
|
||||
* @property Collection|Category[] $categories
|
||||
* @package App\Models
|
||||
* @property-read int|null $categories_count
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PromotionLink newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PromotionLink newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PromotionLink query()
|
||||
|
|
@ -30,28 +30,30 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @method static \Illuminate\Database\Eloquent\Builder|PromotionLink wherePressReleaseId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PromotionLink whereShowOnHomepage($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PromotionLink whereTitle($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class PromotionLink extends Model
|
||||
{
|
||||
protected $table = 'promotion_link';
|
||||
public $timestamps = false;
|
||||
protected $table = 'promotion_link';
|
||||
|
||||
protected $casts = [
|
||||
'show_on_homepage' => 'int',
|
||||
'press_release_id' => 'int'
|
||||
];
|
||||
public $timestamps = false;
|
||||
|
||||
protected $fillable = [
|
||||
'title',
|
||||
'link',
|
||||
'language',
|
||||
'show_on_homepage',
|
||||
'press_release_id'
|
||||
];
|
||||
protected $casts = [
|
||||
'show_on_homepage' => 'int',
|
||||
'press_release_id' => 'int',
|
||||
];
|
||||
|
||||
public function categories()
|
||||
{
|
||||
return $this->belongsToMany(Category::class, 'promotion_link_category');
|
||||
}
|
||||
protected $fillable = [
|
||||
'title',
|
||||
'link',
|
||||
'language',
|
||||
'show_on_homepage',
|
||||
'press_release_id',
|
||||
];
|
||||
|
||||
public function categories()
|
||||
{
|
||||
return $this->belongsToMany(Category::class, 'promotion_link_category');
|
||||
}
|
||||
}
|
||||
|
|
@ -15,37 +15,40 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property int $category_id
|
||||
* @property Category $category
|
||||
* @property PromotionLink $promotion_link
|
||||
* @package App\Models
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PromotionLinkCategory newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PromotionLinkCategory newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PromotionLinkCategory query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PromotionLinkCategory whereCategoryId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PromotionLinkCategory wherePromotionLinkId($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class PromotionLinkCategory extends Model
|
||||
{
|
||||
protected $table = 'promotion_link_category';
|
||||
public $incrementing = false;
|
||||
public $timestamps = false;
|
||||
protected $table = 'promotion_link_category';
|
||||
|
||||
protected $casts = [
|
||||
'promotion_link_id' => 'int',
|
||||
'category_id' => 'int'
|
||||
];
|
||||
public $incrementing = false;
|
||||
|
||||
protected $fillable = [
|
||||
'promotion_link_id',
|
||||
'category_id'
|
||||
];
|
||||
public $timestamps = false;
|
||||
|
||||
public function category()
|
||||
{
|
||||
return $this->belongsTo(Category::class);
|
||||
}
|
||||
protected $casts = [
|
||||
'promotion_link_id' => 'int',
|
||||
'category_id' => 'int',
|
||||
];
|
||||
|
||||
public function promotion_link()
|
||||
{
|
||||
return $this->belongsTo(PromotionLink::class);
|
||||
}
|
||||
protected $fillable = [
|
||||
'promotion_link_id',
|
||||
'category_id',
|
||||
];
|
||||
|
||||
public function category()
|
||||
{
|
||||
return $this->belongsTo(Category::class);
|
||||
}
|
||||
|
||||
public function promotion_link()
|
||||
{
|
||||
return $this->belongsTo(PromotionLink::class);
|
||||
}
|
||||
}
|
||||
|
|
@ -15,37 +15,40 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property int $user_id
|
||||
* @property Company $company
|
||||
* @property SfGuardUser $sf_guard_user
|
||||
* @package App\Models
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|ResponsibleCompanyUser newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|ResponsibleCompanyUser newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|ResponsibleCompanyUser query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|ResponsibleCompanyUser whereCompanyId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|ResponsibleCompanyUser whereUserId($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class ResponsibleCompanyUser extends Model
|
||||
{
|
||||
protected $table = 'responsible_company_user';
|
||||
public $incrementing = false;
|
||||
public $timestamps = false;
|
||||
protected $table = 'responsible_company_user';
|
||||
|
||||
protected $casts = [
|
||||
'company_id' => 'int',
|
||||
'user_id' => 'int'
|
||||
];
|
||||
public $incrementing = false;
|
||||
|
||||
protected $fillable = [
|
||||
'company_id',
|
||||
'user_id'
|
||||
];
|
||||
public $timestamps = false;
|
||||
|
||||
public function company()
|
||||
{
|
||||
return $this->belongsTo(Company::class);
|
||||
}
|
||||
protected $casts = [
|
||||
'company_id' => 'int',
|
||||
'user_id' => 'int',
|
||||
];
|
||||
|
||||
public function sf_guard_user()
|
||||
{
|
||||
return $this->belongsTo(SfGuardUser::class, 'user_id');
|
||||
}
|
||||
protected $fillable = [
|
||||
'company_id',
|
||||
'user_id',
|
||||
];
|
||||
|
||||
public function company()
|
||||
{
|
||||
return $this->belongsTo(Company::class);
|
||||
}
|
||||
|
||||
public function sf_guard_user()
|
||||
{
|
||||
return $this->belongsTo(SfGuardUser::class, 'user_id');
|
||||
}
|
||||
}
|
||||
|
|
@ -19,50 +19,52 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property SalutationTranslation $salutation_translation
|
||||
* @property Collection|SfGuardUserProfile[] $sf_guard_user_profiles
|
||||
* @property Collection|UserBillingAddress[] $user_billing_addresses
|
||||
* @package App\Models
|
||||
* @property-read int|null $contacts_count
|
||||
* @property-read int|null $invoice_billing_addresses_count
|
||||
* @property-read int|null $newsletter_subscriptions_count
|
||||
* @property-read int|null $sf_guard_user_profiles_count
|
||||
* @property-read int|null $user_billing_addresses_count
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Salutation newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Salutation newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Salutation query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|Salutation whereId($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class Salutation extends Model
|
||||
{
|
||||
protected $table = 'salutation';
|
||||
public $timestamps = false;
|
||||
protected $table = 'salutation';
|
||||
|
||||
public function contacts()
|
||||
{
|
||||
return $this->hasMany(Contact::class);
|
||||
}
|
||||
public $timestamps = false;
|
||||
|
||||
public function invoice_billing_addresses()
|
||||
{
|
||||
return $this->hasMany(InvoiceBillingAddress::class);
|
||||
}
|
||||
public function contacts()
|
||||
{
|
||||
return $this->hasMany(Contact::class);
|
||||
}
|
||||
|
||||
public function newsletter_subscriptions()
|
||||
{
|
||||
return $this->hasMany(NewsletterSubscription::class);
|
||||
}
|
||||
public function invoice_billing_addresses()
|
||||
{
|
||||
return $this->hasMany(InvoiceBillingAddress::class);
|
||||
}
|
||||
|
||||
public function salutation_translation()
|
||||
{
|
||||
return $this->hasOne(SalutationTranslation::class, 'id');
|
||||
}
|
||||
public function newsletter_subscriptions()
|
||||
{
|
||||
return $this->hasMany(NewsletterSubscription::class);
|
||||
}
|
||||
|
||||
public function sf_guard_user_profiles()
|
||||
{
|
||||
return $this->hasMany(SfGuardUserProfile::class);
|
||||
}
|
||||
public function salutation_translation()
|
||||
{
|
||||
return $this->hasOne(SalutationTranslation::class, 'id');
|
||||
}
|
||||
|
||||
public function user_billing_addresses()
|
||||
{
|
||||
return $this->hasMany(UserBillingAddress::class);
|
||||
}
|
||||
public function sf_guard_user_profiles()
|
||||
{
|
||||
return $this->hasMany(SfGuardUserProfile::class);
|
||||
}
|
||||
|
||||
public function user_billing_addresses()
|
||||
{
|
||||
return $this->hasMany(UserBillingAddress::class);
|
||||
}
|
||||
}
|
||||
|
|
@ -15,33 +15,36 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property string $name
|
||||
* @property string $lang
|
||||
* @property Salutation $salutation
|
||||
* @package App\Models
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SalutationTranslation newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SalutationTranslation newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SalutationTranslation query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SalutationTranslation whereId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SalutationTranslation whereLang($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SalutationTranslation whereName($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class SalutationTranslation extends Model
|
||||
{
|
||||
protected $table = 'salutation_translation';
|
||||
public $incrementing = false;
|
||||
public $timestamps = false;
|
||||
protected $table = 'salutation_translation';
|
||||
|
||||
protected $casts = [
|
||||
'id' => 'int'
|
||||
];
|
||||
public $incrementing = false;
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'name',
|
||||
'lang'
|
||||
];
|
||||
public $timestamps = false;
|
||||
|
||||
public function salutation()
|
||||
{
|
||||
return $this->belongsTo(Salutation::class, 'id');
|
||||
}
|
||||
protected $casts = [
|
||||
'id' => 'int',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'name',
|
||||
'lang',
|
||||
];
|
||||
|
||||
public function salutation()
|
||||
{
|
||||
return $this->belongsTo(Salutation::class, 'id');
|
||||
}
|
||||
}
|
||||
|
|
@ -21,7 +21,7 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property PaymentOptionExcludeGroup $payment_option_exclude_group
|
||||
* @property SfGuardGroupPermission $sf_guard_group_permission
|
||||
* @property SfGuardUserGroup $sf_guard_user_group
|
||||
* @package App\Models
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardGroup newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardGroup newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardGroup query()
|
||||
|
|
@ -30,34 +30,35 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardGroup whereId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardGroup whereName($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardGroup whereUpdatedAt($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class SfGuardGroup extends Model
|
||||
{
|
||||
protected $table = 'sf_guard_group';
|
||||
protected $table = 'sf_guard_group';
|
||||
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'description'
|
||||
];
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'description',
|
||||
];
|
||||
|
||||
public function payment_option_access_group()
|
||||
{
|
||||
return $this->hasOne(PaymentOptionAccessGroup::class, 'group_id');
|
||||
}
|
||||
public function payment_option_access_group()
|
||||
{
|
||||
return $this->hasOne(PaymentOptionAccessGroup::class, 'group_id');
|
||||
}
|
||||
|
||||
public function payment_option_exclude_group()
|
||||
{
|
||||
return $this->hasOne(PaymentOptionExcludeGroup::class, 'group_id');
|
||||
}
|
||||
public function payment_option_exclude_group()
|
||||
{
|
||||
return $this->hasOne(PaymentOptionExcludeGroup::class, 'group_id');
|
||||
}
|
||||
|
||||
public function sf_guard_group_permission()
|
||||
{
|
||||
return $this->hasOne(SfGuardGroupPermission::class, 'group_id');
|
||||
}
|
||||
public function sf_guard_group_permission()
|
||||
{
|
||||
return $this->hasOne(SfGuardGroupPermission::class, 'group_id');
|
||||
}
|
||||
|
||||
public function sf_guard_user_group()
|
||||
{
|
||||
return $this->hasOne(SfGuardUserGroup::class, 'group_id');
|
||||
}
|
||||
public function sf_guard_user_group()
|
||||
{
|
||||
return $this->hasOne(SfGuardUserGroup::class, 'group_id');
|
||||
}
|
||||
}
|
||||
|
|
@ -18,7 +18,7 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property Carbon|null $updated_at
|
||||
* @property SfGuardGroup $sf_guard_group
|
||||
* @property SfGuardPermission $sf_guard_permission
|
||||
* @package App\Models
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardGroupPermission newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardGroupPermission newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardGroupPermission query()
|
||||
|
|
@ -26,30 +26,32 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardGroupPermission whereGroupId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardGroupPermission wherePermissionId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardGroupPermission whereUpdatedAt($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class SfGuardGroupPermission extends Model
|
||||
{
|
||||
protected $table = 'sf_guard_group_permission';
|
||||
public $incrementing = false;
|
||||
protected $table = 'sf_guard_group_permission';
|
||||
|
||||
protected $casts = [
|
||||
'group_id' => 'int',
|
||||
'permission_id' => 'int'
|
||||
];
|
||||
public $incrementing = false;
|
||||
|
||||
protected $fillable = [
|
||||
'group_id',
|
||||
'permission_id'
|
||||
];
|
||||
protected $casts = [
|
||||
'group_id' => 'int',
|
||||
'permission_id' => 'int',
|
||||
];
|
||||
|
||||
public function sf_guard_group()
|
||||
{
|
||||
return $this->belongsTo(SfGuardGroup::class, 'group_id');
|
||||
}
|
||||
protected $fillable = [
|
||||
'group_id',
|
||||
'permission_id',
|
||||
];
|
||||
|
||||
public function sf_guard_permission()
|
||||
{
|
||||
return $this->belongsTo(SfGuardPermission::class, 'permission_id');
|
||||
}
|
||||
public function sf_guard_group()
|
||||
{
|
||||
return $this->belongsTo(SfGuardGroup::class, 'group_id');
|
||||
}
|
||||
|
||||
public function sf_guard_permission()
|
||||
{
|
||||
return $this->belongsTo(SfGuardPermission::class, 'permission_id');
|
||||
}
|
||||
}
|
||||
|
|
@ -19,7 +19,7 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property Carbon|null $updated_at
|
||||
* @property SfGuardGroupPermission $sf_guard_group_permission
|
||||
* @property SfGuardUserPermission $sf_guard_user_permission
|
||||
* @package App\Models
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardPermission newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardPermission newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardPermission query()
|
||||
|
|
@ -28,24 +28,25 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardPermission whereId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardPermission whereName($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardPermission whereUpdatedAt($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class SfGuardPermission extends Model
|
||||
{
|
||||
protected $table = 'sf_guard_permission';
|
||||
protected $table = 'sf_guard_permission';
|
||||
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'description'
|
||||
];
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'description',
|
||||
];
|
||||
|
||||
public function sf_guard_group_permission()
|
||||
{
|
||||
return $this->hasOne(SfGuardGroupPermission::class, 'permission_id');
|
||||
}
|
||||
public function sf_guard_group_permission()
|
||||
{
|
||||
return $this->hasOne(SfGuardGroupPermission::class, 'permission_id');
|
||||
}
|
||||
|
||||
public function sf_guard_user_permission()
|
||||
{
|
||||
return $this->hasOne(SfGuardUserPermission::class, 'permission_id');
|
||||
}
|
||||
public function sf_guard_user_permission()
|
||||
{
|
||||
return $this->hasOne(SfGuardUserPermission::class, 'permission_id');
|
||||
}
|
||||
}
|
||||
|
|
@ -19,7 +19,7 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
* @property SfGuardUser|null $sf_guard_user
|
||||
* @package App\Models
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardRememberKey newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardRememberKey newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardRememberKey query()
|
||||
|
|
@ -29,24 +29,25 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardRememberKey whereRememberKey($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardRememberKey whereUpdatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardRememberKey whereUserId($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class SfGuardRememberKey extends Model
|
||||
{
|
||||
protected $table = 'sf_guard_remember_key';
|
||||
protected $table = 'sf_guard_remember_key';
|
||||
|
||||
protected $casts = [
|
||||
'user_id' => 'int'
|
||||
];
|
||||
protected $casts = [
|
||||
'user_id' => 'int',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'remember_key',
|
||||
'ip_address'
|
||||
];
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'remember_key',
|
||||
'ip_address',
|
||||
];
|
||||
|
||||
public function sf_guard_user()
|
||||
{
|
||||
return $this->belongsTo(SfGuardUser::class, 'user_id');
|
||||
}
|
||||
public function sf_guard_user()
|
||||
{
|
||||
return $this->belongsTo(SfGuardUser::class, 'user_id');
|
||||
}
|
||||
}
|
||||
|
|
@ -37,7 +37,6 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property Collection|SfGuardUserProfile[] $sf_guard_user_profiles
|
||||
* @property Collection|UserBillingAddress[] $user_billing_addresses
|
||||
* @property Collection|UserPaymentOption[] $user_payment_options
|
||||
* @package App\Models
|
||||
* @property-read int|null $api_users_count
|
||||
* @property-read int|null $companies_count
|
||||
* @property-read int|null $invoices_count
|
||||
|
|
@ -47,6 +46,7 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property-read int|null $sf_guard_user_profiles_count
|
||||
* @property-read int|null $user_billing_addresses_count
|
||||
* @property-read int|null $user_payment_options_count
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUser newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUser newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUser query()
|
||||
|
|
@ -61,95 +61,96 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUser whereSalt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUser whereUpdatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUser whereUsername($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class SfGuardUser extends Model
|
||||
{
|
||||
protected $table = 'sf_guard_user';
|
||||
protected $table = 'sf_guard_user';
|
||||
|
||||
protected $casts = [
|
||||
'is_active' => 'int',
|
||||
'is_super_admin' => 'int',
|
||||
'last_login' => 'datetime'
|
||||
];
|
||||
protected $casts = [
|
||||
'is_active' => 'int',
|
||||
'is_super_admin' => 'int',
|
||||
'last_login' => 'datetime',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'password'
|
||||
];
|
||||
protected $hidden = [
|
||||
'password',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'username',
|
||||
'algorithm',
|
||||
'salt',
|
||||
'password',
|
||||
'is_active',
|
||||
'is_super_admin',
|
||||
'last_login',
|
||||
'ip_address'
|
||||
];
|
||||
protected $fillable = [
|
||||
'username',
|
||||
'algorithm',
|
||||
'salt',
|
||||
'password',
|
||||
'is_active',
|
||||
'is_super_admin',
|
||||
'last_login',
|
||||
'ip_address',
|
||||
];
|
||||
|
||||
public function api_users()
|
||||
{
|
||||
return $this->hasMany(ApiUser::class, 'user_id');
|
||||
}
|
||||
public function api_users()
|
||||
{
|
||||
return $this->hasMany(ApiUser::class, 'user_id');
|
||||
}
|
||||
|
||||
public function companies()
|
||||
{
|
||||
return $this->hasMany(Company::class, 'user_id');
|
||||
}
|
||||
public function companies()
|
||||
{
|
||||
return $this->hasMany(Company::class, 'user_id');
|
||||
}
|
||||
|
||||
public function company_user()
|
||||
{
|
||||
return $this->hasOne(CompanyUser::class, 'user_id');
|
||||
}
|
||||
public function company_user()
|
||||
{
|
||||
return $this->hasOne(CompanyUser::class, 'user_id');
|
||||
}
|
||||
|
||||
public function invoices()
|
||||
{
|
||||
return $this->hasMany(Invoice::class, 'user_id');
|
||||
}
|
||||
public function invoices()
|
||||
{
|
||||
return $this->hasMany(Invoice::class, 'user_id');
|
||||
}
|
||||
|
||||
public function newsletter_subscriptions()
|
||||
{
|
||||
return $this->hasMany(NewsletterSubscription::class, 'user_id');
|
||||
}
|
||||
public function newsletter_subscriptions()
|
||||
{
|
||||
return $this->hasMany(NewsletterSubscription::class, 'user_id');
|
||||
}
|
||||
|
||||
public function press_releases()
|
||||
{
|
||||
return $this->hasMany(PressRelease::class, 'user_id');
|
||||
}
|
||||
public function press_releases()
|
||||
{
|
||||
return $this->hasMany(PressRelease::class, 'user_id');
|
||||
}
|
||||
|
||||
public function responsible_company_user()
|
||||
{
|
||||
return $this->hasOne(ResponsibleCompanyUser::class, 'user_id');
|
||||
}
|
||||
public function responsible_company_user()
|
||||
{
|
||||
return $this->hasOne(ResponsibleCompanyUser::class, 'user_id');
|
||||
}
|
||||
|
||||
public function sf_guard_remember_keys()
|
||||
{
|
||||
return $this->hasMany(SfGuardRememberKey::class, 'user_id');
|
||||
}
|
||||
public function sf_guard_remember_keys()
|
||||
{
|
||||
return $this->hasMany(SfGuardRememberKey::class, 'user_id');
|
||||
}
|
||||
|
||||
public function sf_guard_user_group()
|
||||
{
|
||||
return $this->hasOne(SfGuardUserGroup::class, 'user_id');
|
||||
}
|
||||
public function sf_guard_user_group()
|
||||
{
|
||||
return $this->hasOne(SfGuardUserGroup::class, 'user_id');
|
||||
}
|
||||
|
||||
public function sf_guard_user_permission()
|
||||
{
|
||||
return $this->hasOne(SfGuardUserPermission::class, 'user_id');
|
||||
}
|
||||
public function sf_guard_user_permission()
|
||||
{
|
||||
return $this->hasOne(SfGuardUserPermission::class, 'user_id');
|
||||
}
|
||||
|
||||
public function sf_guard_user_profiles()
|
||||
{
|
||||
return $this->hasMany(SfGuardUserProfile::class, 'user_id');
|
||||
}
|
||||
public function sf_guard_user_profiles()
|
||||
{
|
||||
return $this->hasMany(SfGuardUserProfile::class, 'user_id');
|
||||
}
|
||||
|
||||
public function user_billing_addresses()
|
||||
{
|
||||
return $this->hasMany(UserBillingAddress::class, 'user_id');
|
||||
}
|
||||
public function user_billing_addresses()
|
||||
{
|
||||
return $this->hasMany(UserBillingAddress::class, 'user_id');
|
||||
}
|
||||
|
||||
public function user_payment_options()
|
||||
{
|
||||
return $this->hasMany(UserPaymentOption::class, 'user_id');
|
||||
}
|
||||
public function user_payment_options()
|
||||
{
|
||||
return $this->hasMany(UserPaymentOption::class, 'user_id');
|
||||
}
|
||||
}
|
||||
|
|
@ -18,7 +18,7 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property Carbon|null $updated_at
|
||||
* @property SfGuardGroup $sf_guard_group
|
||||
* @property SfGuardUser $sf_guard_user
|
||||
* @package App\Models
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserGroup newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserGroup newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserGroup query()
|
||||
|
|
@ -26,30 +26,32 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserGroup whereGroupId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserGroup whereUpdatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserGroup whereUserId($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class SfGuardUserGroup extends Model
|
||||
{
|
||||
protected $table = 'sf_guard_user_group';
|
||||
public $incrementing = false;
|
||||
protected $table = 'sf_guard_user_group';
|
||||
|
||||
protected $casts = [
|
||||
'user_id' => 'int',
|
||||
'group_id' => 'int'
|
||||
];
|
||||
public $incrementing = false;
|
||||
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'group_id'
|
||||
];
|
||||
protected $casts = [
|
||||
'user_id' => 'int',
|
||||
'group_id' => 'int',
|
||||
];
|
||||
|
||||
public function sf_guard_group()
|
||||
{
|
||||
return $this->belongsTo(SfGuardGroup::class, 'group_id');
|
||||
}
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'group_id',
|
||||
];
|
||||
|
||||
public function sf_guard_user()
|
||||
{
|
||||
return $this->belongsTo(SfGuardUser::class, 'user_id');
|
||||
}
|
||||
public function sf_guard_group()
|
||||
{
|
||||
return $this->belongsTo(SfGuardGroup::class, 'group_id');
|
||||
}
|
||||
|
||||
public function sf_guard_user()
|
||||
{
|
||||
return $this->belongsTo(SfGuardUser::class, 'user_id');
|
||||
}
|
||||
}
|
||||
|
|
@ -18,7 +18,7 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property Carbon|null $updated_at
|
||||
* @property SfGuardPermission $sf_guard_permission
|
||||
* @property SfGuardUser $sf_guard_user
|
||||
* @package App\Models
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserPermission newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserPermission newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserPermission query()
|
||||
|
|
@ -26,30 +26,32 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserPermission wherePermissionId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserPermission whereUpdatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserPermission whereUserId($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class SfGuardUserPermission extends Model
|
||||
{
|
||||
protected $table = 'sf_guard_user_permission';
|
||||
public $incrementing = false;
|
||||
protected $table = 'sf_guard_user_permission';
|
||||
|
||||
protected $casts = [
|
||||
'user_id' => 'int',
|
||||
'permission_id' => 'int'
|
||||
];
|
||||
public $incrementing = false;
|
||||
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'permission_id'
|
||||
];
|
||||
protected $casts = [
|
||||
'user_id' => 'int',
|
||||
'permission_id' => 'int',
|
||||
];
|
||||
|
||||
public function sf_guard_permission()
|
||||
{
|
||||
return $this->belongsTo(SfGuardPermission::class, 'permission_id');
|
||||
}
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'permission_id',
|
||||
];
|
||||
|
||||
public function sf_guard_user()
|
||||
{
|
||||
return $this->belongsTo(SfGuardUser::class, 'user_id');
|
||||
}
|
||||
public function sf_guard_permission()
|
||||
{
|
||||
return $this->belongsTo(SfGuardPermission::class, 'permission_id');
|
||||
}
|
||||
|
||||
public function sf_guard_user()
|
||||
{
|
||||
return $this->belongsTo(SfGuardUser::class, 'user_id');
|
||||
}
|
||||
}
|
||||
|
|
@ -40,7 +40,7 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property Country $country
|
||||
* @property Salutation $salutation
|
||||
* @property SfGuardUser $sf_guard_user
|
||||
* @package App\Models
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile query()
|
||||
|
|
@ -69,61 +69,62 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile whereUserId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile whereValidate($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|SfGuardUserProfile whereValidationDate($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class SfGuardUserProfile extends Model
|
||||
{
|
||||
protected $table = 'sf_guard_user_profile';
|
||||
protected $table = 'sf_guard_user_profile';
|
||||
|
||||
protected $casts = [
|
||||
'user_id' => 'int',
|
||||
'salutation_id' => 'int',
|
||||
'country_id' => 'int',
|
||||
'birthdate' => 'datetime',
|
||||
'show_stats' => 'int',
|
||||
'validation_date' => 'datetime',
|
||||
'contract_date' => 'datetime',
|
||||
'tax_exempt' => 'int',
|
||||
'disable_footer_code' => 'int'
|
||||
];
|
||||
protected $casts = [
|
||||
'user_id' => 'int',
|
||||
'salutation_id' => 'int',
|
||||
'country_id' => 'int',
|
||||
'birthdate' => 'datetime',
|
||||
'show_stats' => 'int',
|
||||
'validation_date' => 'datetime',
|
||||
'contract_date' => 'datetime',
|
||||
'tax_exempt' => 'int',
|
||||
'disable_footer_code' => 'int',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'salutation_id',
|
||||
'title',
|
||||
'first_name',
|
||||
'last_name',
|
||||
'address',
|
||||
'country_id',
|
||||
'phone',
|
||||
'email',
|
||||
'birthdate',
|
||||
'language',
|
||||
'backlink_url',
|
||||
'show_stats',
|
||||
'validation_date',
|
||||
'contract_date',
|
||||
'registration_type',
|
||||
'validate',
|
||||
'api_key',
|
||||
'tax_id_number',
|
||||
'tax_exempt',
|
||||
'tax_exempt_reason',
|
||||
'disable_footer_code'
|
||||
];
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'salutation_id',
|
||||
'title',
|
||||
'first_name',
|
||||
'last_name',
|
||||
'address',
|
||||
'country_id',
|
||||
'phone',
|
||||
'email',
|
||||
'birthdate',
|
||||
'language',
|
||||
'backlink_url',
|
||||
'show_stats',
|
||||
'validation_date',
|
||||
'contract_date',
|
||||
'registration_type',
|
||||
'validate',
|
||||
'api_key',
|
||||
'tax_id_number',
|
||||
'tax_exempt',
|
||||
'tax_exempt_reason',
|
||||
'disable_footer_code',
|
||||
];
|
||||
|
||||
public function country()
|
||||
{
|
||||
return $this->belongsTo(Country::class);
|
||||
}
|
||||
public function country()
|
||||
{
|
||||
return $this->belongsTo(Country::class);
|
||||
}
|
||||
|
||||
public function salutation()
|
||||
{
|
||||
return $this->belongsTo(Salutation::class);
|
||||
}
|
||||
public function salutation()
|
||||
{
|
||||
return $this->belongsTo(Salutation::class);
|
||||
}
|
||||
|
||||
public function sf_guard_user()
|
||||
{
|
||||
return $this->belongsTo(SfGuardUser::class, 'user_id');
|
||||
}
|
||||
public function sf_guard_user()
|
||||
{
|
||||
return $this->belongsTo(SfGuardUser::class, 'user_id');
|
||||
}
|
||||
}
|
||||
|
|
@ -4,11 +4,16 @@ namespace App\Models;
|
|||
|
||||
// use Illuminate\Contracts\Auth\MustVerifyEmail;
|
||||
use App\Mail\MailResetPassword;
|
||||
use Laravel\Sanctum\HasApiTokens;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||
use Illuminate\Notifications\DatabaseNotification;
|
||||
use Illuminate\Notifications\DatabaseNotificationCollection;
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
use Illuminate\Support\Carbon;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
use Laravel\Sanctum\HasApiTokens;
|
||||
use Laravel\Sanctum\PersonalAccessToken;
|
||||
|
||||
/**
|
||||
* App\Models\User
|
||||
|
|
@ -16,15 +21,16 @@ use Illuminate\Foundation\Auth\User as Authenticatable;
|
|||
* @property int $id
|
||||
* @property string $name
|
||||
* @property string $email
|
||||
* @property \Illuminate\Support\Carbon|null $email_verified_at
|
||||
* @property Carbon|null $email_verified_at
|
||||
* @property mixed $password
|
||||
* @property string|null $remember_token
|
||||
* @property \Illuminate\Support\Carbon|null $created_at
|
||||
* @property \Illuminate\Support\Carbon|null $updated_at
|
||||
* @property-read \Illuminate\Notifications\DatabaseNotificationCollection<int, \Illuminate\Notifications\DatabaseNotification> $notifications
|
||||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
* @property-read DatabaseNotificationCollection<int, DatabaseNotification> $notifications
|
||||
* @property-read int|null $notifications_count
|
||||
* @property-read \Illuminate\Database\Eloquent\Collection<int, \Laravel\Sanctum\PersonalAccessToken> $tokens
|
||||
* @property-read Collection<int, PersonalAccessToken> $tokens
|
||||
* @property-read int|null $tokens_count
|
||||
*
|
||||
* @method static \Database\Factories\UserFactory factory($count = null, $state = [])
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|User newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|User newQuery()
|
||||
|
|
@ -37,6 +43,7 @@ use Illuminate\Foundation\Auth\User as Authenticatable;
|
|||
* @method static \Illuminate\Database\Eloquent\Builder|User wherePassword($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|User whereRememberToken($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|User whereUpdatedAt($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class User extends Authenticatable
|
||||
|
|
@ -76,33 +83,36 @@ class User extends Authenticatable
|
|||
|
||||
public function isAdmin()
|
||||
{
|
||||
if($this->admin >= 1){
|
||||
if ($this->admin >= 1) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public function isSuperAdmin()
|
||||
{
|
||||
if($this->admin >= 2){
|
||||
if ($this->admin >= 2) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public function isSysAdmin()
|
||||
{
|
||||
if($this->admin >= 3){
|
||||
if ($this->admin >= 3) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public function sendPasswordResetNotification($token)
|
||||
{
|
||||
//$bcc[] = "kevin.adametz@me.com"; //config('app.checkout_mail');
|
||||
//Mail::to($this->email)->bcc($bcc)->locale(\App::getLocale())->send(new MailResetPassword($token, $this));
|
||||
// $bcc[] = "kevin.adametz@me.com"; //config('app.checkout_mail');
|
||||
// Mail::to($this->email)->bcc($bcc)->locale(\App::getLocale())->send(new MailResetPassword($token, $this));
|
||||
Mail::to($this->email)->send(new MailResetPassword($token, $this));
|
||||
//$this->notify(new ResetPasswordNotification($token));
|
||||
// $this->notify(new ResetPasswordNotification($token));
|
||||
}
|
||||
}
|
||||
|
|
@ -29,7 +29,7 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property Country|null $country
|
||||
* @property Salutation|null $salutation
|
||||
* @property SfGuardUser $sf_guard_user
|
||||
* @package App\Models
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|UserBillingAddress newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|UserBillingAddress newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|UserBillingAddress query()
|
||||
|
|
@ -47,44 +47,45 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @method static \Illuminate\Database\Eloquent\Builder|UserBillingAddress whereTitle($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|UserBillingAddress whereUpdatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|UserBillingAddress whereUserId($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class UserBillingAddress extends Model
|
||||
{
|
||||
protected $table = 'user_billing_address';
|
||||
protected $table = 'user_billing_address';
|
||||
|
||||
protected $casts = [
|
||||
'user_id' => 'int',
|
||||
'salutation_id' => 'int',
|
||||
'country_id' => 'int'
|
||||
];
|
||||
protected $casts = [
|
||||
'user_id' => 'int',
|
||||
'salutation_id' => 'int',
|
||||
'country_id' => 'int',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'salutation_id',
|
||||
'title',
|
||||
'name',
|
||||
'address',
|
||||
'address1',
|
||||
'address2',
|
||||
'postal_code',
|
||||
'city',
|
||||
'country_id',
|
||||
'country_name'
|
||||
];
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'salutation_id',
|
||||
'title',
|
||||
'name',
|
||||
'address',
|
||||
'address1',
|
||||
'address2',
|
||||
'postal_code',
|
||||
'city',
|
||||
'country_id',
|
||||
'country_name',
|
||||
];
|
||||
|
||||
public function country()
|
||||
{
|
||||
return $this->belongsTo(Country::class);
|
||||
}
|
||||
public function country()
|
||||
{
|
||||
return $this->belongsTo(Country::class);
|
||||
}
|
||||
|
||||
public function salutation()
|
||||
{
|
||||
return $this->belongsTo(Salutation::class);
|
||||
}
|
||||
public function salutation()
|
||||
{
|
||||
return $this->belongsTo(Salutation::class);
|
||||
}
|
||||
|
||||
public function sf_guard_user()
|
||||
{
|
||||
return $this->belongsTo(SfGuardUser::class, 'user_id');
|
||||
}
|
||||
public function sf_guard_user()
|
||||
{
|
||||
return $this->belongsTo(SfGuardUser::class, 'user_id');
|
||||
}
|
||||
}
|
||||
|
|
@ -21,8 +21,8 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property Carbon|null $updated_at
|
||||
* @property UserPaymentOption $user_payment_option
|
||||
* @property Collection|Invoice[] $invoices
|
||||
* @package App\Models
|
||||
* @property-read int|null $invoices_count
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|UserPayment newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|UserPayment newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|UserPayment query()
|
||||
|
|
@ -32,30 +32,31 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @method static \Illuminate\Database\Eloquent\Builder|UserPayment whereStatus($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|UserPayment whereUpdatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|UserPayment whereUserPaymentOptionId($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class UserPayment extends Model
|
||||
{
|
||||
protected $table = 'user_payment';
|
||||
protected $table = 'user_payment';
|
||||
|
||||
protected $casts = [
|
||||
'user_payment_option_id' => 'int',
|
||||
'amount' => 'float'
|
||||
];
|
||||
protected $casts = [
|
||||
'user_payment_option_id' => 'int',
|
||||
'amount' => 'float',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'user_payment_option_id',
|
||||
'amount',
|
||||
'status'
|
||||
];
|
||||
protected $fillable = [
|
||||
'user_payment_option_id',
|
||||
'amount',
|
||||
'status',
|
||||
];
|
||||
|
||||
public function user_payment_option()
|
||||
{
|
||||
return $this->belongsTo(UserPaymentOption::class);
|
||||
}
|
||||
public function user_payment_option()
|
||||
{
|
||||
return $this->belongsTo(UserPaymentOption::class);
|
||||
}
|
||||
|
||||
public function invoices()
|
||||
{
|
||||
return $this->hasMany(Invoice::class);
|
||||
}
|
||||
public function invoices()
|
||||
{
|
||||
return $this->hasMany(Invoice::class);
|
||||
}
|
||||
}
|
||||
|
|
@ -28,9 +28,9 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property Collection|UserPayment[] $user_payments
|
||||
* @property Collection|Company[] $companies
|
||||
* @property UserPaymentOptionReference $user_payment_option_reference
|
||||
* @package App\Models
|
||||
* @property-read int|null $companies_count
|
||||
* @property-read int|null $user_payments_count
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|UserPaymentOption newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|UserPaymentOption newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|UserPaymentOption query()
|
||||
|
|
@ -43,58 +43,59 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @method static \Illuminate\Database\Eloquent\Builder|UserPaymentOption whereUpdatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|UserPaymentOption whereUserId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|UserPaymentOption whereValidUntilDate($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class UserPaymentOption extends Model
|
||||
{
|
||||
protected $table = 'user_payment_option';
|
||||
protected $table = 'user_payment_option';
|
||||
|
||||
protected $casts = [
|
||||
'user_id' => 'int',
|
||||
'payment_option_id' => 'int',
|
||||
'coupon_id' => 'int',
|
||||
'valid_until_date' => 'datetime',
|
||||
'next_due_date' => 'datetime'
|
||||
];
|
||||
protected $casts = [
|
||||
'user_id' => 'int',
|
||||
'payment_option_id' => 'int',
|
||||
'coupon_id' => 'int',
|
||||
'valid_until_date' => 'datetime',
|
||||
'next_due_date' => 'datetime',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'payment_option_id',
|
||||
'coupon_id',
|
||||
'status',
|
||||
'valid_until_date',
|
||||
'next_due_date'
|
||||
];
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'payment_option_id',
|
||||
'coupon_id',
|
||||
'status',
|
||||
'valid_until_date',
|
||||
'next_due_date',
|
||||
];
|
||||
|
||||
public function coupon()
|
||||
{
|
||||
return $this->belongsTo(Coupon::class);
|
||||
}
|
||||
public function coupon()
|
||||
{
|
||||
return $this->belongsTo(Coupon::class);
|
||||
}
|
||||
|
||||
public function payment_option()
|
||||
{
|
||||
return $this->belongsTo(PaymentOption::class);
|
||||
}
|
||||
public function payment_option()
|
||||
{
|
||||
return $this->belongsTo(PaymentOption::class);
|
||||
}
|
||||
|
||||
public function sf_guard_user()
|
||||
{
|
||||
return $this->belongsTo(SfGuardUser::class, 'user_id');
|
||||
}
|
||||
public function sf_guard_user()
|
||||
{
|
||||
return $this->belongsTo(SfGuardUser::class, 'user_id');
|
||||
}
|
||||
|
||||
public function user_payments()
|
||||
{
|
||||
return $this->hasMany(UserPayment::class);
|
||||
}
|
||||
public function user_payments()
|
||||
{
|
||||
return $this->hasMany(UserPayment::class);
|
||||
}
|
||||
|
||||
public function companies()
|
||||
{
|
||||
return $this->belongsToMany(Company::class, 'user_payment_option_company', 'payment_option_id')
|
||||
->withPivot('ip_address', 'is_active')
|
||||
->withTimestamps();
|
||||
}
|
||||
public function companies()
|
||||
{
|
||||
return $this->belongsToMany(Company::class, 'user_payment_option_company', 'payment_option_id')
|
||||
->withPivot('ip_address', 'is_active')
|
||||
->withTimestamps();
|
||||
}
|
||||
|
||||
public function user_payment_option_reference()
|
||||
{
|
||||
return $this->hasOne(UserPaymentOptionReference::class, 'parent_user_payment_option_id');
|
||||
}
|
||||
public function user_payment_option_reference()
|
||||
{
|
||||
return $this->hasOne(UserPaymentOptionReference::class, 'parent_user_payment_option_id');
|
||||
}
|
||||
}
|
||||
|
|
@ -20,7 +20,7 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property Carbon|null $updated_at
|
||||
* @property Company $company
|
||||
* @property UserPaymentOption $user_payment_option
|
||||
* @package App\Models
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|UserPaymentOptionCompany newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|UserPaymentOptionCompany newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|UserPaymentOptionCompany query()
|
||||
|
|
@ -30,33 +30,35 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @method static \Illuminate\Database\Eloquent\Builder|UserPaymentOptionCompany whereIsActive($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|UserPaymentOptionCompany wherePaymentOptionId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|UserPaymentOptionCompany whereUpdatedAt($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class UserPaymentOptionCompany extends Model
|
||||
{
|
||||
protected $table = 'user_payment_option_company';
|
||||
public $incrementing = false;
|
||||
protected $table = 'user_payment_option_company';
|
||||
|
||||
protected $casts = [
|
||||
'payment_option_id' => 'int',
|
||||
'company_id' => 'int',
|
||||
'is_active' => 'int'
|
||||
];
|
||||
public $incrementing = false;
|
||||
|
||||
protected $fillable = [
|
||||
'payment_option_id',
|
||||
'company_id',
|
||||
'ip_address',
|
||||
'is_active'
|
||||
];
|
||||
protected $casts = [
|
||||
'payment_option_id' => 'int',
|
||||
'company_id' => 'int',
|
||||
'is_active' => 'int',
|
||||
];
|
||||
|
||||
public function company()
|
||||
{
|
||||
return $this->belongsTo(Company::class);
|
||||
}
|
||||
protected $fillable = [
|
||||
'payment_option_id',
|
||||
'company_id',
|
||||
'ip_address',
|
||||
'is_active',
|
||||
];
|
||||
|
||||
public function user_payment_option()
|
||||
{
|
||||
return $this->belongsTo(UserPaymentOption::class, 'payment_option_id');
|
||||
}
|
||||
public function company()
|
||||
{
|
||||
return $this->belongsTo(Company::class);
|
||||
}
|
||||
|
||||
public function user_payment_option()
|
||||
{
|
||||
return $this->belongsTo(UserPaymentOption::class, 'payment_option_id');
|
||||
}
|
||||
}
|
||||
|
|
@ -14,32 +14,35 @@ use Illuminate\Database\Eloquent\Model;
|
|||
* @property int $parent_user_payment_option_id
|
||||
* @property int $child_user_payment_option_id
|
||||
* @property UserPaymentOption $user_payment_option
|
||||
* @package App\Models
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|UserPaymentOptionReference newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|UserPaymentOptionReference newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|UserPaymentOptionReference query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|UserPaymentOptionReference whereChildUserPaymentOptionId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|UserPaymentOptionReference whereParentUserPaymentOptionId($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class UserPaymentOptionReference extends Model
|
||||
{
|
||||
protected $table = 'user_payment_option_reference';
|
||||
public $incrementing = false;
|
||||
public $timestamps = false;
|
||||
protected $table = 'user_payment_option_reference';
|
||||
|
||||
protected $casts = [
|
||||
'parent_user_payment_option_id' => 'int',
|
||||
'child_user_payment_option_id' => 'int'
|
||||
];
|
||||
public $incrementing = false;
|
||||
|
||||
protected $fillable = [
|
||||
'parent_user_payment_option_id',
|
||||
'child_user_payment_option_id'
|
||||
];
|
||||
public $timestamps = false;
|
||||
|
||||
public function user_payment_option()
|
||||
{
|
||||
return $this->belongsTo(UserPaymentOption::class, 'parent_user_payment_option_id');
|
||||
}
|
||||
protected $casts = [
|
||||
'parent_user_payment_option_id' => 'int',
|
||||
'child_user_payment_option_id' => 'int',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'parent_user_payment_option_id',
|
||||
'child_user_payment_option_id',
|
||||
];
|
||||
|
||||
public function user_payment_option()
|
||||
{
|
||||
return $this->belongsTo(UserPaymentOption::class, 'parent_user_payment_option_id');
|
||||
}
|
||||
}
|
||||
|
|
@ -1,11 +1,12 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
/**
|
||||
* Migration auto-generated by Sequel Pro/Ace Laravel Export (2.0.2)
|
||||
*
|
||||
* @see https://github.com/cviebrock/sequel-pro-laravel-export
|
||||
*/
|
||||
class CreateApiUserTable extends Migration
|
||||
|
|
@ -1,11 +1,12 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
/**
|
||||
* Migration auto-generated by Sequel Pro/Ace Laravel Export (2.0.2)
|
||||
*
|
||||
* @see https://github.com/cviebrock/sequel-pro-laravel-export
|
||||
*/
|
||||
class CreateBlacklistTable extends Migration
|
||||
|
|
@ -25,7 +26,7 @@ class CreateBlacklistTable extends Migration
|
|||
$table->charset = 'utf8';
|
||||
$table->collation = 'utf8_general_ci';
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue