git commit "Complete today's development"
This commit is contained in:
+6
-2
@@ -12,13 +12,13 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* Class City
|
||||
*
|
||||
*
|
||||
* @property int $id
|
||||
* @property int $provinces
|
||||
* @property string $name
|
||||
* @property Carbon $created_at
|
||||
* @property Carbon $updated_at
|
||||
*
|
||||
*
|
||||
* @property Collection|User[] $users
|
||||
*
|
||||
* @package App\Models
|
||||
@@ -41,4 +41,8 @@ class City extends Model
|
||||
{
|
||||
return $this->hasMany(User::class);
|
||||
}
|
||||
public function province()
|
||||
{
|
||||
return $this->hasMany(Province::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user