This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Filament\Resources; | |
| use App\Filament\Resources\CategoryResource\Pages; | |
| use App\Filament\Resources\CategoryResource\RelationManagers; | |
| use App\Models\Category; | |
| use Filament\Tables\Columns\TextColumn; | |
| use Filament\Forms\Components\TextInput; | |
| use Filament\Resources\Form; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Http\Controllers\API; | |
| use App\Http\Controllers\Controller; | |
| use App\Models\Book; | |
| use Illuminate\Http\Request; | |
| use MiniLeanpub\Application\UseCases\Book\CreateBook\CreateBookUseCase; | |
| use MiniLeanpub\Application\UseCases\Book\CreateBook\DTO\BookCreateInputDTO; | |
| use MiniLeanpub\Infrastructure\Repository\Book\BookEloquentRepository; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Tests\MiniLeanpub\Integration\Application\UseCases\ConvertBookToPDF; | |
| use Tests\MiniLeanpub\LaravelTestCase; | |
| use App\Models\Book; | |
| use MiniLeanpub\Application\UseCases\Book\ConvertBookToPDF\ConvertBookToPDFUseCase; | |
| use MiniLeanpub\Application\UseCases\Book\ConvertBookToPDF\DTO\ConvertBookToPDFInputDTO; | |
| use MiniLeanpub\Infrastructure\Queue\Book\BookConverterQueueSender; | |
| use MiniLeanpub\Infrastructure\Repository\Book\BookEloquentRepository; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace MiniLeanpub\Infrastructure\Queue; | |
| use App\Jobs\Book\ConvertBookJob; | |
| use MiniLeanpub\Domain\Book\Queue\QueueInterface; | |
| class BookConverterQueueSender implements QueueInterface | |
| { | |
| public function sendToQueue(string $bookPath): bool |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace MiniLeanpub\Application\UseCases\Book\ConvertBookToPDF\DTO; | |
| use MiniLeanpub\Application\UseCases\Shared\InteractorDTO; | |
| class ConvertBookToPDFInputDTO extends InteractorDTO | |
| { | |
| public function __construct(public string $bookCode) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace MiniLeanpub\Domain\Book\Entity; | |
| class Book | |
| { | |
| public function __construct( | |
| private ?string $id, | |
| private ?string $title, | |
| private ?string $description, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt install -y \ | |
| lsb-release \ | |
| ca-certificates \ | |
| apt-transport-https \ | |
| software-properties-common |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export default { | |
| setData(key, value) { | |
| localStorage.setItem(key, value); | |
| }, | |
| getData(key) { | |
| return localStorage.getItem(key); | |
| }, | |
| removeData(key) { | |
| localStorage.removeItem(key); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "editor.formatOnSave": true, | |
| "[vue]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | |
| }, | |
| "[html]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | |
| }, | |
| "[javascript]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| use Illuminate\Support\Facades\Route; | |
| use Stancl\Tenancy\Middleware\InitializeTenancyByDomain; | |
| use Stancl\Tenancy\Middleware\PreventAccessFromCentralDomains; | |
| /* | |
| |-------------------------------------------------------------------------- |