Skip to content

Instantly share code, notes, and snippets.

Avatar
💻
rails new unicorn

Nik Saiful Anuar sanikkenway

💻
rails new unicorn
View GitHub Profile
@ejlocop
ejlocop / ServeCommand.php
Created Jan 31, 2018
set a default laravel php artisan serve host and port.
View ServeCommand.php
<?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
kkiernan / ArrayPaginator.php
Last active Dec 21, 2017
A reusable helper class for pagination of array items in Laravel.
View ArrayPaginator.php
<?php
namespace App\Http\Utilities;
use Illuminate\Http\Request;
use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\Support\Collection;
class ArrayPaginator
{
@jasonrudolph
jasonrudolph / 00-about-search-api-examples.md
Last active Jun 5, 2021
5 entertaining things you can find with the GitHub Search API
View 00-about-search-api-examples.md