Update BaseController.php

fixed to be string