Skip to content
This repository was archived by the owner on Jan 6, 2026. It is now read-only.

Commit 1924c52

Browse files
Filled README.md
1 parent e8d25a8 commit 1924c52

File tree

2 files changed

+64
-2
lines changed

2 files changed

+64
-2
lines changed

.github/images/list.png

83.7 KB
Loading

README.md

Lines changed: 64 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,65 @@
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)

0 commit comments

Comments
 (0)