for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
class PermissionProviderBuildTask extends BuildTask
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
protected $title = 'Clean up Permissions';
protected $description = 'Goes through all the permissions and cleans them up.';
protected $_permissions = array();
public function run($request)
$permissions = Permission::get();
foreach ($permissions as $permission) {
if ($permission->Arg == 0 && $permission->Type == 1) {
if (isset($this->_permissions[$permission->Code])) {
DB::alteration_message("Deleting double permission with code: ".$permission->Code, 'deleted');
$permission->delete();
}
$this->_permissions[$permission->Code];
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.