app/Http/Controllers/DistrictController.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(Request $request)
    {
        $provinceID = $request->province;
        if(!empty($provinceID) && !empty($province = Province::find($provinceID))){
            return view('layouts.admin.job_and_relate.district.create')->with('province',$province);
        }
        return redirect()->route('404');
    }
public function create ( Request $ request ) { $ provinceID = $ request -> province ; if ( ! empty ( $ provinceID ) && ! empty ( $ province = Province :: find ( $ provinceID ) ) ) { return view ( 'layouts.admin.job_and_relate.district.create' ) -> with ( 'province' , $ province ) ; } return redirect ( ) -> route ( '404' ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .