This repository was archived by the owner on Feb 4, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 8
8
use Illuminate \Http \Request ;
9
9
use App \Models \Person ;
10
10
use Illuminate \Support \Facades \Log ;
11
+ use App \Models \Family ;
11
12
12
13
class Export extends Controller
13
14
{
@@ -22,7 +23,7 @@ public function __invoke(Request $request)
22
23
ExportGedCom::dispatch ($ file , $ request ->user ());
23
24
24
25
Log::info ("Read gedfile from " . \Storage::disk ("public " )->path ($ file ));
25
- var_dump (\Storage::disk ("public " )->path ($ file ), "controller " );
26
+ // var_dump(\Storage::disk("public")->path($file), "controller");
26
27
return json_encode ([
27
28
'file ' => \Storage::disk ('public ' )->get ($ file ),
28
29
'name ' => $ file ,
Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ public function handle()
41
41
$ p_id = $ this ->user ->person_id ; // person_id
42
42
$ f_id = 0 ; // family_id
43
43
44
- $ tenant = Manager::fromModel ($ this ->user ->company (), $ this ->user );
45
- $ tenant ->connect ();
44
+ // $tenant = Manager::fromModel($this->user->company(), $this->user);
45
+ // $tenant->connect();
46
46
47
47
$ family = Family::where ("husband_id " , $ this ->user ->id )
48
48
->orWhere ("wife_id " , $ this ->user ->id )
@@ -70,7 +70,7 @@ public function handle()
70
70
$ content = $ writer ->getGedcomPerson ();
71
71
72
72
Log::info ("content from getGedcomPerson function => \n $ content " );
73
- var_dump (\Storage::disk ('public ' )->path ($ this ->file ), "job " );
73
+ // var_dump(\Storage::disk('public')->path($this->file), "job");
74
74
\Storage::disk ('public ' )->put ($ this ->file , $ content );
75
75
}
76
76
}
Original file line number Diff line number Diff line change 1490
1490
Route::get ('plans ' , [PlanController::class, 'getPlans ' ]);
1491
1491
});
1492
1492
1493
- Route::middleware (['auth ' , 'api ' ])
1493
+ Route::middleware (['auth ' , 'api ' , ' multitenant ' ])
1494
1494
->group (function () {
1495
1495
Route::get ('get_companies ' , [CompanyIndex::class, 'getCompany ' ]);
1496
1496
Route::get ('get_person ' , [PersonaliasIndex::class, 'getPerson ' ]);
You can’t perform that action at this time.
0 commit comments