public function articles()
{
return $this->morphedByMany('App\Article', 'categoryable');
}
Column not found: 1054 Unknown column 'categoryables.articles_category_id' in 'where clause' (SQL: select count(*) as aggregate from `articles` inner join
Schema::create('categoryables', function (Blueprint $table) {
$table->integer('articlescategory_id');
$table->integer('categoryable_id');
$table->string('categoryable_type');