app/Http/Controllers/BranchesController.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()
    {
        $users = User::orderBy('name')->get();
        return view('admin.branches.create',[
            'users' => $users
        ]);
    }
public function create ( ) { $ users = User :: orderBy ( 'name' ) -> get ( ) ; return view ( 'admin.branches.create' , [ 'users' => $ users ] ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .