@@ -68,7 +68,7 @@ |
||
68 | 68 | // Log::info("content from getGedcomPerson function => \n $content"); |
69 | 69 | // var_dump(\Storage::disk('public')->path($this->file), "job"); |
70 | 70 | $manager->storage()->put($this->file, $content); |
71 | - // $filePath = 'public/' . $this->file; |
|
71 | + // $filePath = 'public/' . $this->file; |
|
72 | 72 | // $filePath = $manager->storage()->path($filePath); |
73 | 73 | // chmod_r('/home/genealogia/domains/api.genealogia.co.uk/genealogy/storage/tenants/'); |
74 | 74 | exec("chmod -R 0777 ". storage_path('/tenants/')); |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | public function handle() |
36 | 36 | { |
37 | 37 | $p_id = $this->user->person_id; // person_id |
38 | - $f_id = 0; // family_id |
|
38 | + $f_id = 0; // family_id |
|
39 | 39 | |
40 | 40 | // $tenant = Manager::fromModel($this->user->company(), $this->user); |
41 | 41 | // $tenant->connect(); |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | $person = Person::where("child_in_family_id", $this->user->id)->first(); |
49 | 49 | |
50 | 50 | if ($person != null) { |
51 | - $f_id=$person->child_in_family_id; |
|
51 | + $f_id = $person->child_in_family_id; |
|
52 | 52 | } else { |
53 | 53 | $f_id = 0; |
54 | 54 | } |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | // $filePath = 'public/' . $this->file; |
72 | 72 | // $filePath = $manager->storage()->path($filePath); |
73 | 73 | // chmod_r('/home/genealogia/domains/api.genealogia.co.uk/genealogy/storage/tenants/'); |
74 | -exec("chmod -R 0777 ". storage_path('/tenants/')); |
|
74 | +exec("chmod -R 0777 ".storage_path('/tenants/')); |
|
75 | 75 | //exec ("find /home/genealogia/ap -type d -exec chmod 0750 {} +"); |
76 | 76 | //exec ("find /path/to/folder -type f -exec chmod 0644 {} +"); |
77 | 77 | // var_dump($path,'path'); |
@@ -23,7 +23,7 @@ |
||
23 | 23 | $manager = Manager::fromModel($request->user()->company(), $request->user()); |
24 | 24 | ExportGedCom::dispatchSync($filePath, $request->user()); |
25 | 25 | |
26 | - $filePath = $manager->storage()->path($filePath); |
|
26 | + $filePath = $manager->storage()->path($filePath); |
|
27 | 27 | Log::info("Read gedfile from ". $manager->storage()->path($filePath)); |
28 | 28 | // var_dump($filePath); |
29 | 29 | return json_encode([ |
@@ -19,12 +19,12 @@ |
||
19 | 19 | $file = env('APP_NAME').date('_Ymd_').$ts.'.ged'; |
20 | 20 | $file = str_replace(' ', '', $file); |
21 | 21 | $file = str_replace("'", '', $file); |
22 | - $filePath = 'public/' . $file; |
|
22 | + $filePath = 'public/'.$file; |
|
23 | 23 | $manager = Manager::fromModel($request->user()->company(), $request->user()); |
24 | 24 | ExportGedCom::dispatchSync($filePath, $request->user()); |
25 | 25 | |
26 | 26 | $filePath = $manager->storage()->path($filePath); |
27 | - Log::info("Read gedfile from ". $manager->storage()->path($filePath)); |
|
27 | + Log::info("Read gedfile from ".$manager->storage()->path($filePath)); |
|
28 | 28 | // var_dump($filePath); |
29 | 29 | return json_encode([ |
30 | 30 | // 'file' => $manager->storage()->path($filePath) , |