All Laravel controllers must extend the basic class of the controller that exists in Laravel by default. You can read more details about writing controllers at .