/** * @param Tag $t * @param $controllerName * @return string */ private function getViewCss(Tag $t, $controllerName) { if (file_exists(public_path('css/' . $controllerName . '.css'))) { return $t->link(a::rel('stylesheet'), a::href(asset('css/' . $controllerName . '.css'))); } else { return ''; } }