Skip to content

Instantly share code, notes, and snippets.

View juanparati's full-sized avatar

Juan Lago juanparati

  • Aarhus (Denmark)
View GitHub Profile
@Artistan
Artistan / EloquentUser.php
Last active May 3, 2024 17:47
Paginator with relations... load the relations on the model
<?php
namespace App;
use Illuminate\Pagination\LengthAwarePaginator;
use App\Http\Controllers\Controller;
class EloquentUser extends Controller {
// these will work for eloquent, but not with a scout->search since scout is not building a query.
public function paginate($query)
@maehler
maehler / sticky.css
Last active December 17, 2015 14:39
A simple setup for a sticky footer (http://ryanfait.com/sticky-footer/) using the unsemantic CSS framwork (http://unsemantic.com/).
html, body { height: 100%; }
.wrapper {
min-height: 100%;
height: auto !important;
height: 100%;
margin: 0 auto -50px;
}
.grid-container {