<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Type extends Model
{
    public function categories()
    {
        return $this->hasMany('App\Category');
    }
}

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Type extends Model
{
    public function categories()
    {
        return $this->hasMany('App\Category');
    }
    public function shop()
    {
        retrun $this->belongTo('App\Shop')
    }
}

Create relationship for types table
feat(type): Create relationship for types table

Create relationship for types table

see #137
