public function delete($id) { $user = User::show("*")->where("id", "=", $id); return Authorization::destroy($user, new User()); }
public function auths($auth) { $group = Authorization::show("my", new Group())->where('description', '=', $auth); return Authorization::hasMany($group, 'App\\Authorization', 'auth', 'auth')->get(); }
static function register($fields) { return Authorization::store("my", new User(), $fields); }