app/Http/Controllers/BranchesController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \PurchaseControl\branches  $branches
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit($id)
    {
        $branch = Branches::where('id', $id)->first();
        $users = User::orderBy('name')->get();
        return view('admin.branches.edit',[
            'branch' => $branch,
            'users' => $users,
        ]);
    }
public function edit ( $ id ) { $ branch = Branches :: where ( 'id' , $ id ) -> first ( ) ; $ users = User :: orderBy ( 'name' ) -> get ( ) ; return view ( 'admin.branches.edit' , [ 'branch' => $ branch , 'users' => $ users , ] ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .
//var_dump($branch);