Basic article fetcher

This commit is contained in:
myrmidex 2025-06-28 12:38:35 +02:00
parent c5a926446a
commit 1baac41551
3 changed files with 16 additions and 1 deletions

3
.env Normal file
View file

@ -0,0 +1,3 @@
LEMMY_TOKEN=
LEMMY_INSTANCE=
TARGET_COMMUNITY=

12
bootstrap/config.php Normal file
View file

@ -0,0 +1,12 @@
<?php
use Dotenv\Dotenv;
$dotenv = Dotenv::createImmutable(__DIR__ . '/../');
$dotenv->safeLoad();
return [
'lemmy' => [
'community' => $_ENV['LEMMY_COMMUNITY'] ?? 'default',
],
];

View file

@ -1,6 +1,6 @@
<?php
namespace Domain\Articles;
namespace Feddev\LemmyArticlePoster\Domain\Articles;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;