app/Http/Controllers/userController.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()
    {
        $roles = Role::pluck('name','name')->all();
        return view('users.create_user',compact('roles'));
    }
public function create ( ) { $ roles = Role :: pluck ( 'name' , 'name' ) -> all ( ) ; return view ( 'users.create_user' , compact ( 'roles' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .