ok

Mini Shell

Direktori : /proc/thread-self/root/proc/self/root/home2/selectio/www/bharath/a1tex.in/app/Model/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/home2/selectio/www/bharath/a1tex.in/app/Model/HelpTopic.php

<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class HelpTopic extends Model
{
    protected $table = 'help_topics';
    protected $casts = [

        'ranking'    => 'integer',
        'status'     => 'integer',
        'created_at' => 'datetime',
        'updated_at' => 'datetime',
    ];
    protected $fillable = [
        'question',
        'answer',
        'status',
        'ranking',
    ];

    public function scopeStatus($query)
    {
        return $query->where('status', 1);
    }
}

Zerion Mini Shell 1.0