Laravel-Backpack /
CRUD
We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Backpack\CRUD\Tests\Config\Models; |
||
| 4 | |||
| 5 | use Backpack\CRUD\app\Models\Traits\CrudTrait; |
||
| 6 | use Illuminate\Database\Eloquent\Model; |
||
| 7 | |||
| 8 | class Comet extends Model |
||
| 9 | { |
||
| 10 | use CrudTrait; |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 11 | |||
| 12 | /* |
||
| 13 | |-------------------------------------------------------------------------- |
||
| 14 | | GLOBAL VARIABLES |
||
| 15 | |-------------------------------------------------------------------------- |
||
| 16 | */ |
||
| 17 | |||
| 18 | protected $table = 'comets'; |
||
| 19 | protected $primaryKey = 'id'; |
||
| 20 | public $timestamps = false; |
||
| 21 | protected $fillable = ['user_id']; |
||
| 22 | protected $casts = [ |
||
| 23 | 'user_id' => 'integer', |
||
| 24 | ]; |
||
| 25 | // protected $hidden = []; |
||
| 26 | // protected $dates = []; |
||
| 27 | |||
| 28 | /* |
||
| 29 | |-------------------------------------------------------------------------- |
||
| 30 | | FUNCTIONS |
||
| 31 | |-------------------------------------------------------------------------- |
||
| 32 | */ |
||
| 33 | |||
| 34 | /* |
||
| 35 | |-------------------------------------------------------------------------- |
||
| 36 | | RELATIONS |
||
| 37 | |-------------------------------------------------------------------------- |
||
| 38 | */ |
||
| 39 | |||
| 40 | public function user() |
||
| 41 | { |
||
| 42 | return $this->belongsTo('Backpack\CRUD\Tests\config\Models\User'); |
||
| 43 | } |
||
| 44 | |||
| 45 | /* |
||
| 46 | |-------------------------------------------------------------------------- |
||
| 47 | | SCOPES |
||
| 48 | |-------------------------------------------------------------------------- |
||
| 49 | */ |
||
| 50 | |||
| 51 | /* |
||
| 52 | |-------------------------------------------------------------------------- |
||
| 53 | | ACCESSORS |
||
| 54 | |-------------------------------------------------------------------------- |
||
| 55 | */ |
||
| 56 | |||
| 57 | /* |
||
| 58 | |-------------------------------------------------------------------------- |
||
| 59 | | MUTATORS |
||
| 60 | |-------------------------------------------------------------------------- |
||
| 61 | */ |
||
| 62 | } |
||
| 63 |