forge/app/Models/UserRole.php
Refringe 2cca45bcea
Removes Array Definition Docblock Information
Part of moving back to PHPStan level 5 means we can remove some of these. They're very busy and don't give enough context to outweigh the ugly.
2024-09-17 13:30:11 -04:00

24 lines
458 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
class UserRole extends Model
{
use HasFactory;
/**
* The relationship between a user role and users.
*
* @return HasMany<User>
*/
public function users(): HasMany
{
return $this->hasMany(User::class)
->chaperone();
}
}