Skip to content

Instantly share code, notes, and snippets.

rails new unicorn

Nik Saiful Anuar sanikkenway

rails new unicorn
View GitHub Profile
ejlocop / ServeCommand.php
Created Jan 31, 2018
set a default laravel php artisan serve host and port.
View ServeCommand.php
namespace Illuminate\Foundation\Console;
use Illuminate\Console\Command;
use Symfony\Component\Process\ProcessUtils;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Process\PhpExecutableFinder;
class ServeCommand extends Command
kkiernan / ArrayPaginator.php
Last active Dec 21, 2017
A reusable helper class for pagination of array items in Laravel.
View ArrayPaginator.php
namespace App\Http\Utilities;
use Illuminate\Http\Request;
use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\Support\Collection;
class ArrayPaginator
jasonrudolph /
Last active Jun 5, 2021
5 entertaining things you can find with the GitHub Search API