Laravel + Sentryã§è¤æ°ã°ã«ã¼ããæããã
管çè 権éãã¤éçºè 権éã¨ã渡ãã¨ä¾¿å©ã
$developer = Sentry::createGroup([ 'name' => 'developer', 'permissions' => array( 'admin' => 0, 'develop' => 1, ), ]); $admin = Sentry::createGroup([ 'name' => 'administrator', 'permissions' => array( 'admin' => 1, 'develop' => 1, ), ]); $user = Sentry::createUser([ 'email' => '[email protected]', 'password' => 'password', 'activated' => true, ]); $user->addGroup($admin); $user->addGroup($developer);