2017-10-07 4 views
0
insert.blade.php 

     {!! Form::select('country', ['' => 'Select'] +$countries,'',array('class'=>'form-control','id'=>'country','style'=>'width:350px;'));!!}  



    'Form' => Collective\Html\FormFacade::class, 
     'Html' => Collective\Html\HtmlFacade::class, 


     When i m adding above  'Form' => Collective\Html\FormFacade::class, 
     'Html' => Collective\Html\HtmlFacade::class, in app.php it give me the following error 
    Unsupported operand types laravel 5.2 
     and 
    When i removed 'Form' => Collective\Html\FormFacade::class, 
     'Html' => Collective\Html\HtmlFacade::class, 
    i m getting class 'Form' not found 

코드의 문제점은 무엇입니까? 어디 코드를 편집 하시겠습니까? 코드의 문제점은 무엇입니까? 어디 코드를 편집 하시겠습니까? 코드의 문제점은 무엇입니까? 어디 코드를 편집 하시겠습니까?지원되지 않는 피연산자 유형 laravel 5.2

답변

0

문제는

['' => 'Select'] +$countries하고 당신의 $ 국가는 배열 형식 (웅변 반환 개체)에없는

시도 중 당신의 컨트롤러에 뷰 또는 toArray()에서 toArray()를 추가

['' => 'Select'] +$countries->toArray()