ok
Direktori : /home2/selectio/public_html/innerstore/app/Model/ |
Current File : /home2/selectio/public_html/innerstore/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); } }