if(!function_exists('freeRedirect')){
function freeRedirect($to = '/'){
throw new \Illuminate\Http\Exception\HttpResponseException(redirect($to));
}
}
Hmmm that looks like witch craft to me. I am going to give that a try.
Failing that, is it just a given that the first function calls to a controller just has all other function calls contained inside of a try catch? and then throw them all from lower down?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community