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\Console\Commands; | |
| use App\Jobs\SendMessageJob; | |
| use App\Models\User; | |
| use Illuminate\Console\Command; | |
| use Illuminate\Support\Facades\Bus; | |
| class BusQueueCommand extends Command |
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\Imports; | |
| use App\Models\CustomerProfile; | |
| use App\Models\Kota; | |
| use Maatwebsite\Excel\Concerns\Importable; | |
| use Maatwebsite\Excel\Concerns\ToModel; | |
| use Maatwebsite\Excel\Concerns\WithHeadingRow; | |
| use Maatwebsite\Excel\Concerns\WithProgressBar; |
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\Jobs; | |
| use Illuminate\Bus\Queueable; | |
| use Illuminate\Contracts\Queue\ShouldQueue; | |
| use Illuminate\Foundation\Bus\Dispatchable; | |
| use Illuminate\Queue\InteractsWithQueue; | |
| use Illuminate\Queue\SerializesModels; | |
| use Telegram\Bot\Laravel\Facades\Telegram; |
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\Console\Commands; | |
| use App\Models\ActivityLog; | |
| use Illuminate\Console\Command; | |
| use Illuminate\Support\Collection; | |
| use Illuminate\Support\Facades\DB; | |
| class MigrateDataCommand extends Command |
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 | |
| class WebhookController extends Controller | |
| { | |
| /** | |
| * Paymentlink: https://developers.xendit.co/api-reference/#invoice-callback | |
| * Virtual Account: https://developers.xendit.co/api-reference/#virtual-account-callback | |
| * Retail: https://developers.xendit.co/api-reference/#fixed-payment-code-callback | |
| * QRCode: https://developers.xendit.co/api-reference/id/#callback-pembayaran-qr | |
| */ |
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 | |
| class CustomerController extends Controller | |
| { | |
| // | |
| public function index(Request $request) | |
| { | |
| $request->validate([ | |
| 'period' => 'required|string|date_format:Y-m', | |
| 'status' => 'nullable|numeric', |
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\Services; | |
| use App\Helpers\Formatter; | |
| use App\Models\XenditPaymentlink; | |
| use App\Models\XenditQrcode; | |
| use App\Models\XenditRetail; | |
| use App\Models\XenditVirtualaccount; | |
| use Illuminate\Support\Facades\Http; |
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
| #!/bin/bash | |
| IP_SERVER="192.168.1.1" | |
| TELEGRAM_BOT_TOKEN="123:abc" | |
| TELEGRAM_CHAT_ID="-100" | |
| TELEGRAM_TOPIC_ID="1419" | |
| DOWN_PEERS=$(/usr/sbin/asterisk -rx "sip show peers" | grep -E "UNREACHABLE|UNKNOWN") | |
| if [[ -n "$DOWN_PEERS" ]]; then |
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\Rules; | |
| use Closure; | |
| use Illuminate\Contracts\Validation\ValidationRule; | |
| class CoordinateRule implements ValidationRule | |
| { | |
| /** |
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
| mysqldump -u username_database -p 'password_database' your_database | bzip2 -c > ~/directory/filename-$(date +%Y-%m-%d-%H.%M.%S).sql.bz2 |
NewerOlder