This repository was archived by the owner on Jan 6, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +64
-2
lines changed
Expand file tree Collapse file tree 2 files changed +64
-2
lines changed Original file line number Diff line number Diff line change 1- # 3D Printing
1+ # 3D Filament Settings
22
3- Coming Soon
3+ ## Installation
4+
5+ ``` bash
6+ composer install
7+ npm install
8+
9+ composer migrate
10+ composer operations
11+ ```
12+
13+ After that, you need to run the following commands on your local computer:
14+
15+ ``` bash
16+ php artisan orca-slicer:import
17+
18+ # to run dev server
19+ composer dev
20+ ```
21+
22+ ### Development
23+
24+ Create the ` routes/playground.php ` file and insert the following data into it:
25+
26+ ``` php
27+ use App\Data\OrcaSlicer\FilamentData;
28+ use App\Models\Machine;
29+ use App\Models\User;
30+ use App\Services\OrcaSlicer\UserProfileService;
31+ use Illuminate\Support\Facades\Artisan;
32+ use Illuminate\Support\Facades\File;
33+
34+ Artisan::command('foo', function () {
35+ $files = File::allFiles(
36+ storage_path('app/private')
37+ );
38+
39+ $service = app(UserProfileService::class);
40+
41+ $user = User::firstWhere('email', '
[email protected] ');
42+
43+ $machine = Machine::firstWhere('slug', 'k1-max');
44+
45+ foreach ($files as $file) {
46+ if ($file->getExtension() !== 'json') {
47+ continue;
48+ }
49+
50+ $content = file_get_contents($file->getRealPath());
51+
52+ $profile = FilamentData::from($content);
53+
54+ dump(
55+ $profile->externalId
56+ );
57+
58+ $service->import($user, $machine, $profile);
59+ }
60+ });
61+ ```
62+
63+ ## List
64+
65+ [ list] ( .github/images/list.png )
You can’t perform that action at this time.
0 commit comments