mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
Fixed upload parh for asset models
This commit is contained in:
parent
704c696711
commit
c635db0a76
|
@ -29,7 +29,7 @@ class AssetModelsTransformer
|
||||||
'id' => (int) $assetmodel->manufacturer->id,
|
'id' => (int) $assetmodel->manufacturer->id,
|
||||||
'name'=> e($assetmodel->manufacturer->name)
|
'name'=> e($assetmodel->manufacturer->name)
|
||||||
] : null,
|
] : null,
|
||||||
'image' => ($assetmodel->image!='') ? Storage::disk('public')->url('assetmodels/'.e($assetmodel->image)) : null,
|
'image' => ($assetmodel->image!='') ? Storage::disk('public')->url('models/'.e($assetmodel->image)) : null,
|
||||||
'model_number' => e($assetmodel->model_number),
|
'model_number' => e($assetmodel->model_number),
|
||||||
'depreciation' => ($assetmodel->depreciation) ? [
|
'depreciation' => ($assetmodel->depreciation) ? [
|
||||||
'id' => (int) $assetmodel->depreciation->id,
|
'id' => (int) $assetmodel->depreciation->id,
|
||||||
|
|
|
@ -48,11 +48,11 @@ class SettingsServiceProvider extends ServiceProvider
|
||||||
});
|
});
|
||||||
|
|
||||||
\App::singleton('models_upload_path', function(){
|
\App::singleton('models_upload_path', function(){
|
||||||
return 'assetmodels/';
|
return 'models/';
|
||||||
});
|
});
|
||||||
|
|
||||||
\App::singleton('models_upload_url', function(){
|
\App::singleton('models_upload_url', function(){
|
||||||
return 'assetmodels/';
|
return 'models/';
|
||||||
});
|
});
|
||||||
|
|
||||||
// Categories
|
// Categories
|
||||||
|
|
|
@ -52,7 +52,7 @@ $config = [
|
||||||
'public' => [
|
'public' => [
|
||||||
'driver' => 'local',
|
'driver' => 'local',
|
||||||
'root' => storage_path('app/public'),
|
'root' => storage_path('app/public'),
|
||||||
'url' => env('APP_URL').'/storage',
|
'url' => env('APP_URL').'/uploads',
|
||||||
'visibility' => 'public',
|
'visibility' => 'public',
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue