[5.6] No callable array syntax for action() in 5.6

action() doesn't support callable array syntax in 5.6. This feature is 5.7+ only
This commit is contained in:
Sergey Pankov 2018-09-30 10:15:51 +03:00 committed by GitHub
parent 632041b128
commit 7ec9a201fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 6 deletions

View File

@ -126,12 +126,6 @@ The `action` function generates a URL for the given controller action. You do no
$url = action('HomeController@index');
You may also reference actions with a "callable" array syntax:
use App\Http\Controllers\HomeController;
$url = action([HomeController::class, 'index']);
If the controller method accepts route parameters, you may pass them as the second argument to the function:
$url = action('UserController@profile', ['id' => 1]);