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 Address extends Model |
||
| 9 | { |
||
| 10 | use CrudTrait; |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 11 | |||
| 12 | protected $table = 'addresses'; |
||
| 13 | protected $fillable = ['city', 'street', 'number']; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Get the author for the article. |
||
| 17 | */ |
||
| 18 | public function accountDetails() |
||
| 19 | { |
||
| 20 | return $this->belongsTo('Backpack\CRUD\Tests\config\Models\AccountDetails', 'account_details_id'); |
||
| 21 | } |
||
| 22 | |||
| 23 | public function bang() |
||
| 24 | { |
||
| 25 | return $this->belongsTo('Backpack\CRUD\Tests\config\Models\Bang', 'city'); |
||
| 26 | } |
||
| 27 | } |
||
| 28 |