Illuminate/Foundation/Auth/Access/Authorizable

From WoozleCodes
Jump to navigation Jump to search
Illuminate\Foundation\Auth\Access\Authorizable trait

$sNS="Illuminate\Foundation\Auth\User";

 $arFP = explode('\\',$sNS);
 $sFP = NULL;
 foreach($arFP as $sSeg) {
   if (!is_null($sFP)) {
     $sFP .= '/';
   }
   $sFP .= $sSeg;
 }

echo "$sNS"; </phptag>

  • definition:
    • public methods:
      • public function can($abilities, $arguments = [])
      • public function canAny($abilities, $arguments = [])
      • public function cant($abilities, $arguments = [])
      • public function cannot($abilities, $arguments = [])
  • refers to:
    • <phptag>

$sNS="Illuminate\Contracts\Auth\Access\Gate";

 $arFP = explode('\\',$sNS);
 $sFP = NULL;
 foreach($arFP as $sSeg) {
   if (!is_null($sFP)) {
     $sFP .= '/';
   }
   $sFP .= $sSeg;
 }

echo "$sNS"; </phptag>