File tree 4 files changed +13
-3
lines changed 4 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,12 @@ Vue.use(FileManager, {
73
73
}
74
74
```
75
75
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
+
76
82
Now vue component is registered and you can use it in your app
77
83
```
78
84
<file-manager></file-manager>
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " laravel-file-manager" ,
3
- "version" : " 2.0.2 " ,
3
+ "version" : " 2.0.3 " ,
4
4
"description" : " File manager for Laravel" ,
5
5
"keywords" : [
6
6
" laravel" ,
Original file line number Diff line number Diff line change @@ -35,8 +35,12 @@ export default {
35
35
*/
36
36
initBaseUrl ( state ) {
37
37
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
39
40
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 ;
40
44
} else {
41
45
let baseUrl = `${ window . location . protocol } //${ window . location . hostname } ` ;
42
46
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export default {
11
11
state ( ) {
12
12
return {
13
13
// App version
14
- version : '2.0.2 ' ,
14
+ version : '2.0.3 ' ,
15
15
16
16
// this headers will be merged with default headers
17
17
headers : { } ,
You can’t perform that action at this time.
0 commit comments