Author image

Michael Brooks

Freelance Website Developer & Blogger in Newton Abbot

Blog

Nice little Laravel tip (Blade Ternary Operator)

Just today, I was looking at using a ternary operator in Laravel's Blade templating system and thought to myself... There must be a better way of doing this. After a quick Google aanndd... BEHOLD THE OR STATEMENT! Since version 4.1 they managed to sneak in this or statement and it's managed to bypass so many people (I figured this out by the lack of voices shouting about this on Google).

Link

Laravel Localhost removing /public/index.php

This little command is a lifesaver and will save you so much time when switching and merging previous branches in your GIT workflow.

Link
Cover image

Laravel Dynamic Navigation Package

I have managed to create a dynamic navigation package for Laravel which can be seen in my previous post. If you go to Packagist you will be able to find my package under checkeredmichael/navigation.

Link

Laravel Dynamic Menu Tutorial (Best for Admin packages)

Thanks to this very Laravel topic over at Laravel.io and Josh Benham I managed to find out how to make my very own

Link
Cover image

Composer Private Repository Problems

Recently I have been finding out the slight differences between Windows and Linux for use with Laravel and Composer. One difference is Windows isn't picky about the way you set out Composer's packages which can be a major problem. Here's the issue I had and what I had to do to get it going...

Link