- Fresh Ubuntu/Debian server installation
- Root or sudo access
- Basic familiarity with command line
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 | |
| // Don't forget to autoload this in composer.json or create a service provider | |
| if (!function_exists('generate_username')) { | |
| /** | |
| * Generate a unique username from email or name | |
| */ | |
| function generate_username($input, $model = 'App\Models\User', $column = 'username') | |
| { | |
| // Extract base from email or clean the name |
Cloudflare Tunnels provide a secure way to expose your local services to the internet without opening ports 80/443 on your firewall. Traffic flows through Cloudflare's network directly to your services via an encrypted tunnel.
- Ubuntu server
- Cloudflare account with a domain added
- Admin/sudo access on your server
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 Illuminate\Console\Command; | |
| use Illuminate\Support\Facades\Cache; | |
| class ClearOptimize extends Command | |
| { | |
| /** |