Skip to content

Instantly share code, notes, and snippets.

View BenSampo's full-sized avatar

Ben Sampson BenSampo

View GitHub Profile
<?php
namespace App\Enums;
use BenSampo\Enum\Enum;
final class Days extends Enum
{
const Monday = 1;
const Tuesday = 2;
const Wednesday = 3;
<?php
namespace App\Enums;
use BenSampo\Enum\Enum;
final class Months extends Enum
{
const January = 1;
const February = 2;
<?php
namespace Valet\Drivers\Custom;
use Valet\Drivers\ValetDriver;
class PerchRunwayValetDriver extends ValetDriver
{
/**
* Determine if the driver serves the request.
@BenSampo
BenSampo / deploy.sh
Last active April 30, 2024 03:41
Laravel deploy script
# Change to the project directory
cd $FORGE_SITE_PATH
# Turn on maintenance mode
php artisan down || true
# Pull the latest changes from the git repository
# git reset --hard
# git clean -df
git pull origin $FORGE_SITE_BRANCH
<?php
/**
* Filename-based cache busting for WordPress scripts/styles.
*
* Extend your .htaccess file with these lines:
*
* <IfModule mod_rewrite.c>
* RewriteEngine On
* RewriteBase /
*