Skip to content

Instantly share code, notes, and snippets.

View websmithcode's full-sized avatar
💻

@WSCode websmithcode

💻
View GitHub Profile
@websmithcode
websmithcode / deploy-to-gh-pages.sh
Last active June 23, 2024 07:28
NuxtJs static deployment script for GithubPages to gh-pages branch
# If has not commited changes - stopr script
if [ -n "$(git status --porcelain)" ]; then
echo "Please commit your changes before deploying"
exit 1
fi
# If has no node_modules - install it
if [ ! -d "node_modules" ]; then
bun install
fi
@websmithcode
websmithcode / AddressComponent.php
Last active December 11, 2023 21:52
FilamentPHP Composite address field
<?php
namespace App\Filament\Resources\Components;
use Filament\Forms\Components;
use Filament\Forms\Components\Grid;
use Filament\Forms\Components\Group;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Set;
use Illuminate\Support\Str;
use LiveWire\Component as Livewire;