One Hat Cyber Team
Your IP:
216.73.216.58
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 :
~
/
home
/
fluxyjvi
/
public_html
/
project
/
app
/
Models
/
View File Name :
Blog.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Blog extends Model { protected $fillable = ['title','slug','category_id', 'details', 'photo', 'source', 'views','updated_at', 'status','meta_tag','meta_description','tags']; protected $dates = ['created_at']; public $timestamps = false; public static function boot() { parent::boot(); static::creating(function ($model) { $model->created_at = $model->freshTimestamp(); }); } public function category() { return $this->belongsTo('App\Models\BlogCategory','category_id')->withDefault(); } }