restructured models directory and namespaces to include an extra directory for sorting

This commit is contained in:
2018-12-01 21:46:04 -06:00
parent 5c073d85ee
commit 67e606ad54
38 changed files with 168 additions and 58 deletions
+33
View File
@@ -0,0 +1,33 @@
<?php
namespace App\Models\User;
use Illuminate\Database\Eloquent\Model;
class UserPermission extends Model
{
/**
* The attributes that are mass assignable
*
* @var array
*/
protected $fillable = [
'character_id',
'permission',
];
protected $table = 'user_permissions';
/**
* The attributes that should be hidden for arrays
*
* @var array
*/
protected $hidden = [];
protected $guarded = [];
public function user() {
return $this->belongsTo(User::class);
}
}