app/Http/Controllers/OrderController.php
/**
     * Show the form for creating a new resource.
     *
     * @param Province $province
     * @return Response
     */
Show the form for creating a new resource.
@param Province $province
@return Response
Show the form for creating a new resource . @param Province $province @return Response
public function create(Province $province)
    {
        $provinces = $province->all();
        return view('user.order.check-out', compact('provinces'));
    }
public function create ( Province $ province ) { $ provinces = $ province -> all ( ) ; return view ( 'user.order.check-out' , compact ( 'provinces' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .
// Get the Record itself with it's pivots all together //1. //return $province = Province::with('cities')->find(1); //2. //$province = Province::find(1); //$province->cities; //return  $province; //        DB::enableQueryLog(); // Enable query log //         $cities = $province->find(27)->cities; //        $cities = $province->find(27)->load('cities'); //        dd(DB::getQueryLog()); // Show results of log //        return view('user.order.check-out');