🚀 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
$

📄 SocialLink.php

📁 Path: /home/skhata/chandrasons.com/app/Models/SocialLink.php
📊 Size: 969 B
🔒 Perm: 0644
📝 MIME: text/x-php
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class SocialLink extends Model
{
    protected $fillable = [
        'platform', 'label', 'url', 'icon_svg', 'color',
        'show_in_footer', 'show_in_fab', 'sort_order', 'is_active',
    ];

    protected $casts = [
        'show_in_footer' => 'boolean',
        'show_in_fab'    => 'boolean',
        'is_active'      => 'boolean',
        'sort_order'     => 'integer',
    ];

    /** All active links ordered for display */
    public function scopeActive($query)
    {
        return $query->where('is_active', true)->orderBy('sort_order')->orderBy('id');
    }

    /** Links shown in the footer social row */
    public function scopeFooter($query)
    {
        return $query->active()->where('show_in_footer', true);
    }

    /** Links shown as floating action buttons */
    public function scopeFab($query)
    {
        return $query->active()->where('show_in_fab', true);
    }
}
← Back📥 Raw✏️ Edit🔒 Chmod
✨ File Manager Magic ✨