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