ok

Mini Shell

Direktori : /home2/selectio/public_html/3idiotsgadgetstore.in/app/Model/
Upload File :
Current File : //home2/selectio/public_html/3idiotsgadgetstore.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