<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
wubbleyou / laravel-access-control-checker example snippets
php/sail artisan wubbleyou:generate-test
php/sail artisan wubbleyou:generate-rule RuleName
namespace App\BoundaryRules;
use Wubbleyou\Boundaries\BoundaryRules\BoundaryRule;
use Illuminate\Routing\Route;
use Tests\TestCase;
class TestingRule extends BoundaryRule {
public function handle(Route $route, TestCase $test, string $routeName): array
{
return ['This test failed because this array is not empty'];
}
}
function(Route $route) {
if($route->getName() !== 'hello') {
return ['Route name is not hello'];
}
return [];
},
php/sail artisan wubbleyou:missing-routes
php/sail artisan wubbleyou:generate-route-trait
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.