One Hat Cyber Team
Your IP:
216.73.216.176
Server IP:
198.54.114.155
Server:
Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
Server Software:
LiteSpeed
PHP Version:
5.6.40
Create File
|
Create Folder
Execute
Dir :
~
/
proc
/
thread-self
/
root
/
proc
/
self
/
cwd
/
View File Name :
BlogCategory.php.tar
home/fluxyjvi/public_html/project/app/Models/BlogCategory.php 0000644 00000000630 15111312102 0020403 0 ustar 00 <?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class BlogCategory extends Model { protected $fillable = ['name', 'slug']; public $timestamps = false; public function blogs() { return $this->hasMany('App\Models\Blog','category_id'); } public function setSlugAttribute($value) { $this->attributes['slug'] = str_replace(' ', '-', $value); } }