몇 분 동안 시도한 후. 나는 다음과 같은 한 내 routes.php 파일Laravel 4 : ErrorException 정의되지 않은 변수
Route::get('home/bookappointment/{id?}', array('as' => 'bookappointment', 'uses' => '[email protected]'));
에 그리고 내 컨트롤러에 있습니다
public function getBookAppointment($id)
{
// find all the services that are active for the especific franchise
$activeServices = Service::whereHas('franchise', function($q) {
$q->where('franchise_id', '=', $id);
})->get();
//var_dump($activeServices);die;
return View::make('frontend/bookappointment')
->with('services', $activeServices);
}
그리고이 오류가 점점 계속.
내가 뭘 잘못하고 있니?
정의되지 않은 변수는 일반적으로 변수가 정의되지 않은 경우 실행됩니다. –
하지만 내 URL을 통해 보내는 경우 ?? 집/예약/297 – Monica