hserusv
hserusv

Reputation: 996

add multiple assets in laravel like multiple style files and script files

can i able to add multiple style or script files in single ? Normally we add a single style sheet like as follow

HTML::style('css/style1.css');

for another style we should

 HTML::style('css/style2.css');

But i need to use both files or multiple files as asset in laravel.

Upvotes: 0

Views: 772

Answers (1)

Ronald Hulshof
Ronald Hulshof

Reputation: 2056

I recommend Laravel Guard. It's best practice to use concatenated and minified js/css files anyway.

As a bonus, Laravel Guard handles stylesheets and js-files in exactly the way you requested.

Upvotes: 1

Related Questions