title: Laravel Blade: What is best practice for adding javascript in blade files?
body: <p>I inherited a Laravel project that has many blade files with javascript inside  tags within the blade file.  The issue is that there is a lot of repetitive JS logic so I'd like to extract the JS and create JS files to include in the blade? Example: <code>&lt;script src="{{ asset('js/components/file.js')}}"&gt;&lt;/script&gt;</code> 
   Is this the best practice for blade files or is it expected to be have the JS within the actual file?</p>