This commit is contained in:
Lizandro Guarnizo
2026-01-29 16:40:43 -05:00
parent 75bb6d0aa1
commit 5aea565520
2 changed files with 12 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
<?php
require __DIR__ . '/../vendor/autoload.php';
$app = require_once __DIR__ . '/../bootstrap/app.php';
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
$kernel->bootstrap();
use Spatie\Permission\Models\Permission;
$perms = Permission::where('name','like','%categoria%')->orWhere('name','like','%categor%')->pluck('name')->toArray();
print_r($perms);