Skip to content

Commit

Permalink
Add an authorizable contract.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Aug 29, 2015
1 parent 99afe79 commit b1c79a9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/Illuminate/Contracts/Auth/Access/Authorizable.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace Illuminate\Contracts\Auth\Access;

interface Authorizable
{
/**
* Determine if the entity has a given ability.
*
* @param string $ability
* @param array|mixed $arguments
* @return bool
*/
public function can($ability, $arguments = []);
}

0 comments on commit b1c79a9

Please sign in to comment.