Initial commit

This commit is contained in:
lizandrogd
2023-07-26 08:28:13 -05:00
commit 8ce210f27c
1207 changed files with 36066 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Permiso extends Model
{
use HasFactory;
protected $fillable = [
'vista',
'usuario_id',
'rol_id'
];
public function rol(){
return $this ->belongsTo(Role::class);
}
public function usuario(){
return $this ->belongsTo(User::class);
}
}