コード例 #1
0
ファイル: students.php プロジェクト: Reta110/unit-tests
function studentController()
{
    if (!Access::check('student')) {
        abort404();
    }
    view('students');
}
コード例 #2
0
ファイル: teachers.php プロジェクト: Reta110/unit-tests
function teacherController()
{
    if (!Access::check('teacher')) {
        abort404();
    }
    view('teachers');
}
コード例 #3
0
ファイル: teachers.php プロジェクト: abalozz/unit-tests
function teacherController()
{
    $access = Container::getInstance()->access();
    if (!$access->check('teacher')) {
        abort404();
    }
    view('teachers', compact('access'));
}
コード例 #4
0
ファイル: students.php プロジェクト: abalozz/unit-tests
function studentController()
{
    $access = Container::getInstance()->access();
    if (!$access->check('student')) {
        abort404();
    }
    view('students', compact('access'));
}