Skip to content

Instantly share code, notes, and snippets.

View mshoaibdev's full-sized avatar
😀
Working..

Muhammad Shoaib mshoaibdev

😀
Working..
View GitHub Profile
@mshoaibdev
mshoaibdev / reverb-instructions.md
Created June 30, 2024 10:34 — forked from lewislarsen/reverb-instructions.md
Instructions for how to setup Laravel Reverb in Production.

Reverb Walkthrough

This is a walkthrough of how to configure Laravel Reverb for production using services like Laravel Forge or Ploi. The first step is nginx configuration changes, then .env changes and finally spinning up your Reverb server.

1. Configuring Nginx

Ensure your nginx site configuration has the following inside the server block:

 location /app {
@simonhamp
simonhamp / AppServiceProvider.php
Last active April 7, 2025 20:15
A pageable Collection implementation for Laravel
<?php
namespace App\Providers;
use Illuminate\Support\Collection;
use Illuminate\Pagination\LengthAwarePaginator;
class AppServiceProvider extends ServiceProvider
{
public function boot()
@zspine
zspine / nationalities.php
Last active October 24, 2023 08:58
PHP Nationalities Array
$nationals = array(
'Afghan',
'Albanian',
'Algerian',
'American',
'Andorran',
'Angolan',
'Antiguans',
'Argentinean',
'Armenian',