I keep getting this error
syntax error, unexpected '['
it is in the line 1 of the following code snippet:
Route.php
Route::get('api/test/{input}', [
'before' => 'checkauth',
"as" => "test",
"uses" => "TestController@show"
]);
what is wrong?