Notice
Recent Posts
Recent Comments
Link
목록ClassNotFoundException (1)
고양이 여름이의 지식채널
Laravel ClassNotFoundException 에러 원인 및 해결방법
ClassNotFoundException API 개발중에 자꾸 이 오류가 나서 해결책 정리함. 해당 오류는 Laravel의 지정된 클래스 이름에 대한 클래스 정의를 찾을 수 없을 때 발생합니다. 즉, 프로젝트내에 존재하지 않거나 자동으로 로드할 수 없는 클래스를 인스턴스화하려고 할때 발생합니다. 예시. 다음과 같이 정의된 컨트롤러 클래스가 있는 경우 namespace App\Http\Controllers; class PostController { ... } 그리고 route에서 이 클래스를 다음과 같이 사용하려고 합니다. Route::get('/post/{id}', 'PostControllers@show'); 클래스의 올바른 이름이 PostController이므로 Route에서 PostController..
Programming/Laravel
2023. 2. 3. 00:26