ruslanashaari
9/23/2017 - 2:45 AM

call route without function with invoke

call route without function with invoke (only for single function in controller)

<?php

//in controller if there is only a single function

public function __invoke(){
}



//in routes just call controller name without @(function name)