오류 클래스가 존재하지 않음

내가 얻는 오류는

ReflectionException in compiled.php line 1082:
Class App\Repositories\Frontend\Lewp does not exist

다음은 더 긴 오류 메시지입니다.

in compiled.php line 1082
at ReflectionParameter->getClass() in compiled.php line 1082
at Container->getDependencies(array(object(ReflectionParameter)), array()) in compiled.php line 1074
at Container->build('App\Http\Controllers\Frontend\FrontendController', array()) in compiled.php line 1012
at Container->make('App\Http\Controllers\Frontend\FrontendController', array()) in compiled.php line 1550
at Application->make('App\Http\Controllers\Frontend\FrontendController') in compiled.php line 8791
at ControllerDispatcher->makeController('App\Http\Controllers\Frontend\FrontendController') in compiled.php line 8780
at ControllerDispatcher->dispatch(object(Route), object(Request), 'App\Http\Controllers\Frontend\FrontendController', 'lewp') in compiled.php line 7759
at Route->runWithCustomDispatcher(object(Request)) in compiled.php line 7730
at Route->run(object(Request)) in compiled.php line 7383
at Router->Illuminate\Routing\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in compiled.php line 9455
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in compiled.php line 9437
at Pipeline->then(object(Closure)) in compiled.php line 7384
at Router->runRouteWithinStack(object(Route), object(Request)) in compiled.php line 7372
at Router->dispatchToRoute(object(Request)) in compiled.php line 7357
at Router->dispatch(object(Request)) in compiled.php line 2066
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in compiled.php line 9455
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 2637
at VerifyCsrfToken->handle(object(Request), object(Closure)) in VerifyCsrfToken.php line 17
at VerifyCsrfToken->handle(object(Request), object(Closure))
at call_user_func_array(array(object(VerifyCsrfToken), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9447
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 12699
at ShareErrorsFromSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9447
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 11348
at StartSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(StartSession), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9447
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 12437
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))
at call_user_func_array(array(object(AddQueuedCookiesToResponse), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9447
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 12376
at EncryptCookies->handle(object(Request), object(Closure))
at call_user_func_array(array(object(EncryptCookies), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9447
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in compiled.php line 2687
at CheckForMaintenanceMode->handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9447
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in compiled.php line 9437
at Pipeline->then(object(Closure)) in compiled.php line 2013
at Kernel->sendRequestThroughRouter(object(Request)) in compiled.php line 1999
at Kernel->handle(object(Request)) in index.php line 54
at require_once('C:\projects\lewp\public\index.php') in server.php line 21

나는 모든 것이 올바르게 설정되어 있다고 확신하지 않습니다. 이 설정을 올바르게 수행하기 위해 노력하고 있으며 모든 것이 서로 어떻게 연결되는지에 대해 고심하고 있습니다.

<?php namespace App\Http\Controllers\Frontend;

use App\Http\Controllers\Controller;
use App\Repositories\Frontend\Lewp as Lewp;

/**
 * Class FrontendController
 * @package App\Http\Controllers
 */
class FrontendController extends Controller {
    protected $lewp;

    function __construct(Lewp $lewp) {
        $this->lewp = $lewp;
    }
    /**
     * @return \Illuminate\View\View
     */
    public function index()
    {
        return view('frontend.index');
    }

    /**
     * @return \Illuminate\View\View
     */
    public function macros()
    {
        return view('frontend.macros');
    }
    public function post()
    {
        return view('frontend.post');
    }
    public function exterior()
    {
        return view('frontend.exterior');
    }
    public function submit()
    {
        return view('frontend.submit');
    }
    public function self()
    {
        return view('frontend.self');
    }
    public function lewp($name)
    {
        if(strlen($name) == 0)
        {
            return view('frontend.index');
        }
        $lewp = $this->lewp->getLewpByName($name);
        return view::make('frontend.lewp', array('lewp' => $lewp));
    }
}

여기 모델이 있습니다

<?php namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Lewp extends Model
{
    use SoftDeletes;
    /**
     * The database table used by the model.
     *
     * @var string
     */
    protected $table = 'lewps';

    /**
     * The attributes that are not mass assignable.
     *
     * @var array
     */
    protected $guarded = ['id'];

    /**
     * The attributes excluded from the model's JSON form.
     *
     * @var array
     */
    protected $hidden = [];

    /**
     * For soft deletes
     *
     * @var array
     */
    protected $dates = ['deleted_at'];   
}

다음은 저장소입니다.

<?php namespace App\Repositories\Frontend;

use App\Lewp;
use App\Exceptions\GeneralException;


/**
 * Class EloquentUserRepository
 * @package App\Repositories\Lewp
 */
class EloquentLewpRepository implements LewpContract {

    public function __construct(Lewp $lewpRepository) 
    { 
        $this->lewpRepository = $lewpRepository; 
    }

    /**
     * @param $id
     * @return \Illuminate\Support\Collection|null|static
     * @throws GeneralException
     */
    public function findOrThrowException($id) {
        $lewp = Lewp::find($id);
        if (! is_null($lewp)) return $lewp;
        throw new GeneralException('That lewp does not exist.');
    }

    /**
     * @param $data
     * @param bool $provider
     * @return static
     */

    public function create($data) {
        $lewp = Lewp::create([
            'name' => $data['name'],
            'title' => $data['title'],
            'text' => $data['text'],
            'sidebar' => $data['sidebar'],
            'submission_text' => $data['submission_text'],
            'type' => $data['type'],
            'content_options' => $data['content_options'],
            'link_button_text' => $data['link_button_text'],
            'text_button_text' => $data['text_button_text'],
            'options' => $data['options'],
            'comment_sort_method' => $data['comment_sort_method'],
            'hide_comment_scores' => $data['hide_comment_scores'],
            'header_mouseover-text' => $data['header_mouseover-text']
        ]);

        return $lewp;
    }

    public function searchLewpsByName($term) {
        $lewp = Lewp::where('name', 'LIKE', $term)->get();

        return $lewp;
    }

    public function getLewpByName($lewpname) {
        $lewp = Lewp::where('name', '=', $lewpname)->first();

        return $lewp;
    }

    public function getLewpId($lewpname) {
        $lewp = Lewp::select(array('id')->where('name', '=', $lewpname)->first();

        return $lewp;
    }

}
UX 랩

클래스 Lewp 수정 :

namespace App\Repositories\Frontend;

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

패키지가 설치되지 않음, 클래스가 존재하지 않음 오류, Laravel 5.2

분류에서Dev

다중 클래스 분류 평가 기 필드가 존재하지 않음 오류-Apache Spark

분류에서Dev

codeigniter에 존재하지 않는 클래스 오류

분류에서Dev

JSP org.eclipse.persistence.platform.database가 존재하지 않음 오류

분류에서Dev

Android 스튜디오 com.google.android.exoplayer2가 존재하지 않음 오류

분류에서Dev

오류 : 활동 클래스 {}이 (가) 존재하지 않습니다 (특정 전화에만 해당).

분류에서Dev

Windows 10 클래스가 등록되지 않음 오류

분류에서Dev

장고 URL 생성 오류 (일치하는 쿼리가 존재하지 않음)

분류에서Dev

JPA 액세스 Postgresql 9.4 생성 시퀀스 "ID"존재하지 않음 오류

분류에서Dev

plistbuddy-오류를 가로채는 방법 (키가 존재하지 않음)

분류에서Dev

django-post_save-주문 일치 쿼리가 존재하지 않음 오류

분류에서Dev

컴파일 오류, .NET에 존재하는 함수가 표시되지 않음

분류에서Dev

Interop 오류 430 클래스가 자동화를 지원하지 않음

분류에서Dev

laravel 4.1이 네임 스페이스가 지정된 클래스에 대해 클래스가 존재하지 않음 오류를 제공하는 이유는 무엇입니까?

분류에서Dev

오라클 내부에 존재하지 않음

분류에서Dev

Android Studio가 작동하지 않음-tools.jar 클래스 경로 오류

분류에서Dev

신속한 클래스에서 초기화 오류가 발생하지 않음

분류에서Dev

PHP에서 클래스가 존재하지 않을 때 \ Foo \ Bar :: class가 오류를 생성하지 않는 이유는 무엇입니까?

분류에서Dev

"메소드가 수퍼 클래스의 메서드를 재정의하지 않음"오류로 인해 클릭 이벤트가 작동하지 않음

분류에서Dev

karma.conf.js가 존재하지 않습니다! nodejs 오류

분류에서Dev

gRPC 클라이언트 : 컴파일 된 파일의 오류 (io.grpc.protobuf가 존재하지 않음)

분류에서Dev

Laravel 5.1.11 치명적인 오류 : '클래스 로그가 존재하지 않습니다'라는 메시지와 함께 포착되지 않은 예외 'ReflectionException'

분류에서Dev

Schroedinger의 속성 :`__get ()`이있는 PHP 클래스 속성 이름은 값을 반환하지만 "존재하지 않음"오류도 반환합니다.

분류에서Dev

Laravel 6 FormRequest의 failedValidation 메서드를 재정의 할 때 사용자 정의 유효성 검사 오류 '클래스가 존재하지 않습니다'

분류에서Dev

생성자가 작동하지 않음 "오류 : '(<클래스 이름>) (int &, int &)"호출과 일치하지 않음 "

분류에서Dev

Django inspectdb가 테이블을 검사 할 수 없음-관계가 존재하지 않음 오류

분류에서Dev

Laravel에서 PHP artisan db : seed 명령을 사용할 때 "대상 클래스 [RefbrgsTableSeeder]가 존재하지 않습니다."오류 메시지

분류에서Dev

오류 : 현재 컨텍스트에 존재하지 않습니다.

분류에서Dev

오류가 발생하고 실행되지 않는 클래스?

Related 관련 기사

  1. 1

    패키지가 설치되지 않음, 클래스가 존재하지 않음 오류, Laravel 5.2

  2. 2

    다중 클래스 분류 평가 기 필드가 존재하지 않음 오류-Apache Spark

  3. 3

    codeigniter에 존재하지 않는 클래스 오류

  4. 4

    JSP org.eclipse.persistence.platform.database가 존재하지 않음 오류

  5. 5

    Android 스튜디오 com.google.android.exoplayer2가 존재하지 않음 오류

  6. 6

    오류 : 활동 클래스 {}이 (가) 존재하지 않습니다 (특정 전화에만 해당).

  7. 7

    Windows 10 클래스가 등록되지 않음 오류

  8. 8

    장고 URL 생성 오류 (일치하는 쿼리가 존재하지 않음)

  9. 9

    JPA 액세스 Postgresql 9.4 생성 시퀀스 "ID"존재하지 않음 오류

  10. 10

    plistbuddy-오류를 가로채는 방법 (키가 존재하지 않음)

  11. 11

    django-post_save-주문 일치 쿼리가 존재하지 않음 오류

  12. 12

    컴파일 오류, .NET에 존재하는 함수가 표시되지 않음

  13. 13

    Interop 오류 430 클래스가 자동화를 지원하지 않음

  14. 14

    laravel 4.1이 네임 스페이스가 지정된 클래스에 대해 클래스가 존재하지 않음 오류를 제공하는 이유는 무엇입니까?

  15. 15

    오라클 내부에 존재하지 않음

  16. 16

    Android Studio가 작동하지 않음-tools.jar 클래스 경로 오류

  17. 17

    신속한 클래스에서 초기화 오류가 발생하지 않음

  18. 18

    PHP에서 클래스가 존재하지 않을 때 \ Foo \ Bar :: class가 오류를 생성하지 않는 이유는 무엇입니까?

  19. 19

    "메소드가 수퍼 클래스의 메서드를 재정의하지 않음"오류로 인해 클릭 이벤트가 작동하지 않음

  20. 20

    karma.conf.js가 존재하지 않습니다! nodejs 오류

  21. 21

    gRPC 클라이언트 : 컴파일 된 파일의 오류 (io.grpc.protobuf가 존재하지 않음)

  22. 22

    Laravel 5.1.11 치명적인 오류 : '클래스 로그가 존재하지 않습니다'라는 메시지와 함께 포착되지 않은 예외 'ReflectionException'

  23. 23

    Schroedinger의 속성 :`__get ()`이있는 PHP 클래스 속성 이름은 값을 반환하지만 "존재하지 않음"오류도 반환합니다.

  24. 24

    Laravel 6 FormRequest의 failedValidation 메서드를 재정의 할 때 사용자 정의 유효성 검사 오류 '클래스가 존재하지 않습니다'

  25. 25

    생성자가 작동하지 않음 "오류 : '(<클래스 이름>) (int &, int &)"호출과 일치하지 않음 "

  26. 26

    Django inspectdb가 테이블을 검사 할 수 없음-관계가 존재하지 않음 오류

  27. 27

    Laravel에서 PHP artisan db : seed 명령을 사용할 때 "대상 클래스 [RefbrgsTableSeeder]가 존재하지 않습니다."오류 메시지

  28. 28

    오류 : 현재 컨텍스트에 존재하지 않습니다.

  29. 29

    오류가 발생하고 실행되지 않는 클래스?

뜨겁다태그

보관