<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class ShopAssignment extends Model
{
    //
}

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class ShopAssignment extends Model
{
    protected $fillable = [
        'shop_id',
        'user_id',
        'roles_id'
    ];

    public function users()
    {
        return $this->hasMany('App\User');
    }
    public function roles()
    {
        return $this->hasMany('App\Role');
    }
    public function shops()
    {
        retrun $this->hasMany('App\Shop')
    }
}

Create relationship for shopassignment table
feat(shopassignment): Create relationship for shopassignment table

Create relationship for shopassignment table

see #138
