This file contains 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\Models; | |
use App\Enums\ConnectionProviderType; | |
use Illuminate\Database\Eloquent\Model; | |
use Database\Factories\ConnectionFactory; | |
use Illuminate\Database\Eloquent\Relations\BelongsTo; | |
use Illuminate\Database\Eloquent\Factories\HasFactory; |
This file contains 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\Support\Synthesizers; | |
use Akaunting\Money\Currency; | |
use Livewire\Mechanisms\HandleComponents\Synthesizers\Synth; | |
class CurrencySynthesizer extends Synth | |
{ | |
public static string $key = 'currency'; |
This file contains 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
name: Deploy to Servers | |
on: | |
push: | |
branches: | |
- production | |
jobs: | |
production-deploy: | |
runs-on: ubuntu-latest |
This file contains 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 | |
if ( ! function_exists('vite')) { | |
/** | |
* Get the Vite instance or Vite asset URL for the given file. | |
*/ | |
function vite(?string $file = null, ?string $buildDirectory = null): Illuminate\Foundation\Vite|string | |
{ | |
$vite = app(Illuminate\Foundation\Vite::class); |
This file contains 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\Frontend\Forms\Components; | |
use Closure; | |
use Filament\Forms\Components\Field; | |
class PinInput extends Field | |
{ | |
protected Closure|int|null $length = null; |
This file contains 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\Frontend\Forms\Components; | |
use Closure; | |
use Akaunting\Money\Money; | |
use Filament\Support\RawJs; | |
use Akaunting\Money\Currency; | |
use Filament\Forms\Components\TextInput; |
This file contains 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
stages: | |
- deploy | |
production-deploy: | |
stage: deploy | |
environment: production | |
only: | |
- /^v.*$/ | |
script: | |
- which ssh-agent || (apt-get update -y && apt-get install openssh-client -y) |
This file contains 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\Support\Synthesizers; | |
use Spatie\LaravelData\Data; | |
use Livewire\Mechanisms\HandleComponents\Synthesizers\Synth; | |
class SpatieLaravelDataSynthesizer extends Synth | |
{ | |
public static string $key = 'spld'; |
This file contains 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\Models; | |
use Sushi\Sushi; | |
use Illuminate\Database\Eloquent\Model; | |
class Country extends Model | |
{ | |
use Sushi; |
This file contains 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
[ | |
{ | |
"name": "Afghanistan", | |
"flag": "🇦🇫", | |
"code": "AF", | |
"dial_code": "+93" | |
}, | |
{ | |
"name": "Åland Islands", | |
"flag": "🇦🇽", |
NewerOlder