PHP – ActivateSaga https://activatesaga.com ActivateSaga. Content for Web Artisans. Wed, 17 Apr 2024 14:34:01 +0000 en-US hourly 1 https://wordpress.org/?v=4.8.24 https://activatesaga.com/wp-content/uploads/2017/10/favicon-150x150.jpg PHP – ActivateSaga https://activatesaga.com 32 32 The Ternary Operator in PHP https://activatesaga.com/ternary-operator-php/ https://activatesaga.com/ternary-operator-php/#respond Tue, 29 Aug 2017 20:12:41 +0000 https://activatesaga.com/?p=5376 If you have a small if/else statement, it could possibly be turned into a ternary operator. What is a ternary operator The ternary operator is a comparison operator and can be looked at as...

The post The Ternary Operator in PHP appeared first on ActivateSaga.

]]>
https://activatesaga.com/ternary-operator-php/feed/ 0
Sending Email in Laravel with Mailables https://activatesaga.com/sending-email-laravel-mailables/ https://activatesaga.com/sending-email-laravel-mailables/#respond Thu, 15 Dec 2016 01:14:56 +0000 http://activatesaga.com/?p=4606 I recently found out about a feature in Laravel 5.3 as I was working with email. That was when I discovered Laravel Mailables. This is a great, clean way to send email; especially if...

The post Sending Email in Laravel with Mailables appeared first on ActivateSaga.

]]>
https://activatesaga.com/sending-email-laravel-mailables/feed/ 0
Autoloading PHP Files with Composer (psr-4) https://activatesaga.com/autoloading-php-files-composer-psr-4/ https://activatesaga.com/autoloading-php-files-composer-psr-4/#respond Fri, 09 Dec 2016 01:39:17 +0000 http://activatesaga.com/?p=4589 If you’re not sure what composer is, it’s a dependency manager for PHP. It’s very similar to NPM. Composer is a nice way to install PHP packages, manage dependencies, use it as an autoloader,...

The post Autoloading PHP Files with Composer (psr-4) appeared first on ActivateSaga.

]]>
https://activatesaga.com/autoloading-php-files-composer-psr-4/feed/ 0
Exploring Caching in Web Applications https://activatesaga.com/exploring-caching-web-applications/ https://activatesaga.com/exploring-caching-web-applications/#respond Thu, 08 Dec 2016 02:17:04 +0000 http://activatesaga.com/?p=4582 I’ve been exploring the topic of caching in web applications lately. To be more specific, I’ve been interested on how data gets cached for better performance; especially when you’re performing really expensive queries. Maybe...

The post Exploring Caching in Web Applications appeared first on ActivateSaga.

]]>
https://activatesaga.com/exploring-caching-web-applications/feed/ 0
Laravel Collections: The map() Method https://activatesaga.com/laravel-collections-the-map-method/ https://activatesaga.com/laravel-collections-the-map-method/#respond Thu, 01 Dec 2016 02:43:22 +0000 http://activatesaga.com/?p=4526 In the last blog post, I talked about collections in Laravel. I decided to make a video this time, taking about the map() method and what it does. The video explains the map() method...

The post Laravel Collections: The map() Method appeared first on ActivateSaga.

]]>
https://activatesaga.com/laravel-collections-the-map-method/feed/ 0
Laravel Collections Make PHP Development Awesome https://activatesaga.com/laravel-collections-make-php-development-awesome/ https://activatesaga.com/laravel-collections-make-php-development-awesome/#comments Wed, 30 Nov 2016 02:18:45 +0000 http://activatesaga.com/?p=4515 Laravel provides a lot of amazing tools out-of-the-box and collections are one of them. The collection class within Illuminate\Support is basically a wrapper that allows you to work with and manipulate arrays of data....

The post Laravel Collections Make PHP Development Awesome appeared first on ActivateSaga.

]]>
https://activatesaga.com/laravel-collections-make-php-development-awesome/feed/ 2
A (Somewhat) Framework Agnostic Approach https://activatesaga.com/a-somewhat-framework-agnostic-approach/ https://activatesaga.com/a-somewhat-framework-agnostic-approach/#respond Sun, 10 Apr 2016 23:17:11 +0000 http://activatesaga.com/?p=3908 Just Some Thoughts This post is going to be a bit subjective based on my personal experiences. That being said, I just wanted to write down my thoughts about my personal experiences in web...

The post A (Somewhat) Framework Agnostic Approach appeared first on ActivateSaga.

]]>
https://activatesaga.com/a-somewhat-framework-agnostic-approach/feed/ 0
Adding Sum of Values of an Array with array_sum https://activatesaga.com/adding-sum-of-values-of-an-array-with-array_sum/ https://activatesaga.com/adding-sum-of-values-of-an-array-with-array_sum/#comments Sat, 09 Apr 2016 00:13:55 +0000 http://activatesaga.com/?p=3905 Hello all! It has been awhile. So this morning I decided to do some code exercises on Hacker Rank (which is an awesome site by the way). I came across an exercise that wanted...

The post Adding Sum of Values of an Array with array_sum appeared first on ActivateSaga.

]]>
https://activatesaga.com/adding-sum-of-values-of-an-array-with-array_sum/feed/ 176