Skip to content

Instantly share code, notes, and snippets.

View ramaID's full-sized avatar
🏠
Working from home

Qisthi Ramadhani ramaID

🏠
Working from home
View GitHub Profile
{"version":1,"resource":"file:///Users/rama/Dev/kopi/database/migrations/2022_05_23_091744_drop_role_pengawas.php","entries":[{"id":"FAyG.php","timestamp":1653272392142}]}
@ramaID
ramaID / HasLinks.php
Created October 14, 2020 14:32 — forked from tanthammar/HasLinks.php
No more controllers! Only Laravel LiveWire SPA routes and a handy Eloquent Model trait.
<?php
/**
* In your Livewire model for the list of items
*/
class ItemList extends Component
{
// rest of component
@ramaID
ramaID / starting-new-laravel-project
Last active December 13, 2020 16:28
Starting new Laravel project
laravel new {projectName}
cd {projectName}
composer require --dev barryvdh/laravel-debugbar beyondcode/laravel-query-detector friendsofphp/php-cs-fixer nunomaduro/larastan phpro/grumphp
Setup config for code quality (php-cs-fixer, larastan, grumphp) in https://laravolt.dev/guidelines/code-quality/
php artisan vendor:publish --provider="Barryvdh\Debugbar\ServiceProvider"
@ramaID
ramaID / FullCoverageTest.php
Last active March 9, 2024 10:09
Berkas Test dengan PestPHP untuk Mencapai 100% Code Coverage di Aplikasi Laravel v10
<?php
use App\Console\Kernel;
use App\Http\Middleware\RedirectIfAuthenticated;
use App\Models\User;
use App\Providers\BroadcastServiceProvider;
use App\Providers\RouteServiceProvider;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Application;
use Illuminate\Http\RedirectResponse;
@ramaID
ramaID / deploy.yml
Created November 9, 2024 08:06 — forked from jonerickson/deploy.yml
Vapor Deploy
name: Deploy Application
env:
SIDECAR_APP_NAME: ${{ secrets.SIDECAR_APP_NAME }}
SIDECAR_ACCESS_KEY_ID: ${{ secrets.SIDECAR_ACCESS_KEY_ID }}
SIDECAR_SECRET_ACCESS_KEY: ${{ secrets.SIDECAR_SECRET_ACCESS_KEY }}
SIDECAR_REGION: ${{ secrets.SIDECAR_REGION }}
SIDECAR_ARTIFACT_BUCKET_NAME: ${{ secrets.SIDECAR_ARTIFACT_BUCKET_NAME }}
SIDECAR_EXECUTION_ROLE: ${{ secrets.SIDECAR_EXECUTION_ROLE }}
VAPOR_API_TOKEN: ${{ secrets.VAPOR_API_TOKEN }}