Sistemato path per salvataggio files
This commit is contained in:
parent
1df6d80f89
commit
b4414a9534
@ -16,7 +16,7 @@ class GenDoc extends Model
|
|||||||
|
|
||||||
public static function saveDocument($data){
|
public static function saveDocument($data){
|
||||||
|
|
||||||
$filename=$data->file('filename')->store(asset(self::getEntityFolder($data['entity'])));
|
$filename=$data->file('filename')->store(self::getEntityFolder($data['entity']));
|
||||||
DB::table('gen_docs')
|
DB::table('gen_docs')
|
||||||
->insert([
|
->insert([
|
||||||
'entity'=>$data['entity'],
|
'entity'=>$data['entity'],
|
||||||
|
|||||||
@ -13,7 +13,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'default' => env('FILESYSTEM_DISK', 'local'),
|
'default' => env('FILESYSTEM_DISK', 'public'),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user