Skip to content

Commit

Permalink
43. add part for media backup & add debug instagram api
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrakovich committed Oct 28, 2024
1 parent 449e9a5 commit a17c55c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/app/Console/Commands/BackupMediaCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,17 @@ private function getChunks(): array
storage_path('app/media/products/3/38'),
storage_path('app/media/products/3/39'),
],
'products-4_0-4' => [
'products-4_0-2' => [
storage_path('app/media/products/4/40'),
storage_path('app/media/products/4/41'),
storage_path('app/media/products/4/42'),
],
'products-4_3-5' => [
storage_path('app/media/products/4/43'),
storage_path('app/media/products/4/44'),
],
'products-4_5-9' => [
storage_path('app/media/products/4/45'),
],
'products-4_6-9' => [
storage_path('app/media/products/4/46'),
storage_path('app/media/products/4/47'),
storage_path('app/media/products/4/48'),
Expand Down
9 changes: 8 additions & 1 deletion src/app/Http/Controllers/DebugController.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use App\Models\Orders\OfflineOrder;
use App\Models\Orders\Order;
use App\Models\User\User;
use App\Services\InstagramService;
use App\Services\Order\OrderItemInventoryService;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Mail;
Expand All @@ -14,8 +15,14 @@

class DebugController extends Controller
{
public function index()
public function index(InstagramService $instagramService)
{


dd(
$instagramService->getPosts()
);

// Mail::raw('test email sending', function ($message) {
// $message->to('dmitrakovich.andrey@yandex.by');
// });
Expand Down

0 comments on commit a17c55c

Please sign in to comment.