2017-10-07 63 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和你的$國家是不是在陣列形式(雄辯返回對象)

嘗試無論是在您的意見或指定者()在你的控制器中加入指定者()

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

相關問題