We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 2 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class Bill extends Model |
||
| 9 | { |
||
| 10 | use CrudTrait; |
||
|
|
|||
| 11 | |||
| 12 | /* |
||
| 13 | |-------------------------------------------------------------------------- |
||
| 14 | | GLOBAL VARIABLES |
||
| 15 | |-------------------------------------------------------------------------- |
||
| 16 | */ |
||
| 17 | |||
| 18 | protected $table = 'bills'; |
||
| 19 | protected $primaryKey = 'id'; |
||
| 20 | public $timestamps = true; |
||
| 21 | protected $fillable = ['title']; |
||
| 22 | // protected $hidden = []; |
||
| 23 | // protected $dates = []; |
||
| 24 | |||
| 25 | /* |
||
| 26 | |-------------------------------------------------------------------------- |
||
| 27 | | FUNCTIONS |
||
| 28 | |-------------------------------------------------------------------------- |
||
| 29 | */ |
||
| 30 | |||
| 31 | /* |
||
| 32 | |-------------------------------------------------------------------------- |
||
| 33 | | RELATIONS |
||
| 34 | |-------------------------------------------------------------------------- |
||
| 35 | */ |
||
| 36 | |||
| 37 | public function monsters() |
||
| 38 | { |
||
| 39 | return $this->morphedByMany(\App\Models\Monster::class, 'billable'); |
||
| 40 | } |
||
| 41 | |||
| 42 | public function icons() |
||
| 45 | } |
||
| 46 | |||
| 65 |