Skip to content

Instantly share code, notes, and snippets.

View joffreycarle's full-sized avatar

Joffrey Carle joffreycarle

View GitHub Profile
@simonhamp
simonhamp / AppServiceProvider.php
Last active September 19, 2024 14:10
A pageable Collection implementation for Laravel
<?php
namespace App\Providers;
use Illuminate\Support\Collection;
use Illuminate\Pagination\LengthAwarePaginator;
class AppServiceProvider extends ServiceProvider
{
public function boot()
@rufhausen
rufhausen / Push.php
Last active August 10, 2021 08:13
Laravel Artisan command for pushing to remotes via git
<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
class Push extends Command {
/**
* The console command name.