File tree Expand file tree Collapse file tree 4 files changed +13
-3
lines changed Expand file tree Collapse file tree 4 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,12 @@ Vue.use(FileManager, {
7373}
7474```
7575
76+ In development mode you can change base url for application - add this param in your laravel .env file
77+
78+ ```
79+ MIX_LFM_BASE_URL=http://my-url.loc/file-manager/
80+ ```
81+
7682Now vue component is registered and you can use it in your app
7783```
7884<file-manager></file-manager>
Original file line number Diff line number Diff line change 11{
22 "name" : " laravel-file-manager" ,
3- "version" : " 2.0.2 " ,
3+ "version" : " 2.0.3 " ,
44 "description" : " File manager for Laravel" ,
55 "keywords" : [
66 " laravel" ,
Original file line number Diff line number Diff line change @@ -35,8 +35,12 @@ export default {
3535 */
3636 initBaseUrl ( state ) {
3737 if ( ! state . baseUrl ) {
38- if ( process . env . NODE_ENV === 'development' ) {
38+ if ( process . env . NODE_ENV === 'development' && process . env . VUE_APP_AXIOS_BASE_URL ) {
39+ // vue .env
3940 state . baseUrl = process . env . VUE_APP_AXIOS_BASE_URL ;
41+ } else if ( process . env . NODE_ENV === 'development' && process . env . MIX_LFM_BASE_URL ) {
42+ // laravel .env
43+ state . baseUrl = process . env . MIX_LFM_BASE_URL ;
4044 } else {
4145 let baseUrl = `${ window . location . protocol } //${ window . location . hostname } ` ;
4246
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export default {
1111 state ( ) {
1212 return {
1313 // App version
14- version : '2.0.2 ' ,
14+ version : '2.0.3 ' ,
1515
1616 // this headers will be merged with default headers
1717 headers : { } ,
You can’t perform that action at this time.
0 commit comments