uawdijnntqw1x1x1
IP : 216.73.217.77
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
/
learnoid.codeskitter.site
/
tests
/
..
/
config
/
..
/
app
/
Models
/
Category.php
/
/
<?php namespace App\Models; use Illuminate\Database\Eloquent\Casts\Attribute; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Support\Facades\Storage; class Category extends Model { protected $guarded = ['id']; use HasFactory, SoftDeletes; public function image(): BelongsTo { return $this->belongsTo(Media::class, 'media_id'); } public function imagePath(): Attribute { $image = 'https://placehold.co/512x512'; if ($this->image && Storage::exists($this->image->src)) { $image = Storage::url($this->image->src); } return Attribute::make( get: fn () => $image, ); } public function courses(): HasMany { return $this->hasMany(Course::class); } public function articles(): HasMany { return $this->hasMany(Article::class); } }
/home/users/unlimited/www/learnoid.codeskitter.site/tests/../config/../app/Models/Category.php