⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
wearecrazy
/
public_html
/
@core
/
app
/
View File Name :
Blog.php
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Spatie\Feed\Feedable; use Spatie\Feed\FeedItem; class Blog extends Model implements Feedable { protected $table = 'blogs'; protected $fillable = ['title','status','author','slug','meta_title','meta_description','meta_tags','excerpt','blog_content','blog_categories_id','tags','image','user_id','og_meta_title','og_meta_description','og_meta_image']; public function category(){ return $this->belongsTo('App\BlogCategory','blog_categories_id'); } public function user(){ return $this->belongsTo('App\Admin','user_id'); } public function toFeedItem() : FeedItem { return FeedItem::create([ 'id' => $this->id, 'title' => $this->title, 'summary' => $this->excerpt, 'updated' => $this->updated_at, 'link' => route('frontend.blog.single',$this->slug), 'author' => $this->author, ]); } public static function getAllFeedItems() { return Blog::all(); } }