Skip to content

Instantly share code, notes, and snippets.

View petericebear's full-sized avatar
🎯
Focusing on ElasticSearch and Laravel

Peter Steenbergen petericebear

🎯
Focusing on ElasticSearch and Laravel
View GitHub Profile
@petericebear
petericebear / swapon recipe for forge.laravel.com
Created April 18, 2016 19:02
Adds a permanent 4gb swapfile
fallocate -l 4G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo '/swapfile none swap sw 0 0' >> /etc/fstab
@petericebear
petericebear / pivot-generator.php
Created March 16, 2016 09:25 — forked from laracasts/pivot-generator.php
Artisan Pivot Migration Generator
<?php
namespace App\Console\Commands;
use Illuminate\Console\GeneratorCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
class PivotMigrationMakeCommand extends GeneratorCommand
{
@petericebear
petericebear / .php_cs
Last active October 3, 2024 21:26
Laravel 5.x php-cs-fixer config file
<?php
$finder = Symfony\Component\Finder\Finder::create()
->notPath('bootstrap/cache')
->notPath('storage')
->notPath('vendor')
->in(__DIR__)
->name('*.php')
->notName('*.blade.php')
->ignoreDotFiles(true)