'. ''; default: throw new \Exception('Unknown CSS: '.$expression); } }); Blade::directive('js',function($expression) { switch (trim($expression,"'")) { case 'datatables': return ''. ''. ''. ''; case 'highcharts': return ''. ''. ''. ''. ''. ''; default: throw new \Exception('Unknown JS: '.$expression); } }); } }