Basic article fetcher
This commit is contained in:
parent
c5a926446a
commit
1baac41551
3 changed files with 16 additions and 1 deletions
3
.env
Normal file
3
.env
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
LEMMY_TOKEN=
|
||||||
|
LEMMY_INSTANCE=
|
||||||
|
TARGET_COMMUNITY=
|
||||||
12
bootstrap/config.php
Normal file
12
bootstrap/config.php
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
use Dotenv\Dotenv;
|
||||||
|
|
||||||
|
$dotenv = Dotenv::createImmutable(__DIR__ . '/../');
|
||||||
|
$dotenv->safeLoad();
|
||||||
|
|
||||||
|
return [
|
||||||
|
'lemmy' => [
|
||||||
|
'community' => $_ENV['LEMMY_COMMUNITY'] ?? 'default',
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Domain\Articles;
|
namespace Feddev\LemmyArticlePoster\Domain\Articles;
|
||||||
|
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue