Root Zanli
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
o5t6x7pgljbm
/
public_html
/
app
/
Models
/
Filename :
UserSetting.php
back
Copy
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class UserSetting extends Model { use SoftDeletes; protected $table = 'user_settings'; protected $primaryKey = 'user_setting_id'; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'user_id', 'noti_task_completed', 'noti_new_claim_received', 'noti_featured_rewards', 'noti_weekly_report', 'noti_task_reminder', 'noti_claim_approved_rejected', 'recent_goal_id', 'created_at', 'updated_at', 'deleted_at' ]; /** * The attributes that should be hidden for arrays. * * @var array */ protected $hidden = [ 'deleted_at' ]; public function user() { return $this->belongsTo('App\Models\User', 'user_id'); } }