base controller for laravel blog project