laravel faryar/cdnjs is a laravel blade package for fast and cleaner laravel programming.
by using this package your app will get libraries from
cdnjs.com and save library link in storage for next time
in the other words just in first time package will request to cdnjs for check package exists and get link
composer require faryar/cdnjs
@cdnjs('library_name')
@cdnjs('bootstrap.css')
@cdnjs('jquery.js')
@cdnjs('jquery.min.js')
or use array
@cdnjs(['jquery.min.js','bootstrap.css','select2.js,'vue.js'])
<script src="library address"></script>
<link rel="stylesheet" href="library address" />
TODO
- support auto laod to laravel provider
- array support
- detect local libraries
- create new config file
- select version of library
- download libraries offline of library