- https://speakerdeck.com/willroth/50-laravel-tricks-in-50-minutes
- https://www.reddit.com/r/laravel/comments/3to60i/50_laravel_tricks/
- 1. Automatic Model Validation
<?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) |
html, body { height: 100%; } | |
.wrapper { | |
min-height: 100%; | |
height: auto !important; | |
height: 100%; | |
margin: 0 auto -50px; | |
} | |
.grid-container { |