Last active
September 23, 2017 02:46
-
-
Save ruslanashaari/9e3835cbf94f891ecf9ffd776c59dadd to your computer and use it in GitHub Desktop.
call route without function with invoke (only for single function in controller)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//in controller if there is only a single function | |
public function __invoke(){ | |
} | |
//in routes just call controller name without @(function name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment