mirror of
https://github.com/ZorgCC/lumen-generators.git
synced 2025-02-06 18:42:17 +03:00
22 lines
283 B
PHP
22 lines
283 B
PHP
<?php namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Test extends Model {
|
|
|
|
protected $fillable = [];
|
|
|
|
protected $dates = [];
|
|
|
|
public function users()
|
|
{
|
|
return $this->hasMany('App\User');
|
|
}
|
|
|
|
public function number()
|
|
{
|
|
return $this->hasMany('Phone');
|
|
}
|
|
|
|
}
|