hasMany('App\Models\Post'); } public static $rules = array( 'name' => 'required', 'email' => 'unique:users', 'password' => 'required' ); }