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; | |
/* | |
|-------------------------------------------------------------------------- |
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
<x-guest-layout> | |
<header class="w-full py-4 bg-red-600 mb-20"> | |
<div class="max-w-7xl mx-auto flex justify-between"> | |
<h2 class="text-white text-xl font-bold">{{$restaurant?->restaurant}}</h2> | |
<p> | |
<span class="text-white font-bold">{{$restaurant?->phone}} / {{$restaurant?->phone}} </span> | |
</p> | |
</div> | |
</header> |
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\Livewire\Tenants\RestaurantMenu; | |
use App\Models\Tenant\Menu; | |
use Livewire\Component; | |
class Delete extends Component | |
{ | |
public $menu; |
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\Livewire\Tenants\RestaurantMenu; | |
use App\Models\Tenant\Restaurant; | |
use App\Models\Tenant\Menu; | |
use Livewire\Component; | |
use Livewire\WithFileUploads; | |
class Item extends Component |
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\Livewire\Tenants\RestaurantMenu; | |
use App\Models\Tenant\Menu; | |
use Livewire\Component; | |
class Index extends Component | |
{ | |
protected $listeners = ['menuItemUpdated' => '$refresh', 'menuItemDeleted' => '$refresh']; |