<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Anselm Mba on Medium]]></title>
        <description><![CDATA[Stories by Anselm Mba on Medium]]></description>
        <link>https://medium.com/@anselmleo?source=rss-8666b0d0b8df------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*3VuE8pDb6XXnl0zX_91M-Q.jpeg</url>
            <title>Stories by Anselm Mba on Medium</title>
            <link>https://medium.com/@anselmleo?source=rss-8666b0d0b8df------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 11:00:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anselmleo/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Clear the clutter, What a Microservice architecture is not!]]></title>
            <link>https://medium.com/@anselmleo/clear-the-clutter-what-a-microservice-architecture-is-not-53f9cc163eff?source=rss-8666b0d0b8df------2</link>
            <guid isPermaLink="false">https://medium.com/p/53f9cc163eff</guid>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software]]></category>
            <dc:creator><![CDATA[Anselm Mba]]></dc:creator>
            <pubDate>Wed, 09 Nov 2022 03:42:00 GMT</pubDate>
            <atom:updated>2022-11-09T03:48:02.304Z</atom:updated>
            <content:encoded><![CDATA[<p>Is your company running a microservice architecture? Do you have a single Rest API and a single database servicing all your microservices? If yes, then I’m sorry to break it to you, but that is not a microservice architecture! Oh.. you have separate databases for separate services that are unrelated and run independently? Yeah.. sorry but again that is not a microservice architecture, as basically, the term “micro” is missing from that setup.</p><p>The term microservices is being used so much in the wrong context nowadays that it feels like the right time to clear the clutter.</p><p>We can refer to microservices majorly with respect to infrastructure and architecture.</p><p>When we refer to our docker nodes, orchestration pods, and the like as microservices, we are correctly referring to microservice in terms of infrastructure.</p><p>However, microservices as an architecture refers to a style that structures an application or software product as a collection of loosely coupled, independently maintainable, testable, and deployable services which are organized around business capabilities.</p><p>This simply means a microservice architectural setup must be autonomous, and able to scale up and down without regard to any other related service.</p><p>A simple real-life case study will be the Uber architecture before they went microservices</p><p><em>(see below diagram):</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2QH97W2dCRvOi0NVEf7upQ.png" /></figure><p>Now let’s mirror this against Uber’s microservices architecture</p><p><em>(see below diagram):</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wqVHWPkp2N21uCzPN6JP5g.png" /></figure><p>Here we see each microservice is related to the next but built autonomously like a separate application with its own DB, rest API, and third-party integrations. Hence, every microservice will have its own monitoring, resilience handling, rate-limiting, request timeouts, and so on. Just basically multiply all you do for a single service by the number of microservices you have.</p><p>Yeah! A microservice setup is expensive!! It is recommended to start Monolith and then move microservices when your numbers are huge enough or when scaling becomes a problem.</p><p>Of course, you can also do microservices of the berth if your company is big enough and the numbers look good to support that endeavor.</p><p>So when next you are talking to your engineer or lead about microservices, make sure to use the right context 😃.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53f9cc163eff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DESIGN PATTERNS, What are they? ]]></title>
            <link>https://medium.com/@anselmleo/design-patterns-what-are-they-f59284b5d318?source=rss-8666b0d0b8df------2</link>
            <guid isPermaLink="false">https://medium.com/p/f59284b5d318</guid>
            <category><![CDATA[software]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Anselm Mba]]></dc:creator>
            <pubDate>Tue, 08 Nov 2022 07:11:47 GMT</pubDate>
            <atom:updated>2022-11-08T07:11:47.920Z</atom:updated>
            <content:encoded><![CDATA[<p>What are Design Patterns? There are so many Design Pattern articles out there that have done their best to explain and teach Design Patterns, yet even after a focused reading many still do not understand well enough what design patterns are. So in an attempt to break down the complexity of this all-important subject a bit more, below is my submission of what design patterns are and a review of some of the most frequently used ones.</p><p>Design patterns are typical solutions to commonly occurring problems in software design. They are like “a-best-approach” put together by software veterans to resolve recurring design problems in your code. But of course, if you believe you can come up with better blueprints to solving recurring software design problems, you are welcome to dive deeper into them and propose your solutions. Who knows you may as well be the next “Elon” of software development.</p><p>For lucidity, I will attempt to break down what “patterns” above mean a little further. A pattern here means a generically defined way of getting something done repeatedly. For example, if we knew we are going to write over 5000 letters or more throughout our professional career. We are faced with a decision. Write each letter again and again while looking over the ceiling or create a simple way, method, or design of writing letters that we can apply whenever we need to write one.</p><p>Accordingly, in software design, a design pattern is a solution that you can use over and over again in any type of software application where a common problem occurs. Software Design patterns are reusable and reliable in many different situations, they make code better and applications less brittle. Understanding design patterns not only make you a better programmer but also make discussing code easy and transferrable.</p><p>Without further ado, let’s get into some of the most common software design patterns every software engineer should know.</p><p>Going with the classical “Gang of Four” Categorization of design patterns, based on what these design patterns are used for in a software application, there are three major categories.</p><ol><li>The Creational design patterns include patterns that resolve problems around creating classes, objects, and instances of these.</li><li>The Structural design patterns comprise patterns that provide solutions for how classes and objects and other software elements are composed or put together</li><li>The Behavioral design patterns as the name imply involve patterns that deal with problems around how objects interact with one another and other systems of the software application.</li></ol><p>Now that we know the classification of patterns, for this chapter, we’ll be discussing the Singleton Creational Pattern</p><p>The Singleton Creational Pattern:</p><p><strong>Problem Statement</strong>: The problem this hopes to solve is having more than one instance of an object running when you need only one.</p><p><strong>Real-World Example</strong>: A good example is a “Logger” in a NodeJs enterprise application. Ideally, we want to use one logger instance to log all events, requests, and errors. With multiple instances of our Logger running we would essentially lose critical log data because the instance of the logger we use to store the logs may be different from the instance we use to collect or send out our logs to external platforms like slack etc.</p><p><strong><em>Before Singleton Pattern was applied:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sp9H6hcqT6X0MGJBvAjnVA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t1jkzUcCO9fS6nbT4dTRhw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V0QBON1JiadhqEsTTYh5_A.png" /></figure><p><strong>Solution</strong>: This is where the Singleton design Pattern comes in. The Singleton Creational Patterns sets up your code in a way that you only have one instance of an object running per time exactly as needed.</p><p><strong><em>After Singleton Pattern was applied:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a4q6jPNf6-tQVMJG7Pb3Rw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DJ0LBEagsYgp3MAtCWVy0g.png" /></figure><p>With this setup, we are able to completely solve the multiple instance problem permanently regardless of programming language or stack this design pattern works always for this problem type.</p><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f59284b5d318" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Make Software Apps A tad Safer!]]></title>
            <link>https://medium.com/@anselmleo/make-software-apps-a-tad-safer-6ec1729fbc05?source=rss-8666b0d0b8df------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ec1729fbc05</guid>
            <dc:creator><![CDATA[Anselm Mba]]></dc:creator>
            <pubDate>Sat, 11 Sep 2021 17:06:09 GMT</pubDate>
            <atom:updated>2021-09-11T17:06:09.623Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T_n0TlhJtL_hYtLCsWbf2g.jpeg" /></figure><p>There are almost 2 billion web applications and well over 4 million mobile applications out there powering several phases of our everyday life from financial to religious to social. World Economic Forum Global Risks Report 2020 ranks cyber attacks first among global human-caused risks and Cybersecurity Ventures predicts that by 2021 cybercrime will cost the <strong>world $11.4 million each minute.</strong></p><p>Yet today, I still observe teams powering top fintech apps storing credentials and secrets in plain texts. Managing organization-wide passwords via google drive, transferring private key credentials via email, and not properly handling staff exit accesses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*m_lWZUVRHgO1vTqg0orJHg.png" /></figure><blockquote>Hackers now have more advanced technology to gain access to our accounts. Regardless of the security provided by the infrastructure housing these applications, security is only as good as the weakest link. Hence the need for more secure practices among teams.</blockquote><p>One sure-fire way to strengthen the weakness of password-keeping is using a <strong>TEAM PASSWORD MANAGER</strong>.</p><p><strong><em>Here are five quick benefits of using a team password manager:</em></strong></p><ol><li>A team password manager allows teams to manage and share accounts. Without the hassle of doing it yourself or placing the entire application at risk by storing the password on google drive whether official or not.</li><li>Good password managers don’t store your passwords on their servers and your credentials at rest are super encrypted which means even if your password manager is compromised your application and its data are safe.</li><li>Inbuilt password generators and password calculators allow you create stronger passwords since you don’t have to remember them at all.</li><li>When a team member exits the organization, you can automatically revoke and change all application credentials or set access levels as necessary. Similarly, turning in your handover also becomes easy to manage. In essence, handling staff exit credential accesses becomes a breeze.</li><li>Receive alerts and take proactive steps to keep all your software applications safe at all times.</li></ol><p>In conclusion, with a team password manager, we don’t have to send raw secrets to our DevOps or any member of staff via email. But if we must, let’s do it via secure media like <a href="https://dead-drop.me/">dead-drop.me</a>, <a href="https://onetimesecret.com/">onetimesecret.com</a>, <a href="https://sharesecret.co/">sharesecret.co</a>, etc. Let’s make our software ecosystem a tad safer!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ec1729fbc05" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A tutorial on how to store arrays to SQL databases using JSON and CASTS in Laravel]]></title>
            <link>https://levelup.gitconnected.com/a-tutorial-on-how-to-store-arrays-to-sql-databases-using-json-and-casts-in-laravel-9b97e28af05a?source=rss-8666b0d0b8df------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b97e28af05a</guid>
            <dc:creator><![CDATA[Anselm Mba]]></dc:creator>
            <pubDate>Sat, 11 Apr 2020 19:51:48 GMT</pubDate>
            <atom:updated>2020-04-12T22:34:40.531Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jzeo2l8AqkNFVnI5xiLGyQ.jpeg" /></figure><p>In this article, we look at how to store arrays in a Laravel or Lumen Application using json datatype and cast property.</p><p>This is an offshoot of my previous article “<a href="https://medium.com/swlh/an-awesome-way-to-store-arrays-to-sql-database-in-php-c1e33c5c2e44">An awesome way to store arrays to SQL database in PHP</a>”. Check it out for a full overview of how arrays can be stored and retrieved from sql databases.</p><h4>STEP 1</h4><p>In our Laravel Application, we will make our model and migration from the terminal</p><p>— &gt; make a contents_arr model and migration in your terminal</p><pre>php artisan make:model ContentsArr -m</pre><h4>STEP 2</h4><p>We edit our migration file and set our array columns as json</p><p>— &gt; edit the migration (create_contents_arrs_table) as follows:</p><pre>&lt;?php</pre><pre>use Illuminate\Database\Migrations\Migration;</pre><pre>use Illuminate\Database\Schema\Blueprint;</pre><pre>use Illuminate\Support\Facades\Schema;</pre><pre>class CreateContentsArrsTable extends Migration</pre><pre>{</pre><pre>/**</pre><pre>* Run the migrations.</pre><pre>*</pre><pre>* @return void</pre><pre>*/</pre><pre>public function up()</pre><pre>{</pre><pre>Schema::create(&#39;contents_arrs&#39;, function (Blueprint $table) {</pre><pre>$table-&gt;increments(&#39;id&#39;);</pre><pre>$table-&gt;json(&#39;arr_text1&#39;);</pre><pre>$table-&gt;json(&#39;arr_text2&#39;);</pre><pre>$table-&gt;timestamps();</pre><pre>});</pre><pre>}</pre><pre>/**</pre><pre>* Reverse the migrations.</pre><pre>*</pre><pre>* @return void</pre><pre>*/</pre><pre>public function down()</pre><pre>{</pre><pre>Schema::dropIfExists(&#39;contents_arrs&#39;);</pre><pre>}</pre><pre>}</pre><h4>STEP 3</h4><p>Let&#39;s also edit our model class and use Laravel’s awesome $cast property to return array values from the database. Also, we make our ‘arr_text1’ and ‘arr_text2’ columns mass assignable.</p><p>— &gt; edit the model (ContentsArr) as follows</p><pre>&lt;?php</pre><pre>namespace App;</pre><pre>use Illuminate\Database\Eloquent\Model;</pre><pre>class ContentsArr extends Model</pre><pre>{</pre><pre>protected $fillable = [&#39;arr_text1&#39;, &#39;arr_text2&#39;];</pre><pre>//Tell laravel to fetch text values and set them as arrays</pre><pre>protected $casts = [</pre><pre>&#39;arr_text1&#39; =&gt; &#39;array&#39;,</pre><pre>&#39;arr_text2&#39; =&gt; &#39;array&#39;</pre><pre>];</pre><pre>}</pre><h4>STEP 4</h4><p>It’s now time to make a controller that will pass our data to the database.</p><p>— &gt; make a ContentsArrController in the terminal</p><pre>php artisan make:controller ContentsArrController</pre><h4>STEP 5</h4><p>Here we create the array data we want to pass to Eloquent for storage into the database and return a success response of the contents_arr record if the arrays are stored successfully or an error response if not successful</p><p>— &gt; edit controller (ContentsArrController) as follows</p><pre>&lt;?php</pre><pre>namespace App\Http\Controllers;</pre><pre>use Illuminate\Http\Request;</pre><pre>class ContentsArrController extends Controller</pre><pre>{</pre><pre>// Create a new contents_arr entry.</pre><pre>public function createContents()</pre><pre>{</pre><pre>$contents_arr = \App\ContentsArr::create([</pre><pre>&#39;arr_text1&#39; =&gt; [&#39;Toni Abbah&#39;,&#39;Anastacia Mast&#39;,&#39;Soji Igbonna&#39;],</pre><pre>&#39;arr_text2&#39; =&gt; [&#39;username&#39;=&gt;&#39;torah&#39;,&#39;name&#39;=&gt;&#39;Toni Abbah&#39;]</pre><pre>]);</pre><pre>if($contents_arr) {</pre><pre>return response()-&gt;json([</pre><pre>&#39;status&#39; =&gt; &#39;success&#39;,</pre><pre>&#39;data&#39; =&gt; $contents_arr</pre><pre>]);</pre><pre>}</pre><pre>return response()-&gt;json([</pre><pre>&#39;status&#39; =&gt; &#39;fail&#39;,</pre><pre>&#39;message&#39; =&gt; &#39;failed to create content_arr record&#39;</pre><pre>]);</pre><pre>}</pre><pre>}</pre><h4>STEP 6</h4><p>Finally, we route our application through a get request to the createContents method in our controller. This way we can simply test our implementation via a browser.</p><p>— &gt; now let’s set up our route</p><pre>&lt;?php</pre><pre>/*</pre><pre>|--------------------------------------------------------------------------</pre><pre>| Web Routes</pre><pre>|--------------------------------------------------------------------------</pre><pre>|</pre><pre>| Here is where you can register web routes for your application. These</pre><pre>| routes are loaded by the RouteServiceProvider within a group which</pre><pre>| contains the &quot;web&quot; middleware group. Now create something great!</pre><pre>|</pre><pre>*/</pre><pre>Route::get(&#39;/contents-arr&#39;, &#39;ContentsArrController@createContents&#39;);</pre><blockquote><strong>Here we go… in the browser we use the hit the endpoint: http://yourbaseurl/contents-arr</strong></blockquote><p>Results in pictures!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zSwoGq4LLDHGeDv7pz01eA.png" /><figcaption>contents_arrs database table</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AhP4LX-0m2_GHAUDSDCt2g.png" /><figcaption>browser response in json format</figcaption></figure><h4>Suweeeet!!!</h4><p>We have successfully implemented how you store and retrieve arrays using json and casts respectively!</p><p>I hope it was fun, simple and clear.</p><p><strong><em>As always thanks for hanging!</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b97e28af05a" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/a-tutorial-on-how-to-store-arrays-to-sql-databases-using-json-and-casts-in-laravel-9b97e28af05a">A tutorial on how to store arrays to SQL databases using JSON and CASTS in Laravel</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An awesome way to store arrays to SQL database in PHP]]></title>
            <link>https://medium.com/swlh/an-awesome-way-to-store-arrays-to-sql-database-in-php-c1e33c5c2e44?source=rss-8666b0d0b8df------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1e33c5c2e44</guid>
            <category><![CDATA[arrays]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Anselm Mba]]></dc:creator>
            <pubDate>Fri, 10 Apr 2020 07:58:26 GMT</pubDate>
            <atom:updated>2020-09-30T07:55:54.503Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wdeK3O7lKS0Jd6TJkhWuUw.jpeg" /><figcaption>Array of colorful drinks!</figcaption></figure><p>What is an Array?</p><p>An array is a datatype or data structure or in layman terms a special variable that allows storing one or more values in a single variable e.g. — group of names, group of emails, group of products etc.</p><p>When building any kind of application, the chances that you would not manipulate an array is “almost” less than zero. Well maybe not less than zero but you get the point.</p><p>Arrays have such significance in app development that understanding the different ways to manipulate, store and retrieve them in the database becomes very crucial and an invaluable skill for developers.</p><p>In this article, I will show four options or ways to store arrays to SQL databases using PHP but these methods can be applied in other programming languages as well.</p><h4>OPTION 1</h4><p>Let’s create a table for use with OPTION 1 TO 3</p><pre>CREATE TABLE `contents_arr` (</pre><pre>`id` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,</pre><pre>`arr_serialize1` varchar(255) NOT NULL,</pre><pre>`arr_serialize2` varchar(255) NOT NULL</pre><pre>) ENGINE=InnoDB DEFAULT CHARSET=utf8;</pre><p>Define two arrays — $names_arr, and $users_arr.</p><p>$names_arr Array should be Indexed type Array and</p><p>$users_arr Array should be an Associative Array.</p><p><strong>Serialize Syntax –</strong></p><pre>serialize([Array]);</pre><p>Pass the array in the serialize() method and pass the serialized values in the INSERT query.</p><p><strong>Unserialize Syntax –</strong></p><pre>unserialize([Serialized value]);</pre><p>Fetch records and pass the serialized value in the unserialize() method to convert it to Array format.</p><p><strong>Completed Code</strong></p><pre>&lt;?php</pre><pre>include “config.php”;</pre><pre>// Indexed Array</pre><pre>$names_arr = array(“Toni Abbah”,”Anastacia Mast”,”Soji Igbonna”);</pre><pre>// Associative Array</pre><pre>$users_arr[] = array(“username”=&gt;”Torah”,”name”=&gt;”Toni Abbah”);</pre><pre>$users_arr[] = array(“username”=&gt;”Anamast”,”name”=&gt;”Anastacia Mast”);</pre><pre>$users_arr[] = array(“username”=&gt;”soggy”,”name”=&gt;”Soji Igbonna”);</pre><pre>// Serialize the Array</pre><pre>$names_str = serialize($names_arr);</pre><pre>$users_str = serialize($users_arr);</pre><pre>// Insert record</pre><pre>$sql = “INSERT INTO contents_arr(arr_serialize1,arr_serialize2) VALUES(‘“.$names_str.”’,’”.$users_str.”’)”;</pre><pre>mysqli_query($con,$sql);</pre><pre>// Read record</pre><pre>$sql = mysqli_query($con,”SELECT * FROM contents_arr”);</pre><pre>while($row = mysqli_fetch_assoc($sql)){</pre><pre>// Unserialize</pre><pre>$arr_unserialize1 = unserialize($row[‘arr_serialize1’]);</pre><pre>$arr_unserialize2 = unserialize($row[‘arr_serialize2’]);</pre><pre>// Display</pre><pre>echo “&lt;pre&gt;”;</pre><pre>print_r($arr_unserialize1);</pre><pre>print_r($arr_unserialize2);</pre><pre>echo “&lt;/pre&gt;”;</pre><pre>}</pre><p><strong>Output –</strong></p><pre>Array</pre><pre>(</pre><pre>[0] =&gt; Toni Abbah</pre><pre>[1] =&gt; Anastacia Mast</pre><pre>[2] =&gt; Soji Igbonna</pre><pre>)</pre><pre>Array</pre><pre>(</pre><pre>[0] =&gt; Array</pre><pre>(</pre><pre>[username] =&gt; Torah</pre><pre>[name] =&gt; Toni Abbah</pre><pre>)</pre><pre>[1] =&gt; Array</pre><pre>(</pre><pre>[username] =&gt; Anamast</pre><pre>[name] =&gt; Anastacia Mast</pre><pre>)</pre><pre>[2] =&gt; Array</pre><pre>(</pre><pre>[username] =&gt; soggy</pre><pre>[name] =&gt; Soji Igbonna</pre><pre>)</pre><pre>)</pre><h4>OPTION 2</h4><p>Use implode() to separate the $names_arr by separator (” , “) and get a string. Pass the value in the INSERT query.</p><p>Fetch records and use explode() to convert a comma-separated string in an Array format.</p><p>In the example, I am displaying the value in a string and Array format.</p><p><strong>Completed Code</strong></p><pre>&lt;?php</pre><pre>include “config.php”;</pre><pre>// Indexed Array</pre><pre>$names_arr = array(“Toni Abbah”,”Anastacia Mast”,”Soji Igbonna”);</pre><pre>// Separate Array by “ , “</pre><pre>$names_str = implode(“ , “,$names_arr);</pre><pre>// Insert record</pre><pre>$sql = “INSERT INTO contents_arr(name) VALUES(‘“.$names_str.”’)”;</pre><pre>mysqli_query($con,$sql);</pre><pre>// Read record</pre><pre>$sql = mysqli_query($con,”SELECT * FROM contents_arr”);</pre><pre>while($row = mysqli_fetch_assoc($sql)){</pre><pre>$name = $row[‘name’];</pre><pre>$name_explode = explode(“ , “,$row[‘name’]);</pre><pre>echo “name : “.$name.”&lt;br&gt;”;</pre><pre>echo “&lt;pre&gt;”;</pre><pre>print_r($name_explode);</pre><pre>echo “&lt;/pre&gt;”;</pre><pre>}</pre><p><strong>Output –</strong></p><pre>name : Toni Abbah, Anastacia Mast, Soji Igbonna</pre><pre>Array</pre><pre>(</pre><pre>[0] =&gt; Toni Abbah</pre><pre>[1] =&gt; Anastacia Mast</pre><pre>[2] =&gt; Soji Igbonna</pre><pre>)</pre><h4>OPTION 3</h4><p>Loop on the $users_arr Array.</p><p>Read and pass the value in the INSERT query. New record is inserted until data is available.</p><p><strong>Completed Code</strong></p><pre>&lt;?php</pre><pre>include “config.php”;</pre><pre>// Associative Array</pre><pre>$users_arr[] = array(“username”=&gt;”Torah”,”name”=&gt;”Toni Abbah”);</pre><pre>$users_arr[] = array(“username”=&gt;”Anamast”,”name”=&gt;”Anastacia Mast”);</pre><pre>$users_arr[] = array(“username”=&gt;”soggy”,”name”=&gt;”Soji Igbonna”);</pre><pre>// Insert record</pre><pre>foreach($users_arr as $userid=&gt;$user){</pre><pre>$username = $user[‘username’];</pre><pre>$name = $user[‘name’];</pre><pre>$sql = “INSERT INTO contents_arr(username,name) VALUES(‘“.$username.”’,’”.$name.”’)”;</pre><pre>mysqli_query($con,$sql);</pre><pre>}</pre><pre>// Read record</pre><pre>$sql = mysqli_query($con,”SELECT * FROM contents_arr”);</pre><pre>while($row = mysqli_fetch_assoc($sql)){</pre><pre>$username = $row[‘username’];</pre><pre>$name = $row[‘name’];</pre><pre>echo “username : “.$username.”, name : “.$name.”&lt;br&gt;”;</pre><pre>}</pre><p><strong>Output –</strong></p><pre>username : Torah, name : Toni Abbah</pre><pre>username : Anamast, name : Anastacia Mast</pre><pre>username : soggy, name : Soji Igbonna</pre><h4>OPTION 4</h4><p>In this option we will learn to store arrays as text so let’s create a sample table</p><pre>CREATE TABLE `contents_arr` (</pre><pre>`id` int(11) NOT NULL AUTO_INCREMENT,</pre><pre>`arr_text1` text NOT NULL,</pre><pre>`arr_text2` text NOT NULL,</pre><pre>PRIMARY KEY (`id`)</pre><pre>) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;</pre><p>Notice that in this table we used a different datatype to store our array. We used the text datatype as it enables us to store and retrieve our arrays and manipulate directly in our code.</p><p>Define two arrays — $names_arr, and $users_arr.</p><p>As before $names_arr Array should be Indexed type Array and $users_arr should be an Associative Array.</p><p><strong>Insert directly to Database –</strong></p><pre>INSERT INTO contents_arr (arr_text1, arr_text2) VALUES (‘$names_arr’, ‘users_arr’);</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7t6OobnREaQsu8rsZiRs-g.png" /><figcaption>Insert query with direct array insert to text datatype</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*80YUtfr77RfeyDQ9MHzctA.png" /><figcaption>The table after array insertion as text datatype</figcaption></figure><p><strong>Retrieve directly into an array variable –</strong></p><pre>$names_arr = [Array value];</pre><p>Fetch records and pass the array value in the directly to the Array variable.</p><p><strong>Completed Code</strong></p><pre>&lt;?php</pre><pre>include “config.php”;</pre><pre>// Indexed Array</pre><pre>$names_arr = array(“Toni Abbah”,”Anastacia Mast”,”Soji Igbonna”);</pre><pre>// Associative Array</pre><pre>$users_arr[] = array(“username”=&gt;”Torah”,”name”=&gt;”Toni Abbah”);</pre><pre>$users_arr[] = array(“username”=&gt;”Anamast”,”name”=&gt;”Anastacia Mast”);</pre><pre>$users_arr[] = array(“username”=&gt;”soggy”,”name”=&gt;”Soji Igbonna”);</pre><pre>// Insert record</pre><pre>$sql = “INSERT INTO contents_arr(arr_text1,arr_text2) VALUES(‘“.$names_arr.”’,’”.$users_arr.”’)”;</pre><pre>mysqli_query($con,$sql);</pre><pre>// Read record</pre><pre>$sql = mysqli_query($con,”SELECT * FROM contents_arr”);</pre><pre>while($row = mysqli_fetch_assoc($sql)){</pre><pre>// Assign directly to variable</pre><pre>$names_arr = $row[‘arr_text1’];</pre><pre>$users_arr = $row[‘arr_text2’];</pre><pre>// Display</pre><pre>echo “&lt;pre&gt;”;</pre><pre>print_r($names_arr);</pre><pre>print_r($users_arr);</pre><pre>echo “&lt;/pre&gt;”;</pre><pre>}</pre><p><strong>Output –</strong></p><pre>Array</pre><pre>(</pre><pre>[0] =&gt; Toni Abbah</pre><pre>[1] =&gt; Anastacia Mast</pre><pre>[2] =&gt; Soji Igbonna</pre><pre>)</pre><pre>Array</pre><pre>(</pre><pre>[0] =&gt; Array</pre><pre>(</pre><pre>[username] =&gt; Torah</pre><pre>[name] =&gt; Toni Abbah</pre><pre>)</pre><pre>[1] =&gt; Array</pre><pre>(</pre><pre>[username] =&gt; Anamast</pre><pre>[name] =&gt; Anastacia Mast</pre><pre>)</pre><pre>[2] =&gt; Array</pre><pre>(</pre><pre>[username] =&gt; soggy</pre><pre>[name] =&gt; Soji Igbonna</pre><pre>)</pre><pre>)</pre><blockquote>This last method or option is what I like to call <strong>an awesome way to store arrays to SQL database</strong>, just make sure you are using one of the recent sql installations.</blockquote><p>Hope you learnt a thing or two.</p><p><strong><em>Thanks for sticking around!</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1e33c5c2e44" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/an-awesome-way-to-store-arrays-to-sql-database-in-php-c1e33c5c2e44">An awesome way to store arrays to SQL database in PHP</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SOME CONTESTABLE APPLICATION SCHEMA DESIGNS COMMONLY ADOPTED by DEVELOPERS AND THEIR PITFALLS]]></title>
            <link>https://levelup.gitconnected.com/lets-start-with-a-simple-example-of-an-app-that-accept-more-than-one-user-type-or-user-roles-not-ee69fab02b0a?source=rss-8666b0d0b8df------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee69fab02b0a</guid>
            <dc:creator><![CDATA[Anselm Mba]]></dc:creator>
            <pubDate>Wed, 08 Apr 2020 10:21:10 GMT</pubDate>
            <atom:updated>2020-04-13T18:59:14.685Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*NuQ-YxVoTEsoI9Q5AIwdEQ.png" /><figcaption>Database Schema Design</figcaption></figure><p>Let’s start with a simple example of an app that accept more than one user type or user roles <strong><em>not upwork</em></strong> 😃.</p><p>Say we need to create an application that connects mentees to their mentors remotely meaning we would need at least two user roles for this application, the mentor user role and the mentee user role and probably and admin user role as well.</p><h4>SCHEMA 1:</h4><p><em>A common schema design I have seen commonly for this kind of application would be a user’s table that looks like this:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A4ELXs-3Gwn9dLTlsL8twg.png" /></figure><blockquote><strong>N.B: All data in the users table are fake data generated from the faker library.</strong></blockquote><blockquote><em>A role table that comprises all the user types:</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*ubCD6feG6KHnEMEGkyh1iQ.png" /></figure><p><em>Ofcourse there will be a permissions table(no need to display that here) that will include what a user type can or cannot do and then a many to many pivot table of permissions and roles that look like this:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/306/1*U_h773e3RLKkcdAD8hlORA.png" /></figure><p><strong>HOW THIS SCHEMA WAS DESIGNED TO WORK</strong></p><p>This Schema design is meant to work like this:</p><p>— &gt; All users whether mentor or mentee are stored in the users table (one table) upon registration.</p><p>— &gt; Roles are set for the user based on the frontend selection done by the user or predetermined by the form used for registration.</p><p>— &gt; Permissions for the user type are set in the permissions table and the application to know what a mentee can do through the relationship between the permissions table and roles table.</p><p>So far so good right. But then there is a pitfall to this design..</p><p><strong>PITFALL</strong></p><p>Because this schema stores all user type in a single table it is consequently difficult registering for more than one user type with the same email address and that is if the developer even permits it. Still do not know why? I will explain further. “Email Validation” is done upon registration and by standard is set as unique for most application. So if a user already used user<a href="/service/mailto:mentee@gmail.com">@</a><a href="http://examplesite.com/">exampleuser.com</a> to register into the application as a MENTEE, that email will no longer be accepted for registrations into the application as “Email Validation” will not pass. On the users table the email column must remain unique, so the same person has to get a different email to register as a mentor. What to do? Disable Email Validation?? Check for role type for every new registration??? <strong>¯\_(ツ)_/¯</strong></p><h4>SCHEMA 2:</h4><p>Another common schema design I have come across has the user table store only the user email, password and then a profiles table that stores the user profile information such as first name, last name etc. and the user_id as a foreign key. With a many to many relationship between the roles and users table. Unfortunately the same pitfall as above applies even though the schema has set it so that the user can have many roles, there is one users table for all user types and hence email validation is still a problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zJe_dqJ3FQNg0e8SJwPflg.png" /></figure><p><strong>A BETTER APPROACH:</strong></p><p>In my humble opinion, the problem with the approach above could be thought to be rooted in the way relational databases where designed to be used. A table in an RDMS is an entity, an entity is what you store data about for example a mentor, a mentee. Also a table is the smallest unit or collection of related information.</p><p>Therefore we should instead have a mentees table that stores the attributes of the mentee entity in this case the mentee user type and so on for the mentors table and admins table. When a user registers as a mentee, the user is stored in the mentees table and this way same email can be used to register for multiple account types. At the end of the day, we can still have our users table that houses all our user information as result of joining all the other user type tables.</p><p>The cost of multiple tables in a database is a space complexity and is not as expensive as the time complexity it would take to resolve the “email validation” pitfall of the earlier mentioned Schema designs.</p><p>As a result of this approach, we gain efficiency, speed and an overall straight forward relational friendly and manageable application.</p><blockquote>A working example is the upwork platform. You can register as employer and freelancer with the same email. Also there’s a switch account button in the platform that enables the user to click and get signed out of the currently logged in application and get signed in to the other account. Awesome!</blockquote><p><strong><em>Please feel free to share your thoughts.</em></strong></p><h3><strong>Thanks for sticking around!</strong></h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee69fab02b0a" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/lets-start-with-a-simple-example-of-an-app-that-accept-more-than-one-user-type-or-user-roles-not-ee69fab02b0a">SOME CONTESTABLE APPLICATION SCHEMA DESIGNS COMMONLY ADOPTED by DEVELOPERS AND THEIR PITFALLS</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LARAVEL DEVELOPER NO DOWNTIME CHEAT SHEET OF USEFUL LINKS AND DIRECTORIES]]></title>
            <link>https://medium.com/@anselmleo/laravel-developer-no-downtime-cheat-sheet-of-useful-links-and-directories-ce8cfe65ee9e?source=rss-8666b0d0b8df------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce8cfe65ee9e</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[vagrant]]></category>
            <category><![CDATA[lumen]]></category>
            <dc:creator><![CDATA[Anselm Mba]]></dc:creator>
            <pubDate>Mon, 06 Apr 2020 10:54:04 GMT</pubDate>
            <atom:updated>2020-04-07T10:20:51.701Z</atom:updated>
            <content:encoded><![CDATA[<p>BEFORE I BEGIN, dare I say that as a LARAVEL developer myself, this article is bias to LARAVEL devs.. no offense dev world!</p><p>This article was inspired by my recent decision to take into account the amount of time I spent looking for the most useful stack overflow answer to solving a basic problem, and the amount of hours I spent looking for a clean follow through medium article that explained how to deploy a vagrant application to linux server, or a simple as “abc” step by step article that broke down how to perform a task.</p><p>I could not help but observe that the downtime used up for searches were considerable and when put together with that performed by thousands of developers like me.. then so much time is being spent on google searching the web.</p><p>Then I thought 🤔, mmmmm maybe I can narrow the curve a little.</p><p>Hence, I have decided to compile a list of the most useful links and bookmarks for performing necessary tasks. Having gone through the pain of searching some times for weeks for the best solutions to some of these problems, I hope you find what you need here and don’t have to spend too much time on google like I did. In christian terms.. “<em>He suffered that we may not have to</em>”.. just kidding guys.. all I’m trying to say is I have taken the pains to <strong>FILTER THROUGH THE HALF BAKED ARTICLES OUT THERE and SELECTED THE BEST ONES</strong>, so you don’t have to. I shall keep updating these list until we have covered as much areas as possible.</p><p><strong><em>You are welcome :) The real heroes here are the respective article owners 👍</em></strong></p><p>Please feel free to suggest links as well.. and the article will be immediately updated with your bookmarks. if we can build our code to be reusable.. we can save and compile our searches to be reusable as well!</p><blockquote><strong>P.S:</strong></blockquote><blockquote><strong>This article is most useful for the beginner php and laravel developer.</strong></blockquote><blockquote><strong>Press Cmd+F or Ctrl+F on Windows and enter keyword to find relevant link</strong></blockquote><p>Without further ado, here’s an exhaustive list of useful bookmarks for your most important development tasks.</p><ol><li>HOW TO SETUP NGINX SERVER BLOCKS ON UBUNTU: <a href="https://www.cloudbooklet.com/how-to-set-up-nginx-server-block-ubuntu-18-04/">https://www.cloudbooklet.com/how-to-set-up-nginx-server-block-ubuntu-18-04/</a></li><li>HOW TO SETUP PASSWORDLESS SSH LOGIN: <a href="https://linuxize.com/post/how-to-setup-passwordless-ssh-login/">https://linuxize.com/post/how-to-setup-passwordless-ssh-login/</a></li><li>HOW TO SEARCH FILES FROM TERMINAL: <a href="https://www.howtoforge.com/tutorial/linux-search-files-from-the-terminal/">https://www.howtoforge.com/tutorial/linux-search-files-from-the-terminal/</a></li><li>HOW TO SETUP A MAC FOR WEB DEVELOPMENT: <a href="https://www.michaeluloth.com/how-to-set-up-a-mac-for-web-development">https://www.michaeluloth.com/how-to-set-up-a-mac-for-web-development</a></li><li>HOW TO RUN APACHE WITH PHP: <a href="https://websiteforstudents.com/how-to-run-apache2-with-php7-2-fpm-on-ubuntu-16-04-17-10-18-04/">https://websiteforstudents.com/how-to-run-apache2-with-php7-2-fpm-on-ubuntu-16-04-17-10-18-04/</a></li><li>HOW TO ACCESS SETUP VAGRANT SERVER NAME AND VAGRANT FILE: <a href="https://stackoverflow.com/questions/40886584/how-to-access-vagrant-guest-servername">https://stackoverflow.com/questions/40886584/how-to-access-vagrant-guest-servername</a></li><li>HOW TO INSTALL LAMP ON UBUNTU: <a href="https://howtoubuntu.org/how-to-install-lamp-on-ubuntu#install-php">https://howtoubuntu.org/how-to-install-lamp-on-ubuntu#install-php</a></li><li>HOW TO INSTALL NODE ON UBUNTU SERVER: <a href="https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-18-04">https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-18-04</a></li><li>HOW TO INSTALL WORDPRESS ON UBUNTU: <a href="https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-ubuntu-14-04">https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-ubuntu-14-04</a></li><li>HOW TO INSTALL AND USE DOCKER ON UBUNTU: <a href="https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04">https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04</a></li><li>HOW TO INSTALL AND RUN NGINX ON WINDOWS 10 SERVER: <a href="https://www.maketecheasier.com/install-nginx-server-windows/">https://www.maketecheasier.com/install-nginx-server-windows/</a></li><li>ADD MULTIPLE INTEGRATED TERMINALS IN VSCODE: <a href="https://stackoverflow.com/questions/43427631/how-to-add-multiple-terminal-in-vs-code">https://stackoverflow.com/questions/43427631/how-to-add-multiple-terminal-in-vs-code</a></li><li>HOW TO INTEGRATE LARAVEL STORAGE PACKAGE FLYSYSTEM WITH LUMEN: <a href="http://www.sibenye.com/2017/02/16/how-to-integrate-flysystem-with-lumen-framework/">http://www.sibenye.com/2017/02/16/how-to-integrate-flysystem-with-lumen-framework/</a></li><li>HOW TO QUERY BETWEEN TWO DATES USING LARAVEL AND ELOQUENT: <a href="https://stackoverflow.com/questions/33361628/how-to-query-between-two-dates-using-laravel-and-eloquent">https://stackoverflow.com/questions/33361628/how-to-query-between-two-dates-using-laravel-and-eloquent</a></li><li>HOW TO USE MULTIPLE AUTHENTICATION GUARDS FOR ADMINS AND OTHER TYPE USERS IN A LARAVEL APPLICATION: <a href="https://pusher.com/tutorials/multiple-authentication-guards-laravel">https://pusher.com/tutorials/multiple-authentication-guards-laravel</a></li><li>HOW TO IMPORT CSV IN LARAVEL AND CHOOSE MATCHING FIELDS: <a href="https://quickadminpanel.com/blog/how-to-import-csv-in-laravel-and-choose-matching-fields/">https://quickadminpanel.com/blog/how-to-import-csv-in-laravel-and-choose-matching-fields/</a></li><li>HOW TO DEPLOY A LARAVEL APP TO HEROKU: <a href="https://medium.com/@sdkcodes/how-to-deploy-a-laravel-app-to-heroku-24b5cb33fbe">https://medium.com/@sdkcodes/how-to-deploy-a-laravel-app-to-heroku-24b5cb33fbe</a></li><li>HOW TO DEPLOY LARAVEL TO SHARED HOSTING SERVER: <a href="https://medium.com/@sdkcodes/how-to-deploy-laravel-to-a-shared-hosting-server-54fe9c5a3a36">https://medium.com/@sdkcodes/how-to-deploy-laravel-to-a-shared-hosting-server-54fe9c5a3a36</a></li><li>HOW TO INTEGRATE INTEGRATE SWAGGER IN LARAVEL OR LUMEN FOR REST API OAS: <a href="https://stackoverflow.com/questions/45211512/how-to-integrate-swagger-in-lumen-laravel-for-rest-api">https://stackoverflow.com/questions/45211512/how-to-integrate-swagger-in-lumen-laravel-for-rest-api</a></li><li>HOW TO CREATE A VAGRANT BASE BOX FROM AN EXISTING ONE: <a href="https://scotch.io/tutorials/how-to-create-a-vagrant-base-box-from-an-existing-one">https://scotch.io/tutorials/how-to-create-a-vagrant-base-box-from-an-existing-one</a></li><li>HOW TO ADD TEMPLATE MANUALLY IN LARAVEL: <a href="https://medium.com/@mauriciorodrigues_74512/how-to-add-template-manually-in-laravel-d26735859244">https://medium.com/@mauriciorodrigues_74512/how-to-add-template-manually-in-laravel-d26735859244</a></li><li>HOW TO INTEGRATE PAYSTACK PAYMENT: <a href="https://dev.to/ijsucceed/how-to-integrate-paystack-payment-system-with-php-5a8m">https://dev.to/ijsucceed/how-to-integrate-paystack-payment-system-with-php-5a8m</a></li><li>CHECK LINUX FILE PERMISION WITH LS: <a href="https://support.rackspace.com/how-to/checking-linux-file-permissions-with-ls/">https://support.rackspace.com/how-to/checking-linux-file-permissions-with-ls/</a></li><li>HOW TO SECURE NGINX WITH LET’S ENCRYPT ON UBUNTU: <a href="https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04">https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04</a></li><li>HOW TO SECURE NGINX POWERED WEBSITE USING SSL AND SECURE CIPHERS: <a href="https://www.vultr.com/docs/how-to-secure-your-nginx-powered-website-using-ssl-and-secure-ciphers">https://www.vultr.com/docs/how-to-secure-your-nginx-powered-website-using-ssl-and-secure-ciphers</a></li><li>HOW TO SETUP CRON JOBS IN UBUNTU: <a href="https://www.geeksforgeeks.org/how-to-setup-cron-jobs-in-ubuntu/">https://www.geeksforgeeks.org/how-to-setup-cron-jobs-in-ubuntu/</a></li><li>HOW TO GET FILE PATH USING STORAGE FACADE IN LARAVEL: <a href="https://stackoverflow.com/questions/28964412/how-to-get-file-path-using-storage-facade-in-laravel-5">https://stackoverflow.com/questions/28964412/how-to-get-file-path-using-storage-facade-in-laravel-5</a></li><li>HOW TO INSTALL LEMP STACK ON UBUNTU: <a href="https://www.cloudbooklet.com/install-nginx-php-7-4-lemp-stack-on-ubuntu-18-04-google-cloud/">https://www.cloudbooklet.com/install-nginx-php-7-4-lemp-stack-on-ubuntu-18-04-google-cloud/</a></li><li>JAZZ UP YOUR ZSH IN SEVEN STEPS: <a href="https://www.freecodecamp.org/news/jazz-up-your-zsh-terminal-in-seven-steps-a-visual-guide-e81a8fd59a38/">https://www.freecodecamp.org/news/jazz-up-your-zsh-terminal-in-seven-steps-a-visual-guide-e81a8fd59a38/</a></li><li>SENDING MAIL THROUGH LARAVEL USING ZOHO: <a href="https://masbenx.net/2014/11/14/sending-mail-laravel-using-zoho-smtp/">https://masbenx.net/2014/11/14/sending-mail-laravel-using-zoho-smtp/</a></li><li>DATABASE TRANSACTIONS IN LARAVEL: <a href="https://fideloper.com/laravel-database-transactions">https://fideloper.com/laravel-database-transactions</a></li><li>DEPLOY A CREATE-REACT-APP TO DIGITAL OCEAN: <a href="https://coderrocketfuel.com/article/deploy-a-create-react-app-website-to-digitalocean">https://coderrocketfuel.com/article/deploy-a-create-react-app-website-to-digitalocean</a></li><li>LINUX GREP COMMAND AND USAGE: <a href="https://www.interserver.net/tips/kb/linux-grep-command-usage-examples/">https://www.interserver.net/tips/kb/linux-grep-command-usage-examples/</a></li><li>LARAVEL MULTI TENANT: <a href="https://medium.com/@ashokgelal/a-full-featured-multi-tenant-app-with-laravel-part-1-4049a3cc229d">https://medium.com/@ashokgelal/a-full-featured-multi-tenant-app-with-laravel-part-1-4049a3cc229d</a></li><li>A FULL FEATURED MULTI-TENANT APP WITH LARAVEL SETUP: <a href="https://medium.com/@ashokgelal/a-full-featured-multi-tenant-app-with-laravel-part-1-4049a3cc229d">https://medium.com/@ashokgelal/a-full-featured-multi-tenant-app-with-laravel-part-1-4049a3cc229d</a></li><li>LARAVEL SHOP REVIEW SYSTEM: <a href="https://maxoffsky.com/code-blog/laravel-shop-tutorial-1-building-a-review-system/">https://maxoffsky.com/code-blog/laravel-shop-tutorial-1-building-a-review-system/</a></li><li>RECURSIVELY RESOLVING DEPENDENCIES WITH PHP’S REFLECTION API: <a href="https://petersuhm.com/recursively-resolving-dependencies-with-phps-reflection-api-part-1/">https://petersuhm.com/recursively-resolving-dependencies-with-phps-reflection-api-part-1/</a></li><li>NFS FILE SHARING BETWEEN VAGRANT AND WINDOWS 10 HOST USING WINNFSD: <a href="https://www.intechgrity.com/nfs-based-file-sharing-for-varying-vagrant-under-windows/#">https://www.intechgrity.com/nfs-based-file-sharing-for-varying-vagrant-under-windows/#</a></li><li>WINDOWS VAGRANT NSFD WITHOUT FILE UPDATE PROBLEMS: <a href="https://hollyit.net/blog/windowsvagrantwinnfsd-without-file-update-problems">https://hollyit.net/blog/windowsvagrantwinnfsd-without-file-update-problems</a></li><li>EMMET ABBREVIATIONS SYNTAX: <a href="https://docs.emmet.io/abbreviations/syntax/">https://docs.emmet.io/abbreviations/syntax/</a></li><li>LARAVEL SPECIFIED KEY WAS TOO LONG ERROR: <a href="https://laravel-news.com/laravel-5-4-key-too-long-error">https://laravel-news.com/laravel-5-4-key-too-long-error</a></li><li>WINDOWS VSCODE CYGWIN AS INTEGRATED TERMINAL: <a href="https://stackoverflow.com/questions/46061894/vs-code-cygwin-as-integrated-terminal">https://stackoverflow.com/questions/46061894/vs-code-cygwin-as-integrated-terminal</a></li><li>ADD MULTIPLE INTEGRATED TERMINALS IN VSCODE: <a href="https://stackoverflow.com/questions/43427631/how-to-add-multiple-terminal-in-vs-code">https://stackoverflow.com/questions/43427631/how-to-add-multiple-terminal-in-vs-code</a></li><li>CYGWIN BASH ADMIN PRIVILEGE: <a href="https://stackoverflow.com/questions/4090301/root-user-sudo-equivalent-in-cygwin">https://stackoverflow.com/questions/4090301/root-user-sudo-equivalent-in-cygwin</a></li><li>REFACTORING TECHNIQUIES — WRITING TESTS: <a href="https://refactoring.guru/refactoring/techniques">https://refactoring.guru/refactoring/techniques</a></li><li>INSTALL COMPOSER USING CURL ON LINUX: <a href="https://stackoverflow.com/questions/26641813/curl-ss-https-getcomposer-org-installer-php-not-working-on-server">https://stackoverflow.com/questions/26641813/curl-ss-https-getcomposer-org-installer-php-not-working-on-server</a></li><li>LARAVEL COLLECTIVE FORM BUILDER: <a href="https://github.com/LaravelCollective">https://github.com/LaravelCollective</a></li><li>CKEDITOR AND WYSIWIG EDITOR FOR LARAVEL: <a href="https://github.com/UniSharp/laravel-ckeditor">https://github.com/UniSharp/laravel-ckeditor</a></li><li>PHP SNIPPETS: <a href="https://www.jonasjohn.de/snippets/php/">https://www.jonasjohn.de/snippets/php/</a></li><li>ADVANCED LARAVEL ELOQUENT USAGE, SCOPES, ACCESSORS, MUTATORS: <a href="https://blog.pusher.com/advanced-laravel-eloquent-usage/">https://blog.pusher.com/advanced-laravel-eloquent-usage/</a></li><li>AWESOME CHEATSHEETS: <a href="https://lecoupa.github.io/awesome-cheatsheets/">https://lecoupa.github.io/awesome-cheatsheets/</a></li><li>NODEJS ON LINUX ON WINDOWS VAGRANT OR NO VAGRANT: <a href="https://hackernoon.com/running-nodejs-on-linux-on-windows-88bd12993bae">https://hackernoon.com/running-nodejs-on-linux-on-windows-88bd12993bae</a></li><li>MERN STACK TUTORIAL BUILDING A REACT CRUD APPLICATION FROM START TO FINISH: <a href="https://codingthesmartway.com/the-mern-stack-tutorial-building-a-react-crud-application-from-start-to-finish-part-1/">https://codingthesmartway.com/the-mern-stack-tutorial-building-a-react-crud-application-from-start-to-finish-part-1/</a></li><li>CREATING A WORDPRESS PLUGIN: <a href="https://www.wpbeaverbuilder.com/creating-wordpress-plugin-easier-think/">https://www.wpbeaverbuilder.com/creating-wordpress-plugin-easier-think/</a></li><li>WRITING GOOD COMMIT MESSAGES ON GIT: <a href="https://github.com/erlang/otp/wiki/writing-good-commit-messages">https://github.com/erlang/otp/wiki/writing-good-commit-messages</a></li><li>MY WEB DEVELOPMENT VS CODE SETTINGS — THEMES, EXTENSIONS, TIPS: <a href="https://dev.to/lampewebdev/my-web-development-vs-code-settings-theme-extensions-tips-and-tricks-1324?utm_source=digest_mailer&amp;utm_medium=email&amp;utm_campaign=digest_email">https://dev.to/lampewebdev/my-web-development-vs-code-settings-theme-extensions-tips-and-tricks-1324?utm_source=digest_mailer&amp;utm_medium=email&amp;utm_campaign=digest_email</a></li><li>10 CLASSIC BUT ESSENTIAL (FREE) UTILITIES FOR WINDOWS 10: <a href="https://www.computerworld.com/article/3300737/10-classic-but-essential-and-free-utilities-for-windows-10.html#slide4">https://www.computerworld.com/article/3300737/10-classic-but-essential-and-free-utilities-for-windows-10.html#slide4</a></li><li>STRONG RANDOM PASSWORD GENERATOR: <a href="https://passwordsgenerator.net/">https://passwordsgenerator.net/</a></li><li>HOW TO INSTALL CAKE PHP WITH COMPOSER: <a href="https://book.cakephp.org/3.0/en/installation.html">https://book.cakephp.org/3.0/en/installation.html</a></li><li>HOW TO INSTALL COMPOSER ON WINDOWS: <a href="https://github.com/composer/windows-setup">https://github.com/composer/windows-setup</a></li><li>PHP DOWNLOAD FILES IN LARAVLE USING RESPONSE::DOWNLOAD: <a href="https://stackoverflow.com/questions/20415444/download-files-in-laravel-using-responsedownload">https://stackoverflow.com/questions/20415444/download-files-in-laravel-using-responsedownload</a></li><li>IMPORT CSV DATA TO MYSQL DATABASE WITH LARAVEL: <a href="https://makitweb.com/import-csv-data-to-mysql-database-with-laravel/">https://makitweb.com/import-csv-data-to-mysql-database-with-laravel/</a></li><li>WHAT IS THE IOC CONTAINER IN LARAVEL: <a href="https://vegibit.com/what-is-the-ioc-container-in-laravel/">https://vegibit.com/what-is-the-ioc-container-in-laravel/</a></li><li>WHAT IS A LARAVEL INTERFACE: <a href="https://vegibit.com/what-is-a-laravel-interface/">https://vegibit.com/what-is-a-laravel-interface/</a></li><li>SEND EMAIL WITH LARAVEL AND SENDGRID: <a href="https://sendgrid.com/docs/for-developers/sending-email/laravel/">https://sendgrid.com/docs/for-developers/sending-email/laravel/</a></li><li>IMPLEMENTING ROLES AND PERMISSIONS IN LARAVEL: <a href="https://thewebtier.com/laravel/understanding-roles-permissions-laravel/">https://thewebtier.com/laravel/understanding-roles-permissions-laravel/</a></li><li>LARAVEL RESTFUL API WITH JWT: <a href="https://tutsforweb.com/restful-api-in-laravel-56-using-jwt-authentication/">https://tutsforweb.com/restful-api-in-laravel-56-using-jwt-authentication/</a></li><li>LARAVEL REST API WITH PASSPORT: <a href="https://www.tutsmake.com/create-rest-api-using-passport-laravel-5-8-authentication/">https://www.tutsmake.com/create-rest-api-using-passport-laravel-5-8-authentication/</a></li><li>HOW TO USE CURL COMMAND — TUTORIAL WITH EXAMPLES: <a href="https://www.booleanworld.com/curl-command-tutorial-examples/">https://www.booleanworld.com/curl-command-tutorial-examples/</a></li><li>SECURING YOUR LARAVEL API WITH JWT IN 10 MINUTES OR LESS: <a href="https://medium.com/@aschmelyun/securing-your-laravel-api-with-jwts-in-10-minutes-or-less-9622541244f6">https://medium.com/@aschmelyun/securing-your-laravel-api-with-jwts-in-10-minutes-or-less-9622541244f6</a></li><li>BUILD RESTFUL API WITH LUMEN: <a href="https://medium.com/@Dotunj/building-a-rest-api-with-lumen-403b67fec4d6">https://medium.com/@Dotunj/building-a-rest-api-with-lumen-403b67fec4d6</a></li><li>GENERATE FAKE DATA WITH PHP LIBRARY FAKER: <a href="https://github.com/fzaninotto/Faker#formatters">https://github.com/fzaninotto/Faker#formatters</a></li><li>5 MOST COMMON DESIGN PATTERNS IN PHP: <a href="https://medium.com/@ivorobioff/the-5-most-common-design-patterns-in-php-applications-7f33b6b7d8d6">https://medium.com/@ivorobioff/the-5-most-common-design-patterns-in-php-applications-7f33b6b7d8d6</a></li><li>REPOSITORY DESIGN PATTERN DONE RIGHT: <a href="https://itnext.io/repository-design-pattern-done-right-in-laravel-d177b5fa75d4">https://itnext.io/repository-design-pattern-done-right-in-laravel-d177b5fa75d4</a></li><li>DESIGN PATTERNS: <a href="https://www.script-tutorials.com/design-patterns-in-php/">https://www.script-tutorials.com/design-patterns-in-php/</a></li><li>ADVANCED LARAVEL 14 TOPICS AND LINKS TO LEARN THEM: <a href="https://laraveldaily.com/advanced-laravel-20-topics-and-links-to-learn-them/">https://laraveldaily.com/advanced-laravel-20-topics-and-links-to-learn-them/</a></li><li>MANAGING VIEWS AND API FROM THE SAME CONTROLLER: <a href="https://stackoverflow.com/questions/46439917/managing-views-and-api-from-the-same-controller">https://stackoverflow.com/questions/46439917/managing-views-and-api-from-the-same-controller</a></li><li>BEGINNERS GUIDE TO USING REDIS: <a href="https://www.itechempires.com/2018/06/beginners-guid-to-use-redis-with-laravel-framework/">https://www.itechempires.com/2018/06/beginners-guid-to-use-redis-with-laravel-framework/</a></li><li>THE BEAUTY OF DOCKER FOR LOCAL LARAVEL DEVELOPMENT: <a href="https://dev.to/aschmelyun/the-beauty-of-docker-for-local-laravel-development-13c0">https://dev.to/aschmelyun/the-beauty-of-docker-for-local-laravel-development-13c0</a></li><li>VAGRANT PROVISIONING WITH DOCKER: <a href="https://medium.com/@Joachim8675309/vagrant-provisioning-with-docker-3621df12092a">https://medium.com/@Joachim8675309/vagrant-provisioning-with-docker-3621df12092a</a></li><li>SSH SHELL COMMANDS EXPLANATION: <a href="https://explainshell.com/explain?cmd=ssh-keygen+-t+rsa+-C+%22server%22">https://explainshell.com/explain?cmd=ssh-keygen+-t+rsa+-C+%22server%22</a></li><li>LARAVEL QUEUES USING REDIS AND HORIZON: <a href="https://voltagead.com/the-basics-of-laravel-queues-using-redis-and-horizon/">https://voltagead.com/the-basics-of-laravel-queues-using-redis-and-horizon/</a></li><li>SHORTHAND COMPARISONS IN PHP: <a href="https://stitcher.io/blog/shorthand-comparisons-in-php">https://stitcher.io/blog/shorthand-comparisons-in-php</a></li><li>WHAT IS THE DIFFERENCE BETWEEN find(), findOrFail() etc: <a href="https://stackoverflow.com/questions/33027047/what-is-the-difference-between-find-findorfail-first-firstorfail-get">https://stackoverflow.com/questions/33027047/what-is-the-difference-between-find-findorfail-first-firstorfail-get</a></li><li>LARAVEL HORIZON BY TAYLOR OTWELL: <a href="https://medium.com/@taylorotwell/introducing-laravel-horizon-4585f66e3e">https://medium.com/@taylorotwell/introducing-laravel-horizon-4585f66e3e</a></li><li>LARAVEL HORIZON WITH NGINX AND UBUNTU: <a href="https://dev.to/shuv1824/laravel-horizon-with-nginx-and-ubuntu-18-04-on-digitalocean-1fod">https://dev.to/shuv1824/laravel-horizon-with-nginx-and-ubuntu-18-04-on-digitalocean-1fod</a></li><li>JWT AUTHENTICATION USING POSTMAN: <a href="https://blog.pusher.com/laravel-jwt/">https://blog.pusher.com/laravel-jwt/</a></li><li>RENDERING EXCEPTIONS IN LARAVEL: <a href="https://divinglaravel.com/rendering-exceptions">https://divinglaravel.com/rendering-exceptions</a></li><li>HOW TO CREATE A PACKAGE IN LARAVEL: <a href="https://wisdmlabs.com/blog/create-package-laravel/">https://wisdmlabs.com/blog/create-package-laravel/</a></li><li>CREATE A LARAVEL PACKAGE AND PUBLISH IN 10 MINUTES: <a href="https://medium.com/simplex-internet-blog/build-your-own-laravel-package-in-10-minutes-using-composer-867e8ef875dd">https://medium.com/simplex-internet-blog/build-your-own-laravel-package-in-10-minutes-using-composer-867e8ef875dd</a></li><li>GIT REBASE WORKFLOW TO GITHUB: <a href="https://dev.to/renlesterdg/git-rebasing-and-pushing-to-github-3c6c">https://dev.to/renlesterdg/git-rebasing-and-pushing-to-github-3c6c</a></li><li>LARAVEL MIGRATION ARRAY TYPE: <a href="https://stackoverflow.com/questions/32954424/laravel-migration-array-type-store-array-in-database-column">https://stackoverflow.com/questions/32954424/laravel-migration-array-type-store-array-in-database-column</a></li><li>WHAT IS THE DIFFERENCE BETWEEN AN APACHE, NGINX AND NODEJS SERVER? <a href="https://www.quora.com/What-is-the-difference-between-an-Apache-nginx-server-and-a-Node-js-one-Why-cant-the-former-listen-to-data-I-send-it-and-store-it-to-a-database-Or-can-it">https://www.quora.com/What-is-the-difference-between-an-Apache-nginx-server-and-a-Node-js-one-Why-cant-the-former-listen-to-data-I-send-it-and-store-it-to-a-database-Or-can-it</a></li><li>MUST KNOW HTTP RESPONSE STATUS CODES FOR ANY DEVELOPER: <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Status">https://developer.mozilla.org/en-US/docs/Web/HTTP/Status</a></li><li>LARAVEL UPLOAD IMAGES TO AMAZON S3: <a href="https://medium.com/@sehmbimanvir/laravel-upload-files-to-amazon-s3-a17d013f53ce">https://medium.com/@sehmbimanvir/laravel-upload-files-to-amazon-s3-a17d013f53ce</a></li><li>LARAVEL VALIDATION ONE OF TWO FIELDS MUST BE FILLED: <a href="https://stackoverflow.com/questions/27875366/laravel-validation-one-of-two-fields-must-be-filled">https://stackoverflow.com/questions/27875366/laravel-validation-one-of-two-fields-must-be-filled</a></li><li>WHEN TO USE NOSQL — GETTING STARTED WITH MONGO DB IN LARAVEL: <a href="https://medium.com/@alexrenoki/when-to-use-nosql-getting-started-with-mongodb-in-laravel-f5376ceaf545">https://medium.com/@alexrenoki/when-to-use-nosql-getting-started-with-mongodb-in-laravel-f5376ceaf545</a></li><li>SETUP MONGODB FOR LARAVEL: <a href="https://medium.com/@alexrenoki/using-mongodb-with-laravel-on-ploi-io-188ca364021d">https://medium.com/@alexrenoki/using-mongodb-with-laravel-on-ploi-io-188ca364021d</a></li><li>HOW TO NOTIFY ON WHATSAPP WITH LARAVEL: <a href="https://www.twilio.com/blog/create-laravel-php-notification-channel-whatsapp-twilio">https://www.twilio.com/blog/create-laravel-php-notification-channel-whatsapp-twilio</a></li><li>SENDING SLACK NOTIFICATION FROM YOUR LARAVEL APP: <a href="https://medium.com/@olayinka.omole/sending-slack-notifications-from-your-laravel-app-1bdb6e4e4127">https://medium.com/@olayinka.omole/sending-slack-notifications-from-your-laravel-app-1bdb6e4e4127</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce8cfe65ee9e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>