mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 17:33:45 +00:00
Code cleanup.
This commit is contained in:
@@ -35,14 +35,15 @@ use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
||||
/**
|
||||
* FireflyIII\Models\Role
|
||||
*
|
||||
* @property int $id
|
||||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
* @property string $name
|
||||
* @property string|null $display_name
|
||||
* @property string|null $description
|
||||
* @property-read Collection|User[] $users
|
||||
* @property-read int|null $users_count
|
||||
* @property int $id
|
||||
* @property null|Carbon $created_at
|
||||
* @property null|Carbon $updated_at
|
||||
* @property string $name
|
||||
* @property null|string $display_name
|
||||
* @property null|string $description
|
||||
* @property Collection|User[] $users
|
||||
* @property null|int $users_count
|
||||
*
|
||||
* @method static Builder|Role newModelQuery()
|
||||
* @method static Builder|Role newQuery()
|
||||
* @method static Builder|Role query()
|
||||
@@ -52,6 +53,7 @@ use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
||||
* @method static Builder|Role whereId($value)
|
||||
* @method static Builder|Role whereName($value)
|
||||
* @method static Builder|Role whereUpdatedAt($value)
|
||||
*
|
||||
* @mixin Eloquent
|
||||
*/
|
||||
class Role extends Model
|
||||
@@ -64,12 +66,8 @@ class Role extends Model
|
||||
'updated_at' => 'datetime',
|
||||
];
|
||||
|
||||
|
||||
protected $fillable = ['name', 'display_name', 'description'];
|
||||
|
||||
/**
|
||||
* @return BelongsToMany
|
||||
*/
|
||||
public function users(): BelongsToMany
|
||||
{
|
||||
return $this->belongsToMany(User::class);
|
||||
|
Reference in New Issue
Block a user