for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* NOTICE OF LICENSE
*
* Part of the Rinvex Fort Package.
* This source file is subject to The MIT License (MIT)
* that is bundled with this package in the LICENSE file.
* Package: Rinvex Fort Package
* License: The MIT License (MIT)
* Link: https://rinvex.com
*/
namespace Rinvex\Fort\Handlers;
use Rinvex\Fort\Models\Role;
use Rinvex\Fort\Models\User;
use Rinvex\Fort\Models\Ability;
class AbilityHandler
{
/**
* Listen to the Ability created event.
* @param \Rinvex\Fort\Models\Ability $ability
* @return void
public function created(Ability $ability)
$ability
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
//
}
* Listen to the Ability updated event.
public function updated(Ability $ability)
Role::forgetCache();
User::forgetCache();
* Listen to the Ability deleted event.
public function deleted(Ability $ability)
* Listen to the Ability attached event.
public function attached(Ability $ability)
* Listen to the Ability detached event.
public function detached(Ability $ability)
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.