🚀 Hostinger Optimized
🖥️ Server: LiteSpeed
💻 System: Linux s20058.bom1.stableserver.net 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64
👤 User: skhata (1324)
🐘 PHP: 8.4.20
🚫 Disabled: ✨ NONE

💻 Terminal

📁 /home/skhata/chandrasons.com/public
$

📄 BlogPost.php

📁 Path: /home/skhata/chandrasons.com/app/Models/BlogPost.php
📊 Size: 554 B
🔒 Perm: 0644
📝 MIME: text/x-php
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;

class BlogPost extends Model {
    protected $fillable = ['slug','author','category','tags','featured_image','title','excerpt','content','meta_title','meta_description','og_image','status','published_at'];
    protected $casts = ['tags' => 'array', 'published_at' => 'datetime'];
    public function scopePublished($q) { return $q->where('status','published')->where('published_at','<=',now())->orderByDesc('published_at'); }
    public function getRouteKeyName() { return 'slug'; }
}
← Back📥 Raw✏️ Edit🔒 Chmod
✨ File Manager Magic ✨