<?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 Emmanuel Paul Mnzava. on Medium]]></title>
        <description><![CDATA[Stories by Emmanuel Paul Mnzava. on Medium]]></description>
        <link>https://medium.com/@epmnzava?source=rss-afbd9eff7d97------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*H4rEKZz9SA0beLWuXE54pQ.jpeg</url>
            <title>Stories by Emmanuel Paul Mnzava. on Medium</title>
            <link>https://medium.com/@epmnzava?source=rss-afbd9eff7d97------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 02:05:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@epmnzava/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[How to generate Laravel Login / Registration (Authentication)]]></title>
            <link>https://epmnzava.medium.com/how-to-generate-laravel-login-registration-authentication-de36f5620b54?source=rss-afbd9eff7d97------2</link>
            <guid isPermaLink="false">https://medium.com/p/de36f5620b54</guid>
            <category><![CDATA[auth]]></category>
            <category><![CDATA[laravel]]></category>
            <dc:creator><![CDATA[Emmanuel Paul Mnzava.]]></dc:creator>
            <pubDate>Fri, 09 Sep 2022 13:38:20 GMT</pubDate>
            <atom:updated>2022-09-09T13:38:20.067Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2_w8HEO-1bvgTpf6O2BmEg.png" /><figcaption>Laravel Auth Scaffolding</figcaption></figure><p>Hello Everyone,</p><p>It’s been a while since my last post, This one will be brief and it’s directed to all the devs who are trying to speed up their development circle.</p><p>I will explain about adding auth scaffolding in Laravel.</p><p>we can add the laravel/ui package has bootstrap and Vue UI Component and auth scaffolding.</p><p>To know more about this package you can visit<br><a href="https://github.com/laravel/ui">Github Laravel UI</a>.</p><h3>Step 1</h3><p>Include the laravel/ui package into the project,</p><pre>composer require laravel/ui</pre><p>Once the laravel/ui package has been installed, you may install the frontend scaffolding using the ui Artisan command:</p><pre>// Generate basic scaffolding...<br>php artisan ui bootstrap<br>php artisan ui vue<br>php artisan ui react</pre><pre>// Generate login / registration scaffolding...<br>php artisan ui bootstrap --auth<br>php artisan ui vue --auth<br>php artisan ui react --auth</pre><h3>Step 2</h3><p>After including UI Components we now have to add CSS and JS Files, For that, we need to run the following commands.</p><pre>npm install<br>npm run dev</pre><p>Just like that, you have managed to add login and registration functions to your Laravel Application.</p><p>Thanks for reading the article! If you enjoyed it, please don’t forget to show your appreciation by clicking 👏 below!</p><p>Any questions or comments hit me up on</p><p><strong>Mail</strong>: epmnzava@gmail.com</p><p><strong>Twitter</strong>: <a href="https://twitter.com/epmnzava">https://twitter.com/epmnzava</a></p><p><strong>Github</strong>: <a href="https://bit.ly/3L4IXaC">https://bit.ly/3L4IXaC</a></p><p><strong>LinkedIn: </strong><a href="https://bit.ly/3w5Oklq">https://bit.ly/3w5Oklq</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de36f5620b54" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Laravel Eloquent Tricks ]]></title>
            <link>https://epmnzava.medium.com/tips-tricks-laravel-eloquent-158767a5565b?source=rss-afbd9eff7d97------2</link>
            <guid isPermaLink="false">https://medium.com/p/158767a5565b</guid>
            <category><![CDATA[laravel-eloquent]]></category>
            <category><![CDATA[eloquent]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[laravel-framework]]></category>
            <dc:creator><![CDATA[Emmanuel Paul Mnzava.]]></dc:creator>
            <pubDate>Sat, 21 May 2022 19:52:37 GMT</pubDate>
            <atom:updated>2022-05-23T07:07:43.724Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*VcAaz_Cr3YDQv7U-ffSNBQ.jpeg" /></figure><p>Hello everyone,</p><p>Today will be going over a few laravel eloquent tips that I use on a daily basis to simplify my tasks. I’ll try to be brief and show you the primary usage and importance.</p><ol><li><strong>Exists Property</strong></li></ol><p>This is a nice one, have you ever been in a situation in your codebase where you needed to know if the item you querying for is available or not ? , Am sure you have been there before.</p><p>Below is common for most developers.</p><pre>$count=User::where(‘id’,5)-&gt;count();</pre><pre>if($count &gt; 0){</pre><pre>//user exists</pre><pre>}else</pre><pre>{<br> //user doesnot exist <br>}</pre><p>But there is an exists property that comes with eloquent in laravel which simplifies this task see below</p><pre>if(User::where(‘id’,5)-&gt;exists){<br>//user exists</pre><pre>}else</pre><pre>{ //user doesnot exist }</pre><p><strong>2. Push Method</strong></p><p>The push() method saves the model and all of its relationships. Pretty cool functionality see below.</p><pre>$user=User::where(&quot;name&quot;,&quot;Emmanuel&quot;)-&gt;first();</pre><pre>$user-&gt;usertype=&quot;admin&quot;;</pre><pre>$user-&gt;address-&gt;city=&quot;Dar es salaam&quot;;</pre><pre>//if you use save alone city under address table won&#39;t be saved thus only usertype in this case will be saved</pre><pre>$user-&gt;save();</pre><pre><br>//if you use push property both usertype and address will be saved</pre><pre>$user-&gt;push();</pre><p><strong>3. SaveMany from hasMany</strong></p><p>If we have a hasMany() relationship, we can use saveMany() to save multiple “child” entries from our “parent” object, all in one sentence how cool is that check the example below.</p><pre>$post=Post::find(1);</pre><pre>$post-&gt;comments()-&gt;saveMany(</pre><pre>new Comment([&quot;text&quot;=&gt;&quot;comment 1&quot;]),</pre><pre>new Comment([&quot;text&quot;=&gt;&quot;comment 2&quot;]),</pre><pre>);</pre><p><strong>4. Examining attribute changes.</strong></p><p>Eloquent provides the isDirty(), isClean(), and wasChanged() methods to examine the internal state of your model thus basically determining how its attributes have changed since their original loading.</p><p>The isDirty() method determines if any attributes have been changed since the model was loaded. You may pass a specific attribute name to determine if a particular attribute is dirty. The isClean() method is the opposite of isDirty() and accepts an optional attribute argument see below.</p><pre>$product=Product::create([</pre><pre>“name’=&gt;”Samsung S4”,</pre><pre>“amount”=&gt;”30000”,</pre><pre>“currency”=&gt;”TZS”</pre><pre>]);</pre><pre>$product-&gt;name=”Iphone”;</pre><pre>$product-&gt;isDirty();  :: returns true</pre><pre>$product-&gt;isDirty(“amount”); :: returns false</pre><pre>$product-&gt;isClean(“name”); :: return false</pre><pre>$product-&gt;save();</pre><p><strong>5. Model boot() method</strong></p><p>There is a magical place called boot() in an Eloquent model where you can override the default behavior. One of the most famous examples is setting some field value at the moment of creating the model object:</p><pre>class Product extends Model{</pre><pre>public static function boot(){</pre><pre>parent::boot();</pre><pre>selft::creating(function ($model){</pre><pre>$model-&gt;uuid=(string)Uuid::generate();</pre><pre>});</pre><pre>}</pre><pre>}</pre><p>Thanks for reading the article! If you enjoyed it, please don’t forget to show your appreciation by clicking 👏 below!</p><p>Any questions or comments hit me up on</p><p><strong>Mail</strong>: epmnzava@gmail.com</p><p><strong>Twitter</strong>: <a href="https://twitter.com/epmnzava">https://twitter.com/epmnzava</a></p><p><strong>Github</strong>: <a href="https://bit.ly/3L4IXaC">https://bit.ly/3L4IXaC</a></p><p><strong>LinkedIn: </strong><a href="https://bit.ly/3w5Oklq">https://bit.ly/3w5Oklq</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=158767a5565b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to change your Laravel’s timezone like a boss ]]></title>
            <link>https://epmnzava.medium.com/how-to-change-your-laravels-timezone-like-a-boss-2309d12fec0d?source=rss-afbd9eff7d97------2</link>
            <guid isPermaLink="false">https://medium.com/p/2309d12fec0d</guid>
            <category><![CDATA[laravel8]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[timezone]]></category>
            <category><![CDATA[laravel-framework]]></category>
            <dc:creator><![CDATA[Emmanuel Paul Mnzava.]]></dc:creator>
            <pubDate>Wed, 11 May 2022 17:26:22 GMT</pubDate>
            <atom:updated>2022-05-12T11:01:57.807Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VPcA183iase664YLmUnu6w.jpeg" /><figcaption>laravel timezone</figcaption></figure><p>Howdy,</p><p>It’s been a while since I last logged a post, glad to be back and continue to provide value.</p><p>As a developer, whether you are working on a new project or an existing Laravel application, it can sometimes be important for the application’s timezone to match the current location’s timezone.</p><p>Please notice that laravel has a default timezone which is set to <strong>UTC</strong>. Hence you might want to change it to your local timezone, if yes please follow the below options and procedures.</p><h3>First Option</h3><p>open the config directory from your laravel application.</p><p>Edit the app.php file next and the timezone value from UTC to the desired timezone from available timezones.</p><pre>‘timezone’ =&gt; ‘Africa/Nairobi’,</pre><p><strong>Second Option</strong></p><p>Make a modification in the .env file to specify the timezone as follows:</p><pre>APP_TIMEZONE=’Africa/Nairobi’</pre><p>Then, add the following in the app.php file:</p><pre>‘timezone’ =&gt; env(‘APP_TIMEZONE’, ‘UTC’),</pre><p>This involves making some changes to the app.php file.</p><p>Once those changes have been made, it is important to run the following command to clear the config settings stored in the cache.</p><pre>php artisan config:clear</pre><p>Congrats you have changed your default timezone :)</p><p><strong>Before you go… </strong>I would like to introduce to you storewid.com, an eCommerce platform that can help you build, manage and grow your online store with ease.<br>Visit <a href="http://storewid.com/">storewid.com</a> and try it out for free.</p><p>Thanks for reading the article! If you enjoyed it, please don’t forget to show your appreciation by clicking 👏 below!</p><p>Any questions or comments hit me up on</p><p><strong>Mail</strong>: epmnzava@gmail.com</p><p><strong>Twitter</strong>: <a href="https://twitter.com/epmnzava">https://twitter.com/epmnzava</a></p><p><strong>Github</strong>: <a href="https://bit.ly/3L4IXaC">https://bit.ly/3L4IXaC</a></p><p><strong>LinkedIn: </strong><a href="https://bit.ly/3w5Oklq">https://bit.ly/3w5Oklq</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2309d12fec0d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to upgrade to Laravel 9 ]]></title>
            <link>https://epmnzava.medium.com/how-to-upgrade-to-laravel-9-4507c5bda33c?source=rss-afbd9eff7d97------2</link>
            <guid isPermaLink="false">https://medium.com/p/4507c5bda33c</guid>
            <category><![CDATA[laravel-development]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[laravel-framework]]></category>
            <category><![CDATA[laravel9]]></category>
            <dc:creator><![CDATA[Emmanuel Paul Mnzava.]]></dc:creator>
            <pubDate>Wed, 16 Feb 2022 16:19:43 GMT</pubDate>
            <atom:updated>2022-05-16T06:23:22.947Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZytnkI5F-ccZZv5dCVkRKw.png" /></figure><p><strong>Hello everyone</strong> 👋,</p><p>Today I will be going through how to upgrade your laravel application to version 9,</p><p>Laravel 9 was released on the 8th of February 2022 it includes many new features but one that stands out is the fact that the latest release only goes with the minimum version of <strong>PHP</strong> <strong>8.0</strong> 🤯 ! .</p><p>Yes, this certainly means if your laravel application is in Laravel 8 or older version you might need to upgrade your <strong>PHP</strong> version before upgrading the application.</p><p>I had written an article a while back explaining how to upgrade your laravel application to the latest version if you have not read it click on this <a href="https://medium.com/p/93196479a9ba">link</a> to have a look.</p><p>The following are major updates in L9</p><p>1. Minimum PHP version of 8.0. requirement</p><p>2.Shift from swift mailer to symfony mailer</p><p>3. Upgrade of file system to file system 3.x</p><p>4. Improved Eloquent Accessors / Mutators</p><p>5. Enum Eloquent Attribute Casting</p><p>6. Implicit Route Bindings With Enums</p><p>7. Forced Scoping Of Route Bindings.</p><p>8. Controller Route Groups. 👌</p><p>9. Laravel Scout Database Engine</p><p>10. Rendering Inline Blade Templates. 👍</p><p>11. Slot Name Shortcut</p><p>12. Checked / Selected Blade Directives 👏</p><p>13.Bootstrap 5 Pagination Views ( Paginator::useBootstrapFive(); )</p><p>14. Improved Validation Of Nested Array Data</p><p>15. Laravel Breeze API &amp; Next.js.</p><p>16. Improved Ignition Exception Page</p><p>17. Improved route: list CLI Output.</p><p>18. Test Coverage Using Artisan test Command</p><p>19. Soketi Echo Server</p><p>20. New Helpers.</p><p>Above are some of the major updates that are in L9, I won&#39;t go over them in this article but I will select some of them and create articles explaining what the exact update is and how it works so stay tuned.</p><p><strong>So how do I upgrade my laravel application?</strong></p><p>First, let&#39;s go over our composer.json file and look for laravel/framework and nunomaduro/collision you can look at mine below</p><p>Change `laravel/framework package from ^8.12 to ^9.0</p><p>Change nunomaduro/collision from ^5.0 to ^6.1</p><p>change facade/ignition to “spatie/laravel-ignition”: “¹.0”</p><p>Then run</p><pre>composer update</pre><p>After you have finished running the composer update go to the following page and read about some high-impact changes that you need to make <a href="https://laravel.com/docs/9.x/upgrade">https://laravel.com/docs/9.x/upgrade</a> depending on which version you upgrading there will be a few differences in the skeleton framework that you need to make.</p><p>Notice this guide is to help you quickly update your application there may be a few files that need to be updated that have not been listed on this guide please don’t forget to read the upgrade documentation that is available on the official laravel website.</p><p><strong>Before you go… </strong>I would like to introduce to you storewid.com, an eCommerce platform that can help you build, manage and grow your online store with ease.<br>Visit <a href="http://storewid.com/">storewid.com</a> and try it out for free.</p><p>Thanks for reading the article! If you enjoyed it, please don’t forget to show your appreciation by clicking 👏 below!</p><p>Any questions or comments hit me up on</p><p><strong>Mail</strong>: epmnzava@gmail.com</p><p><strong>Twitter</strong>: <a href="https://twitter.com/epmnzava">https://twitter.com/epmnzava</a></p><p><strong>Github</strong>: <a href="https://bit.ly/3L4IXaC">https://bit.ly/3L4IXaC</a></p><p><strong>LinkedIn: </strong><a href="https://bit.ly/3w5Oklq">https://bit.ly/3w5Oklq</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4507c5bda33c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Web 3]]></title>
            <link>https://epmnzava.medium.com/what-is-web-3-a1f2e96b68c4?source=rss-afbd9eff7d97------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1f2e96b68c4</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[web-3-point-0]]></category>
            <category><![CDATA[nft]]></category>
            <dc:creator><![CDATA[Emmanuel Paul Mnzava.]]></dc:creator>
            <pubDate>Tue, 11 Jan 2022 12:52:06 GMT</pubDate>
            <atom:updated>2022-01-11T12:52:06.522Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*QWzSh_4CnUaK_UQFxrmGDA.jpeg" /></figure><p>Hello everyone ,</p><p>Today ill be going over web 3. Looking at what it is , and why there is a big buzz about it.</p><p><strong>“ Web 3 ”</strong></p><p>It simply refers to the next iteration of the internet that promotes decentralized protocols and aims to reduce dependency on large tech companies like Google, Facebook and Amazon etc.</p><p>Your probably still lost by that explanation and that’s okay , Iwas lost too when i got a simple definition , Let me elaborate further.</p><p>To better understand Web 3 you need to go back in time and walk through the evolution of the web or internet.</p><p>In 1990’s (arguibly the dawn of internet )there was the first version of the web know as web 1 :- It comprised a collection of links and homepages.Websites weren’t particularly interactive. You couldn’t do much apart from read things and publish basic content for others to read.</p><p>Then just after the internet bubble Web 2 was born , most people called this version as the interactive web meaning the user now can not only read but can write or create content. Example of this can be platform such as facebook , twitter and youtube.</p><p>Users can create content and thus causing the webpages to change etc etc.After some time though most users became worried about privacy specially about their private data being used or shared for profit.Remember most of visited sites or applications are somewhat owned by big tech and they get to decided what they can do about your etc etc</p><p>Web 3 can be understood as the “read/write/own” phase of the Internet. Rather than just using free tech platforms in exchange for our data, users can participate in the governance and operation of the protocols themselves. This means people can become participants and shareholders, not just customers or products.</p><p>Please due note that in Web 3, shares are called tokens or cryptocurrencies, and they represent ownership of decentralized networks known as blockchains. If you hold enough of these tokens, you have a say over the network. Holders of governance tokens can spend their assets to vote on the future of, say, a decentralized lending protocol.</p><p>Please note that various organizations and or companies are still on grasping this next level innovation there are no written standards yet at the time of writing this article in 11th January 2022.</p><p><strong>Before you go…</strong> Thanks for reading the article! If you enjoyed it, please don’t forget to show your appreciation by clicking 👏 below!</p><p>Any questions or comments hit me up on</p><p>Mail: <a href="/service/mailto:epmnzava@gmail.com">epmnzava@gmail.com</a></p><p>Twitter: <a href="https://twitter.com/epmnzava">https://twitter.com/epmnzava</a></p><p>Github: <a href="https://github.com/dbrax">https://github.com/dbrax</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1f2e96b68c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to publish your first npm package.]]></title>
            <link>https://epmnzava.medium.com/how-to-publish-your-first-npm-package-55373c1e72fe?source=rss-afbd9eff7d97------2</link>
            <guid isPermaLink="false">https://medium.com/p/55373c1e72fe</guid>
            <category><![CDATA[npm-package]]></category>
            <category><![CDATA[npm]]></category>
            <category><![CDATA[node]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Emmanuel Paul Mnzava.]]></dc:creator>
            <pubDate>Wed, 29 Sep 2021 06:14:32 GMT</pubDate>
            <atom:updated>2021-09-29T06:14:32.734Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*i2HiKoNYBwipyDnvsf318w.png" /></figure><p>Hello guys,</p><p>Today i will be going over how to create and publish your first npm package so as you can re-use it in more than one application that your building.</p><h3>First of what is npm and what is npm package</h3><p>For those who are javascript developers say in (Reat , Vue , Angular and Node ) the term npm is not new.Yes there other management tools but npm is the most popular one out there apart from yarn or bower.</p><p><strong>So what is npm ?</strong></p><p>Npm is a short form for node package manager a default package manager for the JavaScript runtime environment ( Node Js) , It consists of a command line client, also called npm, and an online database of public and paid-for private packages, called the npm registry.The registry is accessed via the client, and the available packages can be browsed and searched via the npmjs website. The package manager and the registry are managed by npm, Inc (<a href="https://en.wikipedia.org/wiki/Npm_(software)"><strong>source</strong></a>).</p><p><strong>What is a npm package ?</strong></p><p>Am sure if you use modern javascript development frameworks or environment you have used more than one package in your application. Basically if am comparing javascript and php say react js and laravel. This is like comparing laravel packages or libraries to node packages or libraries.</p><blockquote>On laravel the most common registry is <a href="https://packagist.org/">packagist</a> while in javascript the most common registry is <a href="https://www.npmjs.com/">npmjs</a>.</blockquote><h3>How to create a npm package</h3><h4>Step 1: Create your npm account</h4><p><a href="https://www.npmjs.com/signup">Start here</a></p><p><strong>Step 2: login via Terminal</strong></p><p>Go to your terminal and type:</p><pre>npm adduser</pre><p>You can also use the command:</p><pre>npm login</pre><p>You’ll get a prompt for your <strong>username</strong>, <strong>password</strong> and <strong>email</strong>. Stick them in there!</p><p>You should get a message akin to this one:</p><pre>Logged in as dbrax to scope @username on <a href="https://registry.npmjs.org/">https://registry.npmjs.org/.</a></pre><p>Nice!</p><p><strong>Step 3: Let’s Code</strong></p><p>First we need a folder to hold our code. Create one in whichever way is comfortable for you. I’m calling my package <strong>otp</strong> .</p><p>I’ve added some terminal commands for those who aren’t familiar with them.</p><pre>mkdir otp &amp;&amp; cd otp</pre><p>You will need node , hence make sure you have node installed on your machine.</p><p>If you don’t have node installed yet and don’t know how please read through this documentation <a href="https://docs.npmjs.com/downloading-and-installing-node-js-and-npm">https://docs.npmjs.com/downloading-and-installing-node-js-and-npm</a></p><p>After you install node use this command below to initialize your package with a package.json</p><pre>npm init</pre><p>You can hit enter to all options, Here is an example of my final package.json</p><pre>{</pre><pre>&quot;name&quot;: &quot;@dbrax/otp&quot;,</pre><pre>&quot;version&quot;: &quot;1.0.0&quot;,</pre><pre>&quot;description&quot;: &quot;&quot;,</pre><pre>&quot;main&quot;: &quot;index.js&quot;,</pre><pre>&quot;scripts&quot;: {</pre><pre>&quot;test&quot;: &quot;echo \&quot;Error: no test specified\&quot; &amp;&amp; exit 1&quot;</pre><pre>},</pre><pre>&quot;keywords&quot;: [</pre><pre>&quot;otp&quot;</pre><pre>],</pre><pre>&quot;author&quot;: &quot;epmnzava@gmail.com&quot;,</pre><pre>&quot;license&quot;: &quot;MIT&quot;</pre><pre>}</pre><p><strong>Step 4 : Publish</strong></p><p>To publish your npm package, you run the well-named command: <strong>npm publish.</strong></p><pre>npm publish</pre><p>Aw shucks.</p><pre>npm ERR! publish Failed PUT 402npm ERR! code E402npm ERR! You must sign up for private packages : @dbrax/otp</pre><p>Allow me to explain.</p><p>Scoped packages are automatically published privately because, as well as being useful for single users like us, they are also utilized by companies to share code between projects. If we had published a normal package, then our journey would end here.</p><p>All we need to change is to tell npm that actually we want everyone to use this module — not keep it locked away in their vaults. So instead we run:</p><pre>npm publish --access=public</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/629/1*33iQAzXY3qBvGhod031Y3g.png" /></figure><p>If everything is okay you should get the above feedback and an email that you have published your package.</p><p>🔥 🔥 🎆 congratulations you have published your first package to npmjs registry 👏 👏</p><p><strong>Let’s Add Simple code that can be used</strong></p><p>We have no code yet.</p><p>GitHub is a great place to put your code. Let’s make a <a href="https://github.com/new">new repository</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*OeYjF1hCCpbK06kvQHbbIw.png" /></figure><p>Let’s write a very simple function on our<strong> index.js</strong></p><pre>module.exports = function otp(string) {</pre><pre>return &quot;I have send you a code&quot;;</pre><pre>};</pre><p>Useless — but beautiful</p><p>There it is.</p><p>A <strong>small </strong>function just to test things out.</p><p>So all an npm package requires is an <strong>index.js</strong> file. This is the entry point to your package. You can do it in different ways as your package becomes more complex.</p><p>But for now this is all we need.</p><h3>Done</h3><p>Let’s publish our spectacular package.</p><h4>Version</h4><p>First we’ll update the version with the <a href="https://docs.npmjs.com/cli/version">npm version</a> command.</p><p>This is a major release so we type:</p><pre>npm version major</pre><p>Which outputs:</p><pre>v2.0.0</pre><h4>Publish again!</h4><p>Let’s run our new favorite command:</p><pre>npm publish</pre><p>It is done:</p><p><strong>Before you go…</strong> Thanks for reading the article! If you enjoyed it, please don’t forget to show your appreciation by clicking 👏 below!</p><p>Any questions or comments hit me up on</p><p>Mail: <a href="/service/mailto:epmnzava@gmail.com">epmnzava@gmail.com</a></p><p>Twitter: <a href="https://twitter.com/epmnzava">https://twitter.com/epmnzava</a></p><p>Github: <a href="https://github.com/dbrax">https://github.com/dbrax</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55373c1e72fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to create custom laravel macros]]></title>
            <link>https://epmnzava.medium.com/how-to-use-laravel-macros-d972d3d5d775?source=rss-afbd9eff7d97------2</link>
            <guid isPermaLink="false">https://medium.com/p/d972d3d5d775</guid>
            <category><![CDATA[laravel8]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[laravel-macro]]></category>
            <category><![CDATA[laravel-development]]></category>
            <category><![CDATA[laravel-framework]]></category>
            <dc:creator><![CDATA[Emmanuel Paul Mnzava.]]></dc:creator>
            <pubDate>Thu, 23 Sep 2021 15:31:41 GMT</pubDate>
            <atom:updated>2022-02-22T12:30:11.851Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*ZsK41oYHaBuBXVvatrlmeA.jpeg" /></figure><p>Hello guys,</p><p>Today i will be going over laravel macros (what they are and how to use them in your project).</p><p><strong>Laravel Macros </strong>allow you to add custom functionality to internal Laravel components.In this article we will look at which laravel classes can be used to define Macros and how to use them.</p><h3>How to create a Laravel Macro</h3><p>Before creating a Laravel Macro, you have to make sure your targeted class use the Macroable trait.Basically laravel comes with a number of classes that use this trait see below</p><ul><li>Illuminate\Auth\RequestGuard</li><li>Illuminate\Auth\SessionGuard</li><li>Illuminate\Cache\Repository</li><li>Illuminate\Console\Command</li><li>Illuminate\Console\Scheduling\Event</li><li>Illuminate\Cookie\CookieJar</li><li>Illuminate\Database\Eloquent\FactoryBuilder</li><li>Illuminate\Database\Eloquent\Relations\Relation</li><li>Illuminate\Database\Grammar</li><li>Illuminate\Database\Query\Builder</li><li>Illuminate\Database\Schema\Blueprint</li><li>Illuminate\Filesystem\Filesystem</li><li>Illuminate\Foundation\Testing\TestResponse</li><li>Illuminate\Http\JsonResponse</li><li>Illuminate\Http\RedirectResponse</li><li>Illuminate\Http\Request</li><li>Illuminate\Http\Response</li><li>Illuminate\Http\UploadedFile</li><li>Illuminate\Mail\Mailer</li><li>Illuminate\Routing\PendingResourceRegistration</li><li>Illuminate\Routing\Redirector</li><li>Illuminate\Routing\ResponseFactory</li><li>Illuminate\Routing\Route</li><li>Illuminate\Routing\Router</li><li>Illuminate\Routing\UrlGenerator</li><li>Illuminate\Support\Arr</li><li>Illuminate\Support\Collection</li><li>Illuminate\Support\LazyCollection</li><li>Illuminate\Support\Str</li><li>Illuminate\Support\Testing\Fakes\NotificationFake</li><li>Illuminate\Translation\Translator</li><li>Illuminate\Validation\Rule</li><li>Illuminate\View\Factory</li><li>Illuminate\View\View</li></ul><p>All the above classes use this trait hence one can add more functionalities to them easily so as to simplyfy coding.</p><h3>Example.</h3><p>Iam going to create a macro to the class “ Builder ” <strong>Illuminate\Database\Query\Builder</strong></p><p>Where i will create a query builder search which will help me to search for various items from all models that i have in my Laravel application.</p><p>Say i have a Product model which has an attribute of title, In order for me to search for a given title i will normally write something like this</p><pre>Product::where(&#39;title&#39;,&#39;LIKE&#39;,&#39;%&#39;.$searchterm.&#39;%&#39;)-&gt;get()</pre><p><strong>Note </strong>instead of writing the above ,i can achieve the same thing by just rewritting it with a macro called search as seen below</p><pre>Product::search(&#39;title&#39;,$searchterm)-&gt;get()</pre><p><strong>So how do you achieve that ?</strong></p><p>To create such macro i will first navigate to App\Providers\AppServiceProvider.php</p><p>Then head over the boot method inside it add the macro as seen below</p><pre>&lt;?php</pre><pre>namespace App\Providers;</pre><pre>use Illuminate\Support\Facades\Blade;</pre><pre>use Illuminate\Support\Facades\Schema;</pre><pre>use Illuminate\Database\Eloquent\Builder;</pre><pre>use Illuminate\Support\ServiceProvider;</pre><pre><br>class AppServiceProvider extends ServiceProvider</pre><pre>{</pre><pre><em>/**</em></pre><pre><em>* Register any application services.</em></pre><pre><em>*</em></pre><pre><em>* @return void</em></pre><pre><em>*/</em></pre><pre>public function register()</pre><pre>{</pre><pre><em>//</em></pre><pre>}</pre><pre><em>/**</em></pre><pre><em>* Bootstrap any application services.</em></pre><pre><em>** @return void</em></pre><pre><em>*/</em></pre><pre>public function boot(){</pre><pre><strong>Builder::macro(&#39;search&#39;, function ($column, $searchstring) {</strong></pre><pre><strong>return $string ? <em>$this</em>-&gt;where($column, &#39;like&#39;, &#39;%&#39; . $searchstring . &#39;%&#39;) : <em>$this</em>;</strong></pre><pre>});<br></pre><pre>}<br></pre><p>As seen above we have used the class builder to add a macro called “search” that will handle a search query by accepting column and a search string.</p><p>The above is just an example of away to add macro but possibilities are endless.</p><p>Test the above and let me know how it goes on the comment section</p><p>And hey I would like to introduce to you storewid.com, an eCommerce platform that can help you build, manage and grow your online store with ease.<br>Visit <a href="http://storewid.com/">storewid.com</a> and try it out for free.</p><p><strong>Before you go…</strong> Thanks for reading the article! If you enjoyed it, please don’t forget to show your appreciation by clicking 👏 below!</p><p>Any questions or comments hit me up on</p><p>Mail: <a href="/service/mailto:epmnzava@gmail.com">epmnzava@gmail.com</a></p><p>Twitter: <a href="https://twitter.com/epmnzava">https://twitter.com/epmnzava</a></p><p>Github: <a href="https://github.com/dbrax">https://github.com/dbrax</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d972d3d5d775" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What are Laravel model observers and their importance ?]]></title>
            <link>https://epmnzava.medium.com/what-are-laravel-model-observers-and-their-importance-d217269ea02d?source=rss-afbd9eff7d97------2</link>
            <guid isPermaLink="false">https://medium.com/p/d217269ea02d</guid>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[hostnasi]]></category>
            <category><![CDATA[laravel-framework]]></category>
            <category><![CDATA[laravel-observer]]></category>
            <category><![CDATA[observer-pattern]]></category>
            <dc:creator><![CDATA[Emmanuel Paul Mnzava.]]></dc:creator>
            <pubDate>Sat, 11 Sep 2021 15:55:12 GMT</pubDate>
            <atom:updated>2022-02-22T12:34:32.506Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UZtUOE0eNW67GqUkJsKJJw.jpeg" /><figcaption>laravel observers</figcaption></figure><h3><strong>What are Laravel model observers ?</strong></h3><p>Hello Guys,</p><p>Today am going to be writting about laravel observers.</p><p>Laravel ships with alot of amazing features, I recently came to learn about laravel model observers when i was faced with a simple challenge.</p><p>To help you understand i will be explaining what observers are in Laravel with an example.</p><h3>Let’s begin by learning the observer pattern</h3><blockquote>The observer pattern is a software design pattern in which an object, called the subject, maintains a list of its dependents, called observers, and notifies them automatically of any state changes, usually by calling one of their methods. Source : <a href="https://en.wikipedia.org/wiki/Observer_pattern">Wikipedia</a></blockquote><p>In Laravel the observer pattern can be seen in Eloquent which provides a convenient way to add your own action while the model is completing or has completed some action.</p><p>Let’s look at an example that made me use Laravel observers</p><p>I wanted to create an activity log functionality where when a user creates , reads ,updates or deletes (basically <strong>CRUD</strong>) anything in a particular model it should log that activity into the database.</p><p>I looked around various ways example using a package by <a href="https://spatie.be/docs/laravel-activitylog/v4/introduction"><strong>spatie</strong></a> or creating my own methods to do this and then adding them on the controllers / actions where i have written these CRUD functionalities.Both ways seemed to be tedious since it will require me to go over a heavy project with alot of lines of code then add a line of code to the CRUD methods.</p><p>Then i thought … what if i can tap into to the save event from a model then just after that action i can log the event,This seemed not only to save me time but a small amount of work to do and luckly it’s possible in laravel.</p><p>For example, if you have Product model and you want to log it automatically when a product is saved/created. You can listen to the saved event and log it:</p><h3><strong>How It Works</strong></h3><p>You first create a model observer for the particular model in question like below</p><pre>php artisan make:observer ProductObserver — model=Product</pre><p>Above command will create a new class located in the app/Observers folder. Your newly created observer class will look like below:</p><pre>namespace App\Observers;<br><br>use App\Models\Product;<br><br>class ProductObserver<br>{<br>    <em>/**<br>     * Handle the product &quot;created&quot; event.<br>     *<br>     * @param  \App\</em>Models\<em>Product  $p</em>roduct<em><br>     * @return void<br>     */</em><br>    public function created(Product $product)<br>    {<br>        <em>//</em><br>    }<br><br>    <em>/**<br>     * Handle the product &quot;updated&quot; event.<br>     *<br>     * @param  \App\</em>Models\<em>Product  $p</em>roduct<em><br>     * @return void<br>     */</em><br>    public function updated(Product $product)<br>    {<br>        <em>//</em><br>    }<br><br>    <em>/**<br>     * Handle the product &quot;deleted&quot; event.<br>     *<br>     * @param  \App\</em>Models\Product<em>  $product<br>     * @return void<br>     */</em><br>    public function deleted(Product $product)<br>    {<br>        <em>//</em><br>    }<br><br>    <em>/**<br>     * Handle the product &quot;restored&quot; event.<br>     *<br>     * @param  \App\</em>Models\Product<em>  $</em>product<em><br>     * @return void<br>     */</em><br>    public function restored(Product $product)<br>    {<br>        <em>//</em><br>    }<br><br>    <em>/**<br>     * Handle the product &quot;force deleted&quot; event.<br>     *<br>     * @param  \App\</em>Models\<em>Product  $product<br>     * @return void<br>     */</em><br>    public function forceDeleted(Product $product)<br>    {<br>        <em>//</em><br>    }<br>}</pre><p>Now you have to register this class in Laravel’s Service Container, so we will add this class in AppServiceProvider‘s boot() method by telling Product model to observe the ProductObserver class, like below:</p><pre>namespace App\Providers;<br><br>use App\Models\Product;<br>use App\Observers\ProductObserver;<br>use Illuminate\Support\ServiceProvider;<br><br>class AppServiceProvider extends ServiceProvider<br>{<br>    <em>/**<br>     * Register any application services.<br>     *<br>     * @return void<br>     */</em><br>    public function register()<br>    {<br>        <em>//</em><br>    }<br><br>    <em>/**<br>     * Bootstrap any application services.<br>     *<br>     * @return void<br>     */</em><br>    public function boot()<br>    {<br>        Product::observe(ProductObserver::class);<br>    }<br>}</pre><p>In our ProductObserver class, Laravel created some function by default like created, updated and others. We will delete all of them and add a saved hook by telling to log an activity after a product is saved.</p><p>Replace your observer class with below.</p><pre>namespace App\Observers;<br><br>use App\Models\Product;</pre><pre>class ProductObserver<br>{<br>    <em>/**<br>     * Handle the product &quot;saved&quot; event.<br>     *<br>     * @param  \App\Models\$Product  $product<br>     * @return void<br>     */</em><br>    public function saved(Product $product)<br>    {<br>        log_activity()...<br>    }<br>}</pre><p>Now we have successfully added a model observer to observe our Product model, whenever you create a new product, it will log that activity.</p><p>remember you can do this to other CRUD acitivities as well using the following hooks <br>Retrieved<br>Creating<br>Created<br>Updating<br>Updated<br>Saving<br>Saved<br>Deleting<br>Deleted<br>Restoring<br>Restored</p><p>Test the above and let me know how it goes on the comment section.</p><p><strong>Before you go… </strong>I would like to introduce to you storewid.com, an eCommerce platform that can help you build, manage and grow your online store with ease.<br>Visit <a href="http://storewid.com/">storewid.com</a> and try it out for free.</p><p>Thanks for reading the article! If you enjoyed it, please don’t forget to show your appreciation by clicking 👏 below!</p><p>Any questions or comments hit me up on</p><p>Mail: <a href="/service/mailto:epmnzava@gmail.com">epmnzava@gmail.com</a></p><p>Twitter: <a href="https://twitter.com/epmnzava">https://twitter.com/epmnzava</a></p><p>Github: <a href="https://github.com/dbrax">https://github.com/dbrax</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d217269ea02d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scafold Vue Components easily on Laravel]]></title>
            <link>https://epmnzava.medium.com/scafold-vue-components-easily-on-laravel-6abf21bde044?source=rss-afbd9eff7d97------2</link>
            <guid isPermaLink="false">https://medium.com/p/6abf21bde044</guid>
            <category><![CDATA[laravel-framework]]></category>
            <category><![CDATA[laravel-development]]></category>
            <category><![CDATA[vue]]></category>
            <category><![CDATA[vuejs]]></category>
            <dc:creator><![CDATA[Emmanuel Paul Mnzava.]]></dc:creator>
            <pubDate>Sun, 05 Sep 2021 21:08:46 GMT</pubDate>
            <atom:updated>2021-09-05T21:08:46.052Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4CWMLPYrgRtzl_-CcvTESg.png" /></figure><p>Hello everyone,</p><p>Been using vue js and Livewire alot lately to create dynamic reusable components.</p><p>While using Vue in Laravel i realized that i can easily save time in creating various Vue components by just running a command, That will end up scafolding the Vue components for me.</p><pre>php artisan make:vue-component DatePickerComponent</pre><p>The above command will generate an empty Vue component under.</p><pre>resources/js/components/</pre><pre>&lt;template&gt;</pre><pre><em>&lt;!-- Your </em>DatePickerComponent<em> component--&gt;</em></pre><pre>&lt;/template&gt;</pre><pre>&lt;script&gt;</pre><pre>export default {</pre><pre>data() {</pre><pre>return {</pre><pre><em>//</em></pre><pre>};</pre><pre>}</pre><pre>}</pre><pre>&lt;/script&gt;</pre><p>This can be compared to other scafolding commands such as</p><pre>php artisan make:controller</pre><p>To have access to such commands on your Laravel project please install the following package which is maintained on <a href="https://github.com/dbrax/laravel-vue-component-scafolding">this repo</a></p><p><strong>Installation</strong></p><pre>composer require epmnzava/laravel-vue-component</pre><p><strong>usage</strong></p><pre>php artisan make:vue-component YourComponentName</pre><p><strong>Before you go…</strong> Thanks for reading the article! If you enjoyed it, please don’t forget to show your appreciation by clicking 👏 below!</p><p>Any questions or comments hit me up on</p><p>Mail: <a href="/service/mailto:epmnzava@gmail.com">epmnzava@gmail.com</a></p><p>Twitter: <a href="https://twitter.com/epmnzava">https://twitter.com/epmnzava</a></p><p>Github: <a href="https://github.com/dbrax">https://github.com/dbrax</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6abf21bde044" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Laravel Sanctum for API Authentication]]></title>
            <link>https://gopensource.com/using-laravel-sanctum-for-api-authentication-550376f3f664?source=rss-afbd9eff7d97------2</link>
            <guid isPermaLink="false">https://medium.com/p/550376f3f664</guid>
            <category><![CDATA[laravel-development]]></category>
            <category><![CDATA[laravel-framework]]></category>
            <category><![CDATA[sanctum]]></category>
            <category><![CDATA[laravel]]></category>
            <dc:creator><![CDATA[Emmanuel Paul Mnzava.]]></dc:creator>
            <pubDate>Thu, 02 Sep 2021 20:28:02 GMT</pubDate>
            <atom:updated>2022-02-22T12:29:14.589Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*1BTu6Xlzk7zawFecyTcaUw.png" /></figure><p>As developers we tend to create applications (mobile , web … etc) without concerning ourselves with security aspects specially ensuring that the resources that the apps provide are shared to users who are authorized to view and use them.</p><p>When developing api’s it’s very important to authenticate the users through the requests.In Laravel we have many options on how to authenticate the requests. For example, we have the <a href="https://laravel.com/docs/8.x/passport">Laravel Passport package</a> to do the authentication and OAuth processes. But, if you don’t want to use the OAuth feature that Passport offers, then the<a href="https://laravel.com/docs/8.x/sanctum"> Laravel Sanctum</a> may be a choice for you.</p><p><strong>Laravel Sactum </strong>provides a featherweight authentication system for SPAs (single page applications), mobile applications, and simple, token based APIs. Sanctum allows each user of your application to generate multiple API tokens for their account. These tokens may be granted abilities / scopes which specify which actions the tokens are allowed to perform.</p><p><strong>Usage</strong></p><p>You can use Laravel sactum to issue api tokens to your users / other application clients.This feature can be seen to be implemented recently by github.</p><pre>Route::post(&#39;/create/token&#39;, function (Request $request) {<br>    $token = $request-&gt;user()-&gt;createToken(&#39;my-app-token&#39;);<br><br>    return [&#39;token&#39; =&gt; $token-&gt;plainTextToken];<br>});</pre><p>Example above shows a route where a user can create a token that he/she will use to access other various parts of the application.</p><p><strong>How to Install and configure</strong></p><p>You may install Laravel Sanctum via the Composer package manager:</p><pre>composer require laravel/sanctum</pre><p>Then publish the Sanctum configuration and migration files. The Sanctum configuration file will be placed inside your config directory.</p><pre>php artisan vendor:publish --provider=&quot;Laravel\Sanctum\SanctumServiceProvider&quot;</pre><p>Next, migrate your database. Don’t forget to adjust your database configuration inside your <em>.env</em> file.</p><pre>php artisan migrate</pre><p>Then, if you plan to utilize Sanctum to authenticate an SPA, you should add Sanctum’s middleware to your api middleware group within your application&#39;s app/Http/Kernel.php file:</p><pre>&#39;api&#39; =&gt; [<br>    <strong>\Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class,</strong><br>    &#39;throttle:api&#39;,<br>    \Illuminate\Routing\Middleware\SubstituteBindings::class,<br>],</pre><p>Lastly on your user models you should add a trait know as HasApiTokens</p><pre>&lt;?php</pre><pre>namespace App\Models;</pre><pre>use Illuminate\Contracts\Auth\MustVerifyEmail;</pre><pre>use Illuminate\Database\Eloquent\Factories\HasFactory;</pre><pre>use Illuminate\Foundation\Auth\User as Authenticatable;</pre><pre>use Illuminate\Notifications\Notifiable;</pre><pre><strong>use Laravel\Sanctum\HasApiTokens;</strong></pre><pre>class User extends Authenticatable</pre><pre>{</pre><pre>use <strong>HasApiTokens</strong>, HasFactory, Notifiable;</pre><p>You should be good to go , stay tune for the coming articles i will go over how to use sanctum with examples using postman.</p><p>And hey I would like to introduce to you storewid.com, an eCommerce platform that can help you build, manage and grow your online store with ease.Visit <a href="http://storewid.com/">storewid.com</a> and try it out for free.</p><p><strong>Before you go…</strong> Thanks for reading the article! If you enjoyed it, please don’t forget to show your appreciation by clicking 👏 below!</p><p>Any questions or comments hit me up on</p><p>Mail: <a href="/service/mailto:epmnzava@gmail.com">epmnzava@gmail.com</a></p><p>Twitter: <a href="https://twitter.com/epmnzava">https://twitter.com/epmnzava</a></p><p>Github: <a href="https://github.com/dbrax">https://github.com/dbrax</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=550376f3f664" width="1" height="1" alt=""><hr><p><a href="https://gopensource.com/using-laravel-sanctum-for-api-authentication-550376f3f664">Using Laravel Sanctum for API Authentication</a> was originally published in <a href="https://gopensource.com/">GopenSource</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>