<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Role extends \Spatie\Permission\Models\Role { public function get_permissions(){ return $this->hasMany('App\Models\Permission'); } }