## 01: Create a button, input, and image preview holder if you are going to choose images. Specify the id to the input and image preview by data-input and data-preview. ````
Choose
```` ## 02: Import lfm.js(run php artisan vendor:publish if you need). ```` ```` ## 03: Init filemanager with type. (requires jQuery) ```` $('#lfm').filemanager('image'); ```` #### OR ```` $('#lfm').filemanager('file'); ```` ## 04: Domain can be specified in the second parameter(optional, but will be required when developing on Windows mechines) : ```` var route_prefix = "url-to-filemanager"; $('#lfm').filemanager('image', {prefix: route_prefix}); ```` #### example ```` var route_prefix = 'admin/file-manager'; $('#lfm').filemanager('image',{prefix: route_prefix}); ````