<?php
/**
 * WARNING!!
 *
 * Do not modify the content of this file, it's generated by the command:
 * "php artisan models:generate" (package "axn/laravel-models-generator").
 *
 * If you want to add or modify a relation, do it in the model class or in
 * another trait.
 */
namespace App\Models\GeneratedRelations;

trait RoleRelations
{
    
    /**
     * "has many" relation to `user` table
     * via `role` field.
     *
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
     */
    public function userViaRole()
    {
        return $this->hasMany(\App\Models\User::class, 'role');
    }

}
