Path : /var/www/html/jewelry-pos/app/Models/ |
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
Current File : /var/www/html/jewelry-pos/app/Models/User.php |
<?php namespace App\Models; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Laravel\Sanctum\HasApiTokens; use Spatie\Permission\Traits\HasRoles; use Illuminate\Database\Eloquent\SoftDeletes; class User extends Authenticatable { use HasApiTokens, HasFactory, Notifiable, HasRoles, SoftDeletes; /** * The attributes that are mass assignable. * * @var array<int, string> */ protected $fillable = [ 'name', 'phone', 'password', 'gender', 'position', 'role_id', 'is_active', // 'ip' ]; /** * The attributes that should be hidden for serialization. * * @var array<int, string> */ protected $hidden = [ 'password', 'remember_token', ]; /** * The attributes that should be cast. * * @var array<string, string> */ protected $casts = [ 'email_verified_at' => 'datetime', ]; public function currencies() { return $this->hasMany(Currency::class); } public function productCategories(){ $this->hasMany(ProductCategory::class); } public function product(){ return $this->hasMany(Product::class); } public function sales() { return $this->hasMany(Sale::class); } public function productCategoryPrices(){ return $this->hasMany(ProductCategoryPrice::class); } public function productCategoryWeightHistories(){ return $this->hasMany(ProductCategoryWeightHistory::class); } public function buildstockDates(){ return $this->hasMany(BuildStockDate::class); } }