我有一个关于Laravel 5.使用问题后Form::open
,产生了某种错误:关于调用一个成员函数域()一个非对象
error : Call to a member function domain() on a non-object
FatalErrorException in UrlGenerator.php line 440:
Call to a member function domain() on a non-object
in UrlGenerator.php line 440
at HandleExceptions->fatalExceptionFromError(array('type' => '1', 'message' => 'Call to a member function domain() on a non-object', 'file' => '/home/nl/Laravel/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php', 'line' => '440')) in HandleExceptions.php line 116
at HandleExceptions->handleShutdown()
这是我LoginCheckController.php:
<?php namespace App\Http\Controllers;
class LoginCheckController extends BaseController {
public function index()
这是我的路线:
Route::post('/LoginCheck', '[email protected]');
鉴于我有这样的:
{!! Form::open(array('action' => '[email protected]')) !!}
我也跑composer dump-autoload
和php artisan clear-compiled
,但我仍然得到错误。有什么我忘了吗?有明确的版本
- 重新安装作曲家
- PHP工匠化妆:
我解决它由控制器具有手动
这是否错误发生在什么文件和行? – deceze
像上面的错误谢谢。 – nlstduio
你需要告诉我们你使用的是什么版本。 GitHub的5.0分支上的最新版本没有与440行相关的任何内容:https://github.com/laravel/framework/blob/5.0/src/Illuminate/Routing/UrlGenerator.php#L440还寻找通话为'domain'(' - >域(')没有返回在该文件中有关:https://github.com/laravel/framework/search?utf8=%E2%9C%93&q=-%3Edomain%28 –