Top.Mail.Ru
Ответы
Аватар пользователя
Аватар пользователя
Аватар пользователя
Аватар пользователя
Программирование
+3

Что это за ошибка? In AppServiceProvider.php line 36: syntax error, unexpected 'public' (T_PUBLIC)

1234567891011121314151617181920212223242526272829303132
 В чем проблема не могу понять
class CreatePostsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('posts', function (Blueprint $table) {
            $table->increments('id');
            $table->string('title');
            $table->string('image')->nullable();
            $table->text('content');
            $table->unsignedBigInteger('likes')->nullable();
            $table->boolean('is_published')->default(1);
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('posts');
    }
}
 
По дате
По рейтингу
Аватар пользователя
Оракул

в этом коде синтаксических ошибок нет, проверил.

Аватар пользователя
Мастер

не надо обманывать, ты уже исправил ошибку в коде