Call to undefined method ::beforeexecuteroute()