dagyoe

Experience

100

0 Best Reply Awards

  • Member Since 7 Months Ago
  • 0 Lessons Completed
  • 0 Favorites

17th February, 2018

dagyoe left a reply on Parse Error: Syntax Error, Unexpected '\' • 7 months ago

@wilk_randall thanks too men ;)

dagyoe left a reply on Parse Error: Syntax Error, Unexpected '\' • 7 months ago

@shez1983 thank you :) I'm trying to programing first time

dagyoe left a reply on Parse Error: Syntax Error, Unexpected '\' • 7 months ago

2018_02_17_204738_create_post_tag_pivot_table.php

<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class App\ extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('post_tag', function (Blueprint $table) {
            $table->integer('post_id')->unsigned()->index();
            $table->foreign('post_id')->references('id')->on('posts')->onDelete('cascade');
            $table->integer('tag_id')->unsigned()->index();
            $table->foreign('tag_id')->references('id')->on('tags')->onDelete('cascade');
            $table->primary(['post_id', 'tag_id']);
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('post_tag');
    }
}

dagyoe left a reply on Parse Error: Syntax Error, Unexpected '\' • 7 months ago

so now I don't know what do you think

dagyoe left a reply on Parse Error: Syntax Error, Unexpected '\' • 7 months ago

If I get rid \.It's another error Class 'CreatePostTagPivotTable' not found

dagyoe started a new conversation Parse Error: Syntax Error, Unexpected '\' • 7 months ago

When I create pivot table via migration and only error.

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.