PHP
PHP
Testing Values
Testing Values
PHP
4 years ago

There are many ways to test a value in php, some of which can produce confusing results. What’s more, Laravel also offers a couple of helpers which can help us test php values.

Read this article
Laravel
Reset Your Laravel App In Seconds
Reset Your Laravel App In Seconds

In his recent talk about Laravel Nova at Laracon US, Taylor Otwell used a nice little shortcut to reset his demo app during the presentation.

Read this article
PHP
Tidying Tips
Tidying Tips
PHP
4 years ago

In a post called The Life Changing Magic of Tidying Up Code, Kent Beck outlines his philosophy on cleaning up code. The article results in a short list of easy-to-follow rules, which I'm sure he would agree are there to be broken.

Read this article
PHP
How To Build The Imagick Php Extension From Source
How To Build The Imagick Php Extension From Source

This article describes the process you can follow to build the Imagick PHP extension from source, which can be handy if the version you are after has not been released via PECL.

Read this article
Tips
Counting Related Models In Laravel
Counting Related Models In Laravel

This Laravel quick tip will allow you to count model relations whilst ensuring you don't encounter an N+1 problem.

Read this article
Tips
Better Http Status Codes In Laravel
Better Http Status Codes In Laravel

This Laravel quick tip will show you how to make your code more readable and expressive by replacing http status code magic numbers with calls to static constants.

Read this article
Laravel
Different Ways To Pass Data To A Laravel View
Different Ways To Pass Data To A Laravel View

Laravel views allow you to pass data to a view in a number of different ways. In this article, I'll go over four methods and describe the pros and cons for each one.

Read this article
Privacy Policy
Copyright © 2022 Carl Cassar. All Rights Reserved.