app/Http/Controllers/BranchesController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $branches = Branches::all();
        return view('branches.index',['branches' => $branches]);
    }
public function index ( ) { $ branches = Branches :: all ( ) ; return view ( 'branches.index' , [ 'branches' => $ branches ] ) ; }
Display a listing of the resource.
Display a listing of the resource .