Blame view

app/Models/CategoryEmp.php 356 Bytes
4452df326   Андрей Ларионов   Миграции Категори...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  <?php
  
  namespace App\Models;
  
  use Illuminate\Database\Eloquent\Factories\HasFactory;
  use Illuminate\Database\Eloquent\Model;
  
  class CategoryEmp extends Model
  {
      use HasFactory;
  
      protected $fillable = [
          'name',
          'is_remove'
      ];
  
      public function scopeActive($query) {
          return $query->where('is_remove', '=', '0');
      }
  }