<?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 Stephen Jude on Medium]]></title>
        <description><![CDATA[Stories by Stephen Jude on Medium]]></description>
        <link>https://medium.com/@stephenjudeso?source=rss-de19c24123ef------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QudhVygwdJz3Sq8v3jyrnQ.jpeg</url>
            <title>Stories by Stephen Jude on Medium</title>
            <link>https://medium.com/@stephenjudeso?source=rss-de19c24123ef------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 18:04:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@stephenjudeso/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[Testing And Debugging Laravel APIs]]></title>
            <link>https://medium.com/@stephenjudeso/testing-and-debugging-laravel-apis-88195cb1c72a?source=rss-de19c24123ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/88195cb1c72a</guid>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[php]]></category>
            <dc:creator><![CDATA[Stephen Jude]]></dc:creator>
            <pubDate>Thu, 28 Oct 2021 07:29:30 GMT</pubDate>
            <atom:updated>2021-10-28T07:33:38.062Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jjGp4CnGLF6nvzfZOo5IeQ.png" /></figure><p>Hey guys, last year I published Laravel API Test Helper, a <a href="https://github.com/stephenjude/api-test-helper">Laravel package</a> that can help you in developing and debugging your Laravel APIs. Since last year, 80% of my work has been around building APIs both at <a href="https://stephenjude.me/articles/athtgroup.com">Across The Horizon Technologies</a> and at <a href="https://stephenjude.me/articles/greenlite.com.ng">Greenlite Nigeria</a>. That’s why I have been putting out packages, which are code snippets that I end up duplicating across different projects.</p><p>In this tutorial, I will walk you through what the package is all about and how it can help speed up your API development with the Laravel framework.</p><p>Laravel Api Test Helper is a trait based Laravel package, meaning that it just contains a PHP trait that you can include in your test class, that’s all.</p><p>Let me show you :)</p><h3>Installation &amp; Setup</h3><p>For this tutorial, I believe you have created a Laravel application . If you are new to Laravel, you can check out my <a href="https://stephenjude.me/series/laravel-lessons">Laravel Series</a> for beginners.</p><p>First, let’s install the package with via composer:</p><pre>composer require stephenjude/api-test-helper --dev</pre><p>Next, we need you to include the helper trait inside our TestCase.php. This class comes with every Laravel installation. You can find it inside the test <strong>directory</strong> of your project.</p><pre>&lt;?php<br>namespace Tests;</pre><pre>use Illuminate\Foundation\Testing\TestCase as BaseTestCase;<br>use Stephenjude\ApiTestHelper\WithApiHelper;</pre><pre>abstract class TestCase extends BaseTestCase<br>{<br>    use CreatesApplication;<br>    use WithApiHelper; // This is our api helper trait<br>  <br>    ...<br>}</pre><p>You can choose to include this trait to the particular test class that contains your API tests, but keeping it here makes it accessible to all our test class since they will extend the TestCase abstract class.</p><h3>Usage: Testing and Debugging APIs</h3><p>For this tutorial, we will create a single endpoint that fetches all the users in our database. Let start by creating a test class for our user list endpoint.</p><pre>php artisan make:test UserApiTest</pre><p>This will create a test file inside the tests\Feature directory in your Laravel project. This is the default for Laravel, but you can configure this directory to suit your project :)</p><blockquote>PS: Make sure you have added your database credentials to your .env file.</blockquote><p>Now let’s add the tests for our user list endpoint. We will use the Laravel getJson() to make a request to our endpoint and then set it to our test helper property $this-&gt;response. This gives the Api Test Helper package access to the api response, with which the helper trait can help you test and debug the response.</p><pre>&lt;?php</pre><pre>namespace Tests\Feature;</pre><pre>use App\Models\User;<br>use Tests\TestCase;</pre><pre>class UserApiTest extends TestCase<br>{<br>    public function test_get_user_list()<br>    {<br>        User::factory()-&gt;create();</pre><pre>        $this-&gt;response = $this-&gt;getJson(&#39;api/users&#39;);</pre><pre>        $this-&gt;dumpApiData(); // Dumps api response on console<br>    }<br>}</pre><h3>Dumping API Response: dumpApiData()</h3><p>So I started out with the dumpApiData() with allows us to dump the response returned from our response, this response can either be a valid response or an error response from the api or your application error itself.</p><h3>Log API Response: logApiData()</h3><p>You can also log the response of your api by calling the logApiData() . This method logs all the response on your app to your log file.</p><pre>...<br>$this-&gt;response = $this-&gt;getJson(&#39;api/users&#39;);</pre><pre>$this-&gt;logApiData();<br>...</pre><h3>Decoding API Response: decodeApiResponse()</h3><p>You can also decode the API response by calling the decodeApiResponse() method, which returns the response from your API.</p><blockquote>PS: I will advise the use of the json() method provided in Laravel. I have already built this package before I learned about it. $this-&gt;response-&gt;json()</blockquote><h3>Testing Successful API Response</h3><p>To test successful response, this package provides three(3) methods which I am going to explain with example.</p><p>To make a valid request, lets create a valid controller and route that can handle our request.</p><pre>php artisan make:controller UserApiController -r</pre><p>Here is our controller class with a valid response that returns list user.</p><pre>&lt;?php</pre><pre>namespace App\Http\Controllers;</pre><pre>use App\Models\User;<br>use Illuminate\Http\Request;</pre><pre>class UserApiController extends Controller<br>{<br>    public function index()<br>    {<br>        return response()-&gt;json([<br>            &#39;success&#39; =&gt; true,<br>            &#39;data&#39; =&gt; User::all([&#39;id&#39;, &#39;name&#39;, &#39;email&#39;,])<br>        ]);<br>    }<br>    <br>    ...</pre><p>Now let’s add our user list route to api.php</p><pre>Route::get(&#39;/users&#39;, [UserApiController::class, &#39;index&#39;]);</pre><p>Now that we have a valid response for our endpoints, lets test the valid response methods.</p><h3>assertApiSuccess()</h3><pre>...<br>$this-&gt;response = $this-&gt;getJson(&#39;api/users&#39;);</pre><pre>$this-&gt;assertApiSuccess(); // assert response success<br>...</pre><p>The method asserts the response contains the success field with true value &#39;success&#39; =&gt; true or fails if it doesn&#39;t.</p><h3>assertApiResponse($data)</h3><p>The method asserts the response contains the actual data or fails if it doesn’t.</p><pre>...<br>$user = User::factory()-&gt;create()-&gt;only([&#39;id&#39;, &#39;name&#39;, &#39;email&#39;]);</pre><pre>$this-&gt;response = $this-&gt;getJson(&#39;api/users/&#39;.$user[&#39;id&#39;]);</pre><pre>$this-&gt;assertApiResponse($user); // assert actual data<br>...</pre><h3>assertApiResponseCollection($data)</h3><p>The method asserts the response contains the actual collection or fails if it doesn’t.</p><pre>...<br>User::factory()-&gt;count(2)-&gt;create();</pre><pre>$this-&gt;response = $this-&gt;getJson(&#39;api/users&#39;);</pre><pre>$this-&gt;assertApiResponseCollection(User::all([&#39;id&#39;, &#39;name&#39;, &#39;email&#39;])); // assert actual collection<br>...</pre><h3>Conclusion</h3><p>I believe you have learnt how to speed up your development process with this package and if you are new, you basically understand how to test your endpoints. You can find the link to the repository for this tutorial below and please don’t forget to star the package repository.</p><ul><li><a href="https://github.com/stephenjude/api-test-helper">Package Repository</a></li><li><a href="https://github.com/stephenjude/Liteuser">Tutorial Repository</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88195cb1c72a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Setup A Custom Artisan Command And Calculate The Execution Time]]></title>
            <link>https://medium.com/@stephenjudeso/how-to-setup-a-custom-artisan-command-and-calculate-the-execution-time-66323055b80e?source=rss-de19c24123ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/66323055b80e</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[artisan]]></category>
            <category><![CDATA[console]]></category>
            <category><![CDATA[cli-commands]]></category>
            <dc:creator><![CDATA[Stephen Jude]]></dc:creator>
            <pubDate>Mon, 29 Jun 2020 21:01:02 GMT</pubDate>
            <atom:updated>2020-06-29T21:01:02.077Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*SagjVmyLJejjGdjEK0WLJg.png" /></figure><p>The CLI( Command Line Interface) is one of the best places to execute a long long-running task and Laravel has provided us with the Artisan Console that allows us to create our custom commands. I usually set up custom artisan commands whenever I am building something that requires initial setup or when I want to run queries on a large DB.</p><p>In this tutorial, I am going to show you how to set up a custom Artisan command and how to calculate the execution time of that command.</p><p>There are two ways to create a custom Artisan Console command, the Class-Based Command and the Closure Based Command.</p><p>The class base command will require us to set up a class for our artisan command (this class can be generated with the Artisan make:command). These custom command classes reside in the app/Console/Commands directory of your Laravel application.</p><p>The Closure-Based Command resides inside the routes/console.php files in your Laravel application.</p><p>For this tutorial, we will use the Closure Based Command.</p><h3>Creating Custom Command</h3><pre>//routes/console.php<br>﻿use App\Http\Controllers\UserController; <br>use Illuminate\Support\Facades\Artisan;</pre><pre>Artisan::command(&#39;send:emails&#39;, function(){<br>  $this-&gt;comment(&#39;Processing&#39;);<br>  app(UserController::class)-&gt;sendEmails();<br>  $this-&gt;comment(&#39;Processed&#39;);<br>});</pre><p>This is a closure based commands that send out emails. Add this to the console.php file in the routes directory of your laravel application.</p><p>Now we can run artisan send:email.</p><pre>php artisan send:emails</pre><h3>Custom Commands With Arguments</h3><p>Something you might need to accept CLI arguments for your custom command. This is very simple with Laravel. The same way we define route arguments is how we do it for a custom command.</p><pre>Artisan::command(&#39;send:emails {type} {delay}&#39;, function($type, $delay){<br>  $this-&gt;comment(&#39;Processing&#39;);<br>  app(UserController::class)-&gt;sendEmails($type, $delay);<br>  $this-&gt;comment(&#39;Processed&#39;);<br>});</pre><p>The arguments are enclosed with curly brackets and passed to the closure by type-hinting as the closure function parameters.</p><p>Running the command will now require we pass the email $type and the also a $delay .</p><pre>php artisan send:emails active 10</pre><h3>Calculating Execution Time</h3><p>To calculate the execution time of a custom command we can leverage the Laravel now() <a href="https://laravel.com/docs/7.x/helpers#method-now">helper method</a>. The now() helper returns an instance of Carbon, now we can leverage the diffInSeconds() or diffInMinutes() methods depending on what you want to return.</p><p>First, we have to define the start time and calculate the difference between the start and end time of the execution.</p><pre>//routes/console.php<br>use App\Http\Controllers\UserController; <br>use Illuminate\Support\Facades\Artisan;</pre><pre>Artisan::command(&#39;send:emails&#39;, function(){<br>  $start = now();<br>  $this-&gt;comment(&#39;Processing&#39;);<br>  app(UserController::class)-&gt;sendEmails();<br>  $time = $start-&gt;diffInSeconds(now());<br>  $this-&gt;comment(&quot;Processed in $time seconds&quot;);<br>});</pre><p>Here is a sample output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/0*y7ERSQDHvULYNjUi.png" /></figure><p>Now you know about the custom artisan command, you can now move your initial setup actions or long-running tasks that are in your Laravel applications to the console.</p><p>Join my <a href="https://stephenjude.me/newsletter">mailing list</a> and follow me on <a href="https://twitter.com/stephenjudeso">twitter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66323055b80e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Laravel Lessons: Getting Started]]></title>
            <link>https://medium.com/@stephenjudeso/laravel-lessons-getting-started-c21eb53f7ac9?source=rss-de19c24123ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/c21eb53f7ac9</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[laravel-eloquent]]></category>
            <category><![CDATA[blade-layouts]]></category>
            <category><![CDATA[laravel-migrations]]></category>
            <dc:creator><![CDATA[Stephen Jude]]></dc:creator>
            <pubDate>Sun, 28 Jun 2020 19:44:16 GMT</pubDate>
            <atom:updated>2020-06-28T19:49:26.490Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>This article was initially sent as a mail. I had to publish it so that others who didn’t subscribe to the blog series mailing list can follow along.</blockquote><p>Hi!</p><p>First, my name is <a href="https://twitter.com/stephenjudeso">Stephen Jude</a> and I have been a PHP/Laravel developer for three(3) years now.</p><p>The first thing you have to know is that Laravel is a PHP framework. So everything we are going to be talking about is going to be revolving around PHP(don’t worry, you will be fine).</p><p>Now let me walk you through what you are going to need for this series.</p><h3>Development Environment</h3><p>If you have been a PHP developer, you already know about XAMPP, WAMP, LAMP and MAMP. But there is more to setting up a Laravel development environment. Laravel is made up of PHP packages(lots of them) which requires a lot of PHP extensions that also requires lots of configurations. The good news is that all these configurations have been taken care of.​</p><p>If you are using Windows like me, just install <a href="https://laragon.org/download/">Laragon</a>. Laragon is a fast and easy way to create an isolated dev environment on Windows. Includes Mysql, PHP Memcached, Redis, Apache and Nginx.​</p><p>For Linux or Mac, I recommend <a href="https://laravel.com/docs/master/homestead">Laravel Homestead</a>, an official pre-packaged <a href="https://www.vagrantup.com/docs/installation/">Vagrant</a> box that provides you with a wonderful development environment without requiring you to install PHP, a web server, and any other server software on your local machine.</p><p>After trying <a href="https://laravel.com/docs/7.x/valet">Laravel Valet</a> on my new Mac Book, I will like to recommend it. It’s quite cool.</p><h3>PHPSANDBOX.io</h3><p>If you are not ready to set up anything on your local machine, <a href="https://phpsandbox.io/">PHPSandbox </a>is an option for you. Its a playground for PHP and Laravel developer. Just login with your GitHub account and you are good to go. I will be sharing some of my code from there. Thanks to <a href="https://twitter.com/bosunski">@Bosunki</a> and his team for this awesome project.</p><h3>Basic OOP Concept In PHP</h3><p>An understanding of Object-Oriented Programming in PHP is a big plus for this Laravel series. Forget about the jargon you will see on google about OOP. Just know you will be dealing with <strong>classes </strong>instead of the traditional <strong>functions </strong>you are already used to.</p><p>Check out w3school OOP PHP <a href="https://www.w3schools.com/php/php_oop_what_is.asp">tutorial</a>. If you are a visual learner, check out this <a href="https://www.youtube.com/watch?v=dQxuYRNbL_M">crash course</a> by Traversy Media.</p><h3>Road Map​</h3><p>​Here are the things we are going to be covering in this series:</p><ul><li><a href="http://stephenjude.me/articles/laravel-lessons-installation-setup">Installation &amp; set up</a></li><li><a href="http://stephenjude.me/articles/laravel-lessons-routing">Routing</a></li><li><a href="http://stephenjude.me/articles/laravel-lessons-layouts-views">Layouts &amp; Views</a></li><li><a href="http://stephenjude.me/articles/laravel-lesson-controllers-requests-validations">Controllers, Requests &amp; Validations</a></li><li><a href="http://stephenjude.me/articles/laravel-lessons-database-migrations-and-eloquent-models">Database (Migrations And Eloquent Models)</a></li><li><a href="http://stephenjude.me/articles/laravel-lessons-hosting-deployment-error-tracking">Hosting, Deployments &amp; Error Tracking</a></li></ul><h3>​Questions</h3><p>I know you have lots of questions about Laravel. Feel free to send me a DM on <a href="https://twitter.com/stephenjudeso">twitter(<strong>@stephenjudeso</strong>)</a> or send a mail via <a href="http://hello@stephenjude.me"><strong>hello@stephenjude.me</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c21eb53f7ac9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Started With PHPSandbox.io — An Online Code Sandbox For PHP]]></title>
            <link>https://medium.com/@stephenjudeso/getting-started-with-phpsandbox-io-an-online-code-sandbox-for-php-2b04bb3abfbf?source=rss-de19c24123ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b04bb3abfbf</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[codesandbox]]></category>
            <category><![CDATA[phpsandbox]]></category>
            <category><![CDATA[php-cli]]></category>
            <category><![CDATA[larave]]></category>
            <dc:creator><![CDATA[Stephen Jude]]></dc:creator>
            <pubDate>Sun, 19 Apr 2020 16:40:12 GMT</pubDate>
            <atom:updated>2020-04-19T16:52:21.056Z</atom:updated>
            <content:encoded><![CDATA[<h3>Getting Started With PHPSandbox.io — An Online Code Sandbox For PHP</h3><blockquote>This article was originally published on <a href="http://stephenjude.me/articles/getting-started-with-phpsandboxio-an-online-code-sandbox-for-php">my blog</a> on March 17, 2020.</blockquote><p>Last week I sent out a getting started mail to everyone following my <a href="https://bit.ly/laravel-lessons">Laravel series</a> for beginners. I mentioned <a href="https://phpsandbox.io/">PHPSandbox.io</a> for those who don’t want to setup a local development environment.</p><p>So whats this PHPSandbox all about?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qZsfK1VqfrB5kdjvmVO7Xw.png" /></figure><h3>PHPSandbox</h3><p>PHPSandbox is basically a play ground for PHP developers. It has lots of handy features. Its a place where you can try out code snippets, PHP <a href="https://packagist.org/">packages</a>. Its the coolest way to share PHP code snippets and you can run it from anywhere its embedded.</p><blockquote>PHPSandbox is an online Code Sandbox made for PHP.</blockquote><p>With PHPSandbox you can create a PHP CLI app, PHP web app or Laravel app.</p><p>In this article we are going to be focusing on creating a Laravel application with PHPSandbox.</p><h3>Let me show you!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/919/1*0p6E-bZEBqPYAXjldrnnPA.png" /><figcaption>Embedded code using PHPSandbox</figcaption></figure><p><em>That’s me trying out Zttp, a handy PHP package by </em><a href="https://twitter.com/adamwathan"><em>Adam Wathan</em></a><em>.</em></p><h3>How To Create A PHP/Laravel Notebook</h3><p>Every of your code snippets on PHPSandbox is saved as a notebook for you. To get started, go to <a href="http://stephenjude.me/articles/PHPSandbox.io">PHPSandbox.io</a> and launch your own notebook. Make sure you signup with your GitHub account so your notebook won’t get lost.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*L3PFP3-mTfTlF_vA.png" /></figure><h3>Laravel Notebook</h3><p>PHPSandbox supports Laravel. This feature according to <a href="https://twitter.com/bosunski">Bosunski</a>, is still in development but its very cool. You can now run a full-fledged Laravel application without setting up a local development environment. Hurray!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rW0RiCzOj9Rdh0nZ.png" /><figcaption>Laravel in PHPSandbox</figcaption></figure><p>Laravel in PHPSandbox</p><p>I know you already have lots of questions about requiring PHP/Laravel packages, creating .env files and running artisan commands. I saw it coming :)</p><h3>PHP/Laravel Packages</h3><p>You can require PHP/Laravel packages. Doing this is very simple with PHPSandbox and there is no need for composer install, everything is all worked out for you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6dR03jSbICqkUWW5.png" /></figure><h3>Laravel DotEnv File</h3><p>You can edit your .env file variables via PHPSandbox UI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/0*XvNZXAUGCVp3byWa.png" /></figure><h3>PHP Artisan Commands</h3><p>Running Laravel artisan commands is done via PHPSandbox UI</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tqAHooqv8SKz82MG.png" /></figure><h3>Import Laravel Projects From GitHub</h3><p>I think this is the sweetest part of PHPSandbox. You can import your Laravel project from GitHub and continue working on them on the from here. This is cool :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GRuxwHHETd7SswM0.png" /></figure><blockquote>Currently you can only import a Laravel project.</blockquote><h3>Conclusion</h3><p>Lots of features are still in beta and more are still coming to PHPSandbox. If you are following my <a href="http://stephenjude.me/articles/bit.ly/laravel-lessons">Laravel series</a> and you are having a hard time setting up a local development environment, maybe you should give <a href="http://stephenjude.me/articles/phpsandbox.io">PHPSandbox</a> a trial.</p><p>Special thanks to <a href="https://twitter.com/bosunski">Bosunski </a>and his team for all the works and effort they have been putting into this project. THANK GUYS!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b04bb3abfbf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Deploy A Laravel Project On Linux Shared Hosting In 5 Minutes]]></title>
            <link>https://medium.com/@stephenjudeso/how-to-deploy-a-laravel-project-on-linux-shared-hosting-in-5-minutes-15280dafac22?source=rss-de19c24123ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/15280dafac22</guid>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[deploy]]></category>
            <category><![CDATA[servers]]></category>
            <dc:creator><![CDATA[Stephen Jude]]></dc:creator>
            <pubDate>Mon, 13 Jan 2020 23:14:07 GMT</pubDate>
            <atom:updated>2020-01-13T23:14:07.525Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ghPtx6kY9Ib4GRyhfN3nwQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@chrisliverani?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Chris Liverani</a> on <a href="https://unsplash.com/s/photos/fast?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>In my <a href="http://stephenjude.tech/articles/a-recap-of-2019-code19">2019 review</a> I mentioned that I was working on a side project which is setting up a <a href="https://getlitehost.com/index.php">shared hosting platform</a> with <a href="https://laravel.com/">Laravel </a>developers in mind.</p><p>I have deployed lots of Laravel projects on Linux shared hosting and I know how painful it is especially when there is no ssh access.</p><p><a href="https://getlitehost.com/">Litehost</a> is here to solve that problem. It has ssh access on all its hosting plans and it has Composer, Git &amp; PHP CLI pre-installed on its servers. Finally it pretty affordable, just <strong>₦400/month ($1.11). </strong>Isn’t that amazing? <a href="https://getlitehost.com/register.php">Litehost</a> is live and its been accepting customer since 24th December 2019.</p><p>Just yesterday I moved my blog which I built with Laravel to Litehost server. So I am going to show you how I did it in 5 minutes.</p><p>Lets get to the main thing. I will assume you have already a Cpanel account with ssh access on it.</p><h3>Project Setup</h3><p>Push your Laravel project to a remote git repository. I already have <a href="https://github.com/stephenjude/stephenjude.tech/">my blog’s repository</a> on GitHub and its open source.</p><p>Now lets go back to our Cpanel. If you have ssh access on your hosting plan, look for terminal under the advanced tab and click on it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/0*iGusnaOrlbh7Zo6c.png" /></figure><p>Move into your public directory and pull your Laravel project from your remote repository.</p><pre>cd public_html</pre><pre>git clone <a href="https://github.com/stephenjude/stephenjude.tech.git">https://github.com/stephenjude/stephenjude.tech.git</a> blog</pre><p>With this command you now have your project inside <strong><em>public_html/blog </em></strong>folder.</p><p>Make a copy of your <strong>.env.example</strong> file and update your <strong>.env</strong> variables. You can do this using the CPanel file manager. Remember that <strong>Show Hidden Files (dotfiles)</strong> must be enabled from the CPanel file manager settings.</p><p>Now enter into the project folder and pull all the required dependencies.</p><pre>cd blog</pre><pre>composer install</pre><p>Fine, now we have our Laravel project ready to be served but its remaining one more thing. Laravel makes use of the storage folder for lots of things like writing logs, caching views and local file storage for uploads.</p><pre>chmod 777 storage</pre><p>I know this is not advisable but we are not on a VPS. We are on a shared server with some some limits to what we can do. Yeah.</p><p>Finally you have to setup your<strong> .htaccess </strong>file to point to your Laravel <strong>public </strong>folder. You can find this <strong>.htaccess</strong> file inside the <strong>public_html</strong> folder. if its not there then create one and update it with the code below.</p><pre>RewriteEngine on<br>RewriteCond %{REQUEST_URI} !^blog/public<br>RewriteRule ^(.*)$ /blog/public/$1 [L]</pre><p>That’s it, you have successfully deployed your Laravel project.</p><h3>Conclusion</h3><p>I know this not the best way to deploy a Laravel project but I believe it’s efficient enough to get your project up and running on a <a href="https://getlitehost.com/sharedhosting.php">Linux shared hosting</a>.</p><p>I am still working on setting up shared hosting plans tailored for Laravel developers. The idea is to save time and deploy faster on shared hosting.</p><p>Join my <a href="https://stephenjude.tech/newsletter">weekly newsletter</a> and never miss out on new tutorials, tips and more.</p><p>You can also follow me on twitter <a href="https://twitter.com/stephenjudeso">@stephenjudeso</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15280dafac22" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why You Might Need Multiple Instances of Redis For Your Laravel Application]]></title>
            <link>https://medium.com/@stephenjudeso/why-you-might-need-multiple-instances-of-redis-for-your-laravel-application-1091a724b00d?source=rss-de19c24123ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/1091a724b00d</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[servers]]></category>
            <category><![CDATA[redis-server]]></category>
            <category><![CDATA[qwickpage]]></category>
            <category><![CDATA[redis]]></category>
            <dc:creator><![CDATA[Stephen Jude]]></dc:creator>
            <pubDate>Wed, 11 Dec 2019 02:25:58 GMT</pubDate>
            <atom:updated>2019-12-11T10:50:24.305Z</atom:updated>
            <content:encoded><![CDATA[<h3>Using Multiple Instances of Redis For Your Laravel Application</h3><p>I worked as a Laravel backend developer at<a href="https://qwickpage.com"> Qwickpage</a> for a year. Qwickpage has lots of products that are still in their development stage but its is primarily a social network for entrepreneurs.</p><p>While at Qwickpage we have two instances of the core application running on the server. One is for development while the other is served live (production).</p><p>We make use of <a href="https://redis.io/">Redis </a>as our caching system for the two instances of the app and the end result was a conflict.</p><p>The two applications (dev &amp; live) were using the same instance of Redis on the server, each one keeps overriding the cached data of the other and returning wrong cached data.</p><h3>How Did We Fix This</h3><p>We fixed this by creating another instance of Redis that runs on port 6380. So the live app takes port 6379 while dev app takes 6380; We now have two instances of Redis running on our server.</p><p>In this post, I will show you how you can create another instance of Redis on your Linux server. I will assume your already have Redis installed on your Linux server.</p><h3>Now Lets Go!</h3><p>To create another instance of Redis we need to duplicate the existing Redis configuration file:</p><pre>cp /etc/redis/redis_6379.conf /etc/redis/redis_6380.conf</pre><p>Update <strong><em>port 6380 </em></strong>config file (<em>etc/redis/redis_6380.conf</em>)<strong><em> </em></strong>like this:</p><pre>pidfile /var/run/redis_6380.pid<br>port 6380<br>logfile /var/log/redis/redis_6380.log<br>dir /var/lib/redis/6380</pre><p>Create a <strong><em>port 6380</em></strong> working directory:</p><pre>mkdir /var/lib/redis/6380</pre><p>Update <strong><em>port 6379</em></strong> (<em>/etc/init.d/redis_6379</em>) service script from this:</p><pre>EXEC=/usr/local/bin/redis-server<br>CLIEXEC=/usr/local/bin/redis-cli<br>PIDFILE=/var/run/redis_6379.pid<br>CONF=&quot;/etc/redis/6379.conf&quot;<br>REDISPORT=&quot;6379&quot;</pre><p>to this:</p><pre>NAME=`basename ${0}`<br>EXEC=/usr/local/bin/redis-server<br>CLIEXEC=/usr/local/bin/redis-cli<br>PIDFILE=/var/run/${NAME}.pid<br>CONF=&quot;/etc/redis/${NAME}.conf&quot;<br>REDISPORT=&quot;${NAME#*_}&quot;</pre><p>Create a symlink script for port 6380 instance</p><pre>ln -s /etc/init.d/redis_6379 /etc/init.d/redis_6380</pre><p>To start the two Redis server instances run this:</p><pre>/etc/init.d/redis_6379 start<br>/etc/init.d/redis_6380 start</pre><p>You can now update the dotenv files of your two applications and assign them different Redis port respectively.</p><h3>Cheers!</h3><p>Join my <a href="http://stephenjude.tech/newsletter">weekly newsletter</a> and never miss out on news, tutorials, tips and more.</p><p>You can also follow me on twitter <a href="https://twitter.com/stephenjudeso">@stephenjudeso</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1091a724b00d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Upgrading To PHP 7.4 (Laragon)]]></title>
            <link>https://medium.com/@stephenjudeso/upgrading-to-php-7-4-laragon-862b9d204d0c?source=rss-de19c24123ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/862b9d204d0c</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[laragon]]></category>
            <category><![CDATA[php7]]></category>
            <category><![CDATA[upgrade-php]]></category>
            <dc:creator><![CDATA[Stephen Jude]]></dc:creator>
            <pubDate>Mon, 02 Dec 2019 20:39:40 GMT</pubDate>
            <atom:updated>2020-11-15T15:58:56.338Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iQukjC_AZSMfX1MWJXeYBg.jpeg" /></figure><p>Its no longer news that <a href="https://www.php.net/archive/2019.php#2019-11-28-1">PHP 7.4</a> is now available with lots of exciting new features. Yeah, and everyone wants to get a test of it :)</p><p>PHP 7.4 comes with numerous improvements and new features such as: Typed Properties, Arrow Functions, Null coalescing assignment operator, Unpacking Inside Arrays, Opcache Preloading etc.</p><p>You can walk your self through this new features <a href="https://www.php.net/manual/en/migration74.new-features.php">here</a>. Thanks to PHP development team. Bravo!</p><h3>Laragon</h3><p><a href="https://laragon.org/docs/">Laragon </a>is a modern, maintained and rich-featured local development environment. Laragon comes pre-installed with many popular applications like Node.js, PHP, Apache, Nginx, Redis, Composer, and MariaDB/MySQL. It’s currently available for only Windows OS. You can download it <a href="https://laragon.org/download/">here</a>.</p><blockquote><em>Please note that Laragon’s latest release as at the time I wrote this article haven’t shipped with PHP 7.4 and that’s the essence of this article.</em></blockquote><h3>Upgrading to PHP 7.4</h3><p>First lets download PHP 7.4 for <a href="https://windows.php.net/download#php-7.4">Windows</a>. Here is a direct link for <a href="https://windows.php.net/downloads/releases/php-7.4.12-Win32-vc15-x64.zip">64 bits</a> and <a href="https://windows.php.net/downloads/releases/php-7.4.12-nts-Win32-vc15-x86.zip">32 bits</a>.<a href="https://windows.php.net/downloads/releases/php-7.4.0-nts-Win32-vc15-x64.zip"> </a>Extract the downloaded zip file to Laragon’s PHP folder.</p><p>Note that Laragon’s PHP folder can be found on this path:</p><pre>C:\laragon\bin\php</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pueQcEVUhgWxK3hL.png" /></figure><p>Now open Laragon app on your system, click on Menu, navigate to the menu item, then change the PHP version to the latest one you have on your system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/0*vzRGX331tzXNU2oz.png" /></figure><p>Now you have your local development environment running PHP 7.4!</p><h4>Cheers !</h4><p>Join my <a href="http://stephenjude.tech/newsletter">weekly newsletter</a> and never miss out on news, tutorials, tips and more.</p><p>You can also follow me on twitter <a href="https://twitter.com/stephenjudeso">@stephenjudeso</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=862b9d204d0c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Started With Laravel Lite Blog]]></title>
            <link>https://medium.com/@stephenjudeso/getting-started-with-laravel-lite-blog-acf6242df89e?source=rss-de19c24123ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/acf6242df89e</guid>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[lite-blog]]></category>
            <category><![CDATA[blog]]></category>
            <category><![CDATA[php]]></category>
            <dc:creator><![CDATA[Stephen Jude]]></dc:creator>
            <pubDate>Fri, 18 Oct 2019 19:02:48 GMT</pubDate>
            <atom:updated>2019-10-18T19:02:48.808Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WOoVgRLUBjsFkKXr" /></figure><p>In my <a href="http://stephenjude.tech/articles/building-my-personal-blog">previous post</a>, I mentioned how I built <a href="https://github.com/stephenjude/lite-blog">Lite Blog</a>. In this post I will be detailing how to get started and some of the interesting features of <a href="https://github.com/stephenjude/lite-blog">Lite Blog</a>.</p><h3>Installation</h3><p>Installing Lite Blog is pretty simple. Its just like installing a Laravel application using composer.</p><pre>composer create-project --prefer-dist  stephenjude/lite-blog myblog</pre><p>After the installation, create your database and update <strong>.env </strong>file with your database credentials. After that run the setup command inside the project directory.</p><pre>cd myblog</pre><pre>php artisan setup:blog</pre><p>This will publish the public assets for the publishing platform (<a href="https://github.com/writingink/wink">wink</a>) and generate a login credentials for you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/0*mrkMriPf42j3JiCa.png" /></figure><p>Visit myblog.test on your local machine to see your homepage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RhuaOWt6F5IphtBt.PNG" /></figure><p>To create post visit myblog.test/editor and login with the generated credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8oL_J3yec6bmchOc.PNG" /></figure><h3>Site Configs</h3><p>Here we are going to set the site configuration for our blog. The site configs are inside the config/services.php file.</p><pre>&#39;meta&#39; =&gt; [<br>    &#39;site_name&#39; =&gt; &#39;My Perosnal Blog&#39;,<br>    &#39;mantra&#39; =&gt; &#39;Web &amp; Mobile Developer&#39;,      <br>],</pre><p>The site_name is the title of the blog while the mantra is what the site stands for usually under the title of the blog. Update them to fit your taste.</p><h3>Social Profile Links</h3><p>Inside config/services.php add your social media profile links.</p><pre>&#39;social&#39; =&gt; [<br>    &#39;linkedin&#39; =&gt; &#39;https://www.linkedin.com/in/username/&#39;,<br>    &#39;email&#39; =&gt; &#39;mailto:mail@gmail.com&#39;,<br>    &#39;medium&#39; =&gt; &#39;https://medium.com/@username&#39;,<br>    &#39;github&#39; =&gt; &#39;https://github.com/username&#39;,<br>    &#39;twitter&#39; =&gt; &#39;https://twitter.com/username&#39;,<br>    &#39;atom&#39; =&gt; &#39;#&#39;,<br>  ],</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oZ4H5ylImOtK4KDp.PNG" /></figure><h3>Unsplash Integration</h3><p>When creating post you might like to make use of free professional photos. Wink comes with Unsplash integration out of the box so head over to <a href="https://unsplash.com/oauth/applications">Unspash, </a>create a new Unsplash app. Grab the ‘Access Key’ and add it to your .env file as UNSPLASH_ACCESS_KEY</p><h3>Compiling assets (Optional)</h3><p>In case you want to recompile the javascript. You have to install the nodejs packages and then run dev, just like you do in your Laravel application.</p><pre>npm install</pre><pre>npm run dev</pre><h3>SEO — Search Engine Optimizations</h3><p>The Laravel publishing platform I used on this project (wink) made a very nice provision for SEO. It was designed that every post you publish has fields where you can add your post’s SEO data. I have implemented this on the resources/views/post.blade.php.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/0*62e4o0sJkY4lW_3T.png" /></figure><p>For the SEO image, I made use of post featured image. So automatically your featured image will appear as you share the post on twitter, facebook or any other social network sites.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/0*GzzBI0x0s-h77I9M.png" /></figure><p>I also used post tags as SEO keywords so adding tags to your post is a plus.</p><h3>Conclusion</h3><p><a href="https://github.com/stephenjude/lite-blog">Lite Blog</a> is a Laravel application and its highly flexible for modification. You can find the project on <a href="https://github.com/stephenjude/lite-blog">github </a>and its open for contributions.</p><p>If you have any question you can reach out to me on <a href="https://twitter.com/stephenjudeso">twitter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=acf6242df89e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Going Live On My Personal Blog]]></title>
            <link>https://medium.com/@stephenjudeso/going-live-on-my-personal-blog-67230f55743b?source=rss-de19c24123ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/67230f55743b</guid>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[blog]]></category>
            <category><![CDATA[php]]></category>
            <dc:creator><![CDATA[Stephen Jude]]></dc:creator>
            <pubDate>Fri, 11 Oct 2019 09:11:30 GMT</pubDate>
            <atom:updated>2019-10-11T09:11:30.798Z</atom:updated>
            <content:encoded><![CDATA[<p>Finally my personal blog is ready and I will be publishing my first blog post tomorrow.</p><p>I have been a PHP and Laravel developer for a while so its going to contain all that I have learnt while building PHP and Laravel application.</p><p>Join my mailing list to get updates when I publish posts, tips and tutorials.</p><p>Link:</p><p><a href="http://eepurl.com/gGa_G1">http://eepurl.com/gGa_G1</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67230f55743b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Run A Profitable Business In This Digital Age]]></title>
            <link>https://medium.com/@stephenjudeso/how-to-run-a-profitable-business-in-this-digital-age-76c7747b1634?source=rss-de19c24123ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/76c7747b1634</guid>
            <category><![CDATA[social-media]]></category>
            <category><![CDATA[online-presence]]></category>
            <category><![CDATA[digital-age]]></category>
            <category><![CDATA[branding]]></category>
            <category><![CDATA[business]]></category>
            <dc:creator><![CDATA[Stephen Jude]]></dc:creator>
            <pubDate>Wed, 10 Oct 2018 06:59:11 GMT</pubDate>
            <atom:updated>2018-10-10T06:59:11.252Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*PJKmOYQ3s_wzKj0R3W7qEw.jpeg" /></figure><p>There are lots of things in this digital era that can help any business to become more profitable. In this article I will explore 3 things in this digital age that will help you grow your business and become more profitable. They are:</p><h4>1. Online Presence.</h4><h4>2. Customer Relationship.</h4><h4>3. Branding.</h4><p>There are more you can do to run a profitable business in this technology age but I want to take this for a start since they are the basic ones.</p><p>Lets start with the first one…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*du-ynShV5MACLn6s4g2gfg.jpeg" /></figure><h3>Build Online presence:</h3><p>Building online presence for your business is the first step towards growing your business in this digital era.</p><p>An online presence is any existence of an individual or business that can be found via an online search. You have to learn how to engage with customers online and enhance that customer experience.</p><h4>Ways To Build Online Presence</h4><p>Creating websites, blogs, social media accounts for your business are the basic ways to bring your business online. And the good news is that most of the platforms that helps you build online presence are free and very easy to use. Platforms like <a href="https://www.blogger.com">Blogger,</a> <a href="http://facebook.com">Facebook</a>, <a href="http://twitter.com">Twitter </a>, WhatsApp etc.</p><p>From this platform you can tell the world what you can offer and even engage your customers who are on that platform.</p><p>For example: a Principal who is in-charge of a secondary school can create a school page where the school can share information with the parents of their students who are on that platforms and even show pictures and videos their achievements. Traders also can share pictures of new and better products they are selling. Is that not free advertisement?</p><p><em>Lets move to the next one…</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y4NGzUn03hFF7GuiBtCpWg.jpeg" /></figure><h3>Build Relationships With Your Customers</h3><p>Yes, I mean real relationship. Get to know your customers very well. Get their contacts, their email address, their social media account links and even their birthdays. Technology has made this very simple that you just need to search their names on the social media platform you think they and eventually you will find them.</p><blockquote>Get closer than ever to your customers. So close that you tell them what they need well before they realize it themselves.” — Steve Jobs</blockquote><h4>How To Relate With Your Customers</h4><p>You can relate with your customers through social media platforms. This is becoming the fastest and easiest way to connect with your customers.</p><p>You can also create groups and pages for your customers and share exciting contents that will keep them coming. Give them firsthand information about your product.</p><p>Another way to relate with your customers is through SMS( <em>short message service</em>) and through email. Here you can send them<strong> “product discount”</strong> emails, especially those <strong>“die hard”</strong> customers. When I say <strong>“die hard” </strong>customers I mean those customers that keep coming to buy from you.</p><p>Also don’t forget to send them occasional messages like Seasons Greetings, Christmas Wishes and most importantly BIRTHDAY WISHES.</p><blockquote>Always give people more than what they expect to get — Nelson Boswell</blockquote><p><em>Lets move to the last one…</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*AQ00pNycfb3Mprbr0JN_kg.jpeg" /></figure><h3>Differentiate Your Business (Branding)</h3><p>Build your brand. Yes, you have to start branding not just for your business but also for yourself. I may not know much about branding but I can show you the basics.</p><blockquote>Here is what Debbie Millman an American writer have to say: <em>Branding is deliberate differentiation.</em></blockquote><p>To build a brand for your business you have to choose a business name. You have to communicate your business values to your customers both online and offline.</p><p>What make you unique, what are your customers paying for? The answer is Brand.</p><h4>How Tow Build A Business Brand</h4><p>Firstly,<strong> </strong>you have to define your business brand mission statement. Your mission statement should contain what major(like ground-breaking) task your business is committed to deliver for it’s customers.</p><p>For example: Google’s mission statement is to organize the world’s information and make it universally accessible and useful.</p><p>Secondly, you have to outline the key qualities and benefits your brand offers. What are your customers going to benefit from using your product? What are the qualities of your product that will make it appealing to your customers?</p><p>For example: Apple’s key quality is their <strong><em>Clean Design</em></strong><em> </em>and their key benefit is<em> </em><strong><em>Ease of Use. </em></strong>And you can find this in any of their products.</p><p>The third part of building a business brand is creating a business logo and tagline. What is a logo? A logo is a graphic mark, emblem, or symbol used to aid and promote public identification and recognition —<a href="https://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=37&amp;cad=rja&amp;uact=8&amp;ved=2ahUKEwix7qDlufndAhWHxYUKHXKdC5gQmhMwJHoECAgQIw&amp;url=https%3A%2F%2Fblue-sea-697d.quartiers047.workers.dev%3A443%2Fhttps%2Fen.wikipedia.org%2Fwiki%2FLogo&amp;usg=AOvVaw1bp1CH2eaMehNSY6nhKevh"> Wikipedia</a></p><p>Your logo is your public identification. Its what your customers sees to recognize your product.</p><p>You also need a tagline. Your tagline should be a concise form of your mission statement.</p><p>Here is an examples of tagline:</p><p>MTN — Everywhere you go.</p><p>Glo — Grand masters of data.</p><p>Finally, integrate your brand into every aspect of your business. For example your logo should be found on your product, packaging materials, website, blog, social media account etc.</p><p>Please note that, there are lots of things you can do to build your brand but for this article I choose to share the basic ones. For me this ones are that can get you started.</p><blockquote>The value of knowledge is in it’s application - David O. Oyedepo</blockquote><p>Now go and use what you have learned here and build a profitable business. I am will be waiting to hear your success stories.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76c7747b1634" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>