Laravel 当我尝试迁移我的配置文件表时,它给了我一个错误

Laravel 当我尝试迁移我的配置文件表时,它给了我一个错误,laravel,laravel-5,laravel-validation,Laravel,Laravel 5,Laravel Validation,[Symfony\Component\Debug\Exception\FatalErrorException]语法 错误,意外的“(”,应为标识符(T_字符串)或变量 (T_变量)或{或$' 这是我的密码 public function up() { Schema::create('profile', function (Blueprint $table) { $table->('userid')->unsign

[Symfony\Component\Debug\Exception\FatalErrorException]语法 错误,意外的“(”,应为标识符(T_字符串)或变量 (T_变量)或{或$'

这是我的密码

public function up()
        {
            Schema::create('profile', function (Blueprint $table) {
                $table->('userid')->unsigned()->default(0);
                $table->string('profile')->default('http://localhost/laravel/public/image/uzair.jpg');
                $table->string('about',255);
                $table->foreign('userid')->references('id')->on('users')->onDelete('cascade');
                $table->timestamps();
            });
        }
这就是为什么会出现语法错误。它可能是
$table->integer('userid')

$table->('userid')