CustomFilterStatus.php 398 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace App\Models;
  3. use App\Status;
  4. use Illuminate\Database\Eloquent\Model;
  5. class CustomFilterStatus extends Model
  6. {
  7. protected $fillable = [
  8. 'custom_filter_id', 'status_id',
  9. ];
  10. public function customFilter()
  11. {
  12. return $this->belongsTo(CustomFilter::class);
  13. }
  14. public function status()
  15. {
  16. return $this->belongsTo(Status::class);
  17. }
  18. }