source: app/Models/Permission.php@ ff9da8b

Last change on this file since ff9da8b was 0924b6c, checked in by Özkan İliyaz <iliyaz_96@…>, 4 years ago

initial commit

  • Property mode set to 100644
File size: 251 bytes
RevLine 
[0924b6c]1<?php
2
3namespace App\Models;
4
5use Illuminate\Database\Eloquent\Model;
6
7class Permission extends Model
8{
9 protected $table = "permissions";
10
11 public function role() {
12 return $this->belongsToMany(Role::class, "roles_permissions");
13 }
14}
Note: See TracBrowser for help on using the repository browser.