app/Http/Controllers/Admin/UsersController.php
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating a new resource.
@return \Illuminate\Http\Response
Show the form for creating a new resource . @return \ Illuminate \ Http \ Response
public function create()
    {
        if (Gate::denies('manage-users')) {
            return redirect(route('admin.users.index'));
        }
        $roles = Role::all();
        return view('admin.users.create')->with('roles', $roles);
    }
public function create ( ) { if ( Gate :: denies ( 'manage-users' ) ) { return redirect ( route ( 'admin.users.index' ) ) ; } $ roles = Role :: all ( ) ; return view ( 'admin.users.create' ) -> with ( 'roles' , $ roles ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .