uawdijnntqw1x1x1
IP : 216.73.216.93
Hostname : panel.codeskitter.com
Kernel : Linux panel.codeskitter.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
Disable Function : apache_child_terminate, apache_note, apache_setenv, define_syslog_variables, dl, link, opcache_get_status, openlog, pcntl_exec, pcntl_fork, pcntl_setpriority, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid
OS : Linux
PATH:
/
home
/
users
/
unlimited
/
www
/
foodbank.codeskitter.site
/
fa8fd
/
..
/
app
/
Managers
/
..
/
Models
/
Coupon.php
/
/
<?php namespace App\Models; use App\Models\BaseModel; use Shipu\Watchable\Traits\WatchableTrait; use Spatie\MediaLibrary\HasMedia; use Spatie\MediaLibrary\InteractsWithMedia; use Spatie\Sluggable\HasSlug; use Spatie\Sluggable\SlugOptions; class Coupon extends BaseModel { use HasSlug, WatchableTrait; protected $table = 'coupons'; protected $auditColumn = true; protected $fillable = ['name', 'slug', 'discount_type', 'coupon_type', 'restaurant_id', 'user_limit', 'limit', 'amount', 'minimum_order_amount', 'from_date', 'to_date']; public function getSlugOptions(): SlugOptions { return SlugOptions::create() ->generateSlugsFrom('name') ->saveSlugsTo('slug'); } public function getActionButtonAttribute() { $roleID = auth()->user()->myrole ?? 0; if ($roleID > 1) { if (auth()->user()->restaurant_id != 0) { $this->restaurant_id == auth()->user()->restaurant_id; return 0; } return false; } return true; } public function creator() { return $this->morphTo(); } public function restaurants() { return $this->belongsToMany(Branch::class); } public function discounts() { return $this->hasMany(Discount::class); } public function orders() { return $this->belongsToMany(Order::class); } }
/home/users/unlimited/www/foodbank.codeskitter.site/fa8fd/../app/Managers/../Models/Coupon.php