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
@ramaID
ramaID / Instructions.MD
Created January 4, 2025 10:46 — forked from diogogpinto/Instructions.MD
Best Laravel AI Prompt to use with Claude

I have been utilizing artificial intelligence to enhance and optimize my codebases. After evaluating various models, applications, and editors, I find the claude.ai interface with a Pro Account to be the most effective. Here’s the approach I’ve developed to achieve optimal results:

This gist contains a carefully crafted prompt and a script designed to convert your entire Laravel codebase (excluding the resources folder, which can be easily added if needed) into a TXT file with the following structure:

<File Start: ./path/filename.extension> Content of file <End File: ./path/filename.extension>

To implement this method:

@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 }}
@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 / 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"
<?php
/**
* In your Livewire model for the list of items
*/
class ItemList extends Component
{
// rest of component
@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.
{"version":1,"resource":"file:///Users/rama/Dev/kopi/database/migrations/2022_05_23_091744_drop_role_pengawas.php","entries":[{"id":"FAyG.php","timestamp":1653272392142}]}