| 1 | <?php namespace Arcanesoft\Auth\Http\Controllers\Foundation; |
||
| 11 | class RolesController extends FoundationController |
||
| 12 | { |
||
| 13 | /* ------------------------------------------------------------------------------------------------ |
||
| 14 | | Constructor |
||
| 15 | | ------------------------------------------------------------------------------------------------ |
||
| 16 | */ |
||
| 17 | /** |
||
| 18 | * Instantiate the controller. |
||
| 19 | */ |
||
| 20 | public function __construct() |
||
| 27 | |||
| 28 | /* ------------------------------------------------------------------------------------------------ |
||
| 29 | | Main Functions |
||
| 30 | | ------------------------------------------------------------------------------------------------ |
||
| 31 | */ |
||
| 32 | public function index() |
||
| 36 | |||
| 37 | public function create() |
||
| 41 | |||
| 42 | public function store() |
||
| 46 | |||
| 47 | public function show($roleId) |
||
| 51 | |||
| 52 | public function edit($roleId) |
||
| 56 | |||
| 57 | public function update($roleId) |
||
| 61 | |||
| 62 | public function delete($roleId) |
||
| 66 | } |
||
| 67 |
If you implement
__calland you know which methods are available, you can improve IDE auto-completion and static analysis by adding a @method annotation to the class.This is often the case, when
__callis implemented by a parent class and only the child class knows which methods exist: