2015-08-29 16:03:42 +02:00
|
|
|
<?php
|
|
|
|
|
2015-09-10 20:31:09 +02:00
|
|
|
namespace BookStack;
|
2015-08-29 16:03:42 +02:00
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
class Permission extends Model
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The roles that belong to the permission.
|
|
|
|
*/
|
|
|
|
public function roles()
|
|
|
|
{
|
2015-09-10 20:31:09 +02:00
|
|
|
return $this->belongsToMany('BookStack\Permissions');
|
2015-08-29 16:03:42 +02:00
|
|
|
}
|
|
|
|
}
|