Menu

Close
  • Home
  • PHP Tidbets
  • On Laravel
Subscribe
Menu

Laravel

A 9-post collection

Page 1 of 2 Older Posts →

Laravel Eloquent's ->firstOr() method

I stumbled on another hidden gem today. I've know that Laravel has both ->firstOrNew() and firstOrCreate() queries [https://laravel.com/docs/5.4/eloquent#other-creation-methods] »

Camron Cade on Laravel 16 March 2017

Blade shortcut for echoing variables that may not be set

Laravel is one of those frameworks that has hidden tricks that are a delight to stumble across. This is one of them. In your blade templates, »

Camron Cade on Laravel 12 August 2016

DB instance without using facades in Laravel's Lumen

The point of Lumen is that it is light and fast, and so by default helpful tools like Eloquent and Facades are disabled. I like to »

Camron Cade on Laravel 08 October 2015

.active classes in menus with Blade templates

In many of my projects, I have a layout blade file that each page extends. As part of the layout, there is a menu bar that »

Camron Cade on Laravel 07 October 2015

Cleanly handle the routing for static pages in Laravel/Lumen

I'm working on a small project using Laravel's Lumen [http://lumen.laravel.com] that requires a few basic static pages. I was looking for a quicker »

Camron Cade on Laravel 24 September 2015
Page 1 of 2 Older Posts →
Camron Cade © 2023
Proudly published with Ghost