app/Http/Controllers/DistrictsController.php
/**
     * Show the form for editing the specified Districts.
     *
     * @param int $id
     *
     * @return Response
     */
Show the form for editing the specified Districts.
@param int $id

@return Response
Show the form for editing the specified Districts . @param int $id @return Response
public function edit($id)
    {
        $districts = $this->districtsRepository->find($id);
        if (empty($districts)) {
            Flash::error('Districts not found');
            return redirect(route('districts.index'));
        }
        return view('districts.edit')->with('districts', $districts);
    }
public function edit ( $ id ) { $ districts = $ this -> districtsRepository -> find ( $ id ) ; if ( empty ( $ districts ) ) { Flash :: error ( 'Districts not found' ) ; return redirect ( route ( 'districts.index' ) ) ; } return view ( 'districts.edit' ) -> with ( 'districts' , $ districts ) ; }
Show the form for editing the specified Districts.
Show the form for editing the specified Districts .