나는이 모델 파일이 발견되지Laravel 4 모델은
<?php
class IndexController extends BaseController {
public function showIndex()
{
$recipes = Recipe::all();
return View::make('index',array('recipes' => $recipes));
}
}
내가 시도 이 오류 메시지가 나타나는 페이지를 호출하십시오.
Symfony \ Component \ Debug \ Exception \ FatalErrorException
Class 'Recipe' not found
도 실행했습니다
composer dump-autoload
무엇이 잘못 되었나요?
정말 소스 코드가' php'가 아니라' php'? –