<?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 Soneye Oluwasina Abimbola on Medium]]></title>
        <description><![CDATA[Stories by Soneye Oluwasina Abimbola on Medium]]></description>
        <link>https://medium.com/@bhimbho?source=rss-f1017ba5ea10------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*yHvHhe27PajZe40K821JpQ.jpeg</url>
            <title>Stories by Soneye Oluwasina Abimbola on Medium</title>
            <link>https://medium.com/@bhimbho?source=rss-f1017ba5ea10------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 15:34:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bhimbho/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[Debugging Openclaw Installation Error So You Don't Have To]]></title>
            <link>https://bhimbho.medium.com/debugging-openclaw-installation-error-so-you-dont-have-to-95bf48a7da98?source=rss-f1017ba5ea10------2</link>
            <guid isPermaLink="false">https://medium.com/p/95bf48a7da98</guid>
            <category><![CDATA[ai-development]]></category>
            <category><![CDATA[debugging-openclaw]]></category>
            <category><![CDATA[openclaw-errors]]></category>
            <dc:creator><![CDATA[Soneye Oluwasina Abimbola]]></dc:creator>
            <pubDate>Mon, 23 Mar 2026 01:23:27 GMT</pubDate>
            <atom:updated>2026-03-23T01:26:23.914Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4MfEyLMPjKzt3wZ5d9svLw.png" /><figcaption>debugging-openclaw-installation-error</figcaption></figure><p>So I decided to try out Openclaw. I ran the one-liner from their site:</p><pre>url -fsSL https://openclaw.ai/install.sh | bash</pre><p>Simple enough, right? Instead of a smooth setup, I got slapped with this:</p><pre>! npm install failed for openclaw@latest<br>npm error code EACCES<br>npm error syscall mkdir<br>npm error path /usr/local/lib/node_modules/openclaw<br>npm error errno -13</pre><p>Cool! What a way to get introduced to OpenClaw.</p><h3>Step Zero: Check Your Node Version First</h3><p>Before you touch anything else, verify your Node.js version. This is the step most people skip, and it causes a whole separate class of install failures.</p><p>Openclaw requires <strong>Node.js v22.16 or newer</strong>. Node 24 is the recommended default, and Node 22 LTS is the minimum supported version.</p><pre>node --version</pre><p>If you need to upgrade, the cleanest way on macOS is:</p><pre>brew install node</pre><p>Or grab the installer directly from <a href="https://nodejs.org/">nodejs.org</a>. If you use nvm:</p><pre>nvm install 24<br>nvm use 24</pre><p>Only once you&#39;re on v22.16 or later should you proceed.</p><p>If this happened to you, don&#39;t worry, your machine isn&#39;t broken, your Node install isn&#39;t cursed, and you don&#39;t need to wipe anything. The fix takes about 60 seconds once you know what&#39;s going on.</p><h3>What Even Is This Error?</h3><p>The short version: npm is trying to install Openclaw into a folder it doesn&#39;t have permission to touch.</p><p>That folder — It It /usr/local/lib/node_modules/is owned by your system (root), not by your user account. So when npm tries to create a new folder inside it, your Mac goes &quot;nope, you&#39;re not the boss of me&quot; and throws an EACCES (Access Denied) error.</p><p>This has nothing to do with Openclaw specifically. It&#39;s a classic macOS + npm gotcha that&#39;s caught developers off guard for years. The moment you try to install anything globally with npm on a fresh Mac, you&#39;re likely to hit it.</p><h3>The Fix (No Sudo Required)</h3><p>The cleanest solution — and the one npm itself recommends — is to point npm&#39;s global install directory somewhere your user account actually owns. Like your home folder.</p><p>Here&#39;s exactly what to run, in order:</p><p><strong>Step 1: Create a new directory for global npm packages</strong></p><pre>mkdir -p ~/.npm-global</pre><p><strong>Step 2: Tell npm to use it</strong></p><pre>npm config set prefix &#39;~/.npm-global&#39;</pre><p><strong>Step 3: Add it to your PATH so your terminal can find installed tools</strong></p><pre>echo &#39;export PATH=&quot;$HOME/.npm-global/bin:$PATH&quot;&#39; &gt;&gt; ~/.zshrc<br>source ~/.zshrc</pre><p><strong>Step 4: Now install Openclaw</strong></p><pre>SHARP_IGNORE_GLOBAL_LIBVIPS=1 npm install -g openclaw@latest</pre><p>That&#39;s it. Should work cleanly now.</p><h3>Why Not Just Use sudo?</h3><p>You might be tempted to just throw a sudo in front of the install command and call it a day. I get it, it feels like the path of least resistance.</p><p>But running it It sudo npm install -g is generally a bad idea. It installs files as root, which can cause permission headaches down the line, break future installs, and, in some edge cases, create security risks. The approach above is the proper fix, not a workaround.</p><h3>TL;DR</h3><p>First, confirm you&#39;re on Node.js v22.16 or newer (node --version) — that&#39;s Openclaw&#39;s minimum requirement, and Node 24 is recommended. Then, if you hit the EACCES error, npm tried to install into a system folder it didn&#39;t have permission to access. Redirect npm&#39;s global directory to~/.npm-global, update your PATH, and rerun the installer. No sudo, no drama.</p><p>Hope this saves someone a frustrating afternoon. Happy building with Openclaw! 🤖</p><p><em>Have you run into other weird setup issues with AI dev tools? Drop them in the comments — these kinds of stumbling blocks are worth documenting.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95bf48a7da98" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Do techies really work 8–9hours?]]></title>
            <link>https://bhimbho.medium.com/do-techies-really-work-8-9hours-ab85a65a74a2?source=rss-f1017ba5ea10------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab85a65a74a2</guid>
            <category><![CDATA[remote-working]]></category>
            <category><![CDATA[work-in-tech]]></category>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[tech-trends]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Soneye Oluwasina Abimbola]]></dc:creator>
            <pubDate>Thu, 01 Jan 2026 22:27:44 GMT</pubDate>
            <atom:updated>2026-03-23T01:32:06.320Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_G-BCuayuHX0112zgcWu2A.png" /><figcaption>do-we-work-8hours-in-tech</figcaption></figure><p><em>This read is simply an expression of thought…</em></p><p>Having been in the tech industry for some years now, I often wonder if people in tech work a standard 9–to–5 daily. I mean, companies expect you to work a minimum of 8 hours a day, but is that really the case?</p><p>What I have personally observed when working full-time jobs is that there are always nuances to be considered, but there’s absolutely nothing bad about having your <a href="https://wakatime.com/">wakatime</a> rank you working 21hours daily — <em>burnout just tends to creep up around the corner waiting for you in most cases😁</em></p><p>Some of the obvious nuances I have observed are interest in the projects and the project’s prospects — I mean, who doesn’t want to work on a project that will end up serving millions of users or go global? Take devs, for instance, if developers on a team are fully invested in the success of a project, they tend to work more hours and sometimes spend weekends working on the project solely based on the prospect.</p><p>Also, if the pay is good, it might be a driving force buuu..ut! That&#39;s solely not enough; oftentimes, it&#39;s just an impending doom waiting to happen. Another hypothesis might have been justified by <a href="https://www.amazon.com/Deep-Work-Focused-Success-Distracted/dp/1455586692">Cal Newport’s concept of deep work</a>, which emphasises that quality cognitive work is marginally limited and cannot be sustained for 8–10hours but the question to be asked is, how are those in Silicon Valley churning out the numbers we see when it comes to work rate? My guess is, they are the 1% of the one 1%, or they are just mad — <em>if that makes any sense</em></p><p>Someone mentioned time-tracking, and I personally think this is one of the worst ways to get people in tech to do full hours to the dot. Oftentimes, the system gets gamed using a bot. An LLM would easily write a solution to mimic keystrokes and mouse movement at scheduled intervals, and I personally believe it is one of the worst ways to get a team demotivated easily, but hey, what do I know? When a system monitors moves, it leaves little space for refined thoughts, creativity and expressions that could be valuable to a workspace</p><p>Word on the street is “Lock in”, “get cracked”, “sit at the desk overnight” etc but little is being said about burnouts that would literally make a career one once loved so much turn sour like a love story gone bad.</p><p>It’s a feasible thing to work for a long period within 24 hours, but if we’re being honest, the majority of those hours aren’t clocked for a salary; they’re clocked for something we genuinely love, a problem we can’t stop thinking about, or a product we actually believe in. The moment it becomes purely transactional is usually when the hours start to feel like a sentence.</p><p>So do we really work 8 hours in tech? My honest answer is sometimes less, sometimes double, rarely exactly 8. But maybe the better question isn’t how many hours we work. It’s whether the hours we put in are actually building something worth the cost of our time, our health, and occasionally, our weekends.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab85a65a74a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Explore fulltext search in laravel 10, 11 with Relations]]></title>
            <link>https://bhimbho.medium.com/explore-fulltext-search-in-laravel-10-11-with-relations-c95a2a66b0cc?source=rss-f1017ba5ea10------2</link>
            <guid isPermaLink="false">https://medium.com/p/c95a2a66b0cc</guid>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[full-text-search]]></category>
            <category><![CDATA[laravel-full-text-search]]></category>
            <category><![CDATA[laravel]]></category>
            <dc:creator><![CDATA[Soneye Oluwasina Abimbola]]></dc:creator>
            <pubDate>Sun, 21 Apr 2024 12:37:59 GMT</pubDate>
            <atom:updated>2024-04-29T00:02:21.792Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="fulltext search in laravel framework v10, v11" src="https://cdn-images-1.medium.com/max/1024/1*d3_wundiRsaguYlRW45_rA.jpeg" /></figure><p>While using LIKE operator in laravel can basically get the job done in Laravel when working on simple applications with small datasets <strong>Fulltext</strong> allows you to perform efficient searches on large text-based data. It is particularly useful when you need to search for specific words or phrases within large text fields, such as articles, descriptions, or comments.</p><h3><strong>Using fullText search in Laravel</strong></h3><p>Take a scenario where you want users to be able to search product names and description using Natural Language. In Laravel we need to:</p><h4>Specify FullText a migration:</h4><p>FullText indexes can be created with <strong>fullText() </strong>which takes the column(s), index name and algorithm type</p><pre>public function up(): void<br>{<br>    Schema::create(&#39;products&#39;, function (Blueprint $table) {<br>        $table-&gt;ulid(&#39;id&#39;)-&gt;primary();<br>        $table-&gt;string(&#39;name&#39;);<br>        $table-&gt;longText(&#39;description&#39;);<br>        $table-&gt;fullText([<br>                &#39;name&#39;,<br>                &#39;description&#39;,<br>            ], &#39;product_full_text_search&#39;);<br>        $table-&gt;softDeletes();<br>        $table-&gt;timestamps();<br>    });<br>}</pre><p>Single column can be index using:</p><pre>$table-&gt;fullText(&quot;name&quot;);</pre><p>and multiple columns can be specified using an array in place of the string.<br>The second which is the index name is optional as laravel uses the <strong>“table_name_column_names_fulltext” </strong>as title e.g <strong>“products_name_description_fulltext”</strong>, so also is the third paramter which is the algorithm type. <strong>Boolean Fulltext Search</strong> is adopted as the default in MySQL</p><h4>Dropping FullText</h4><pre>$table-&gt;dropFullText(&quot;products_name_description_fulltext&quot;);</pre><h4>Using FullText in a WHERE clause</h4><pre>Product::query()-&gt;whereFullText([&#39;name&#39;, &#39;description], $request-&gt;query(&#39;query&#39;))-&gt;get();</pre><p>The whereFullText() takes column(s) as first parameter and the search string as the next parameter.</p><h4>FullText Search on relationship</h4><p>This is quite complicated compared to a search on the model.</p><pre>Product::with([&#39;productCategory&#39;, &#39;productType&#39;, &#39;productImages&#39;])<br>    -&gt;where(function ($query) use ($request) {<br>        $query-&gt;whereFullText(&#39;name&#39;, $request-&gt;get(&#39;query&#39;));<br>        $query-&gt;orWhereHas(&#39;productCategory&#39;, function ($categoryQuery) use ($request) {<br>            $categoryQuery-&gt;whereFullText([&#39;name&#39;], $request-&gt;get(&#39;query&#39;));<br>        });<br>        $query-&gt;orWhereHas(&#39;productType&#39;, function ($productType) use ($request) {<br>            $productType-&gt;whereFullText([&#39;name&#39;], $request-&gt;get(&#39;query&#39;));<br>        });<br>    })</pre><p>The query above search for a match on the current Model Product and its associated model ProductCategory and ProductType using combination of <strong>where </strong>and<strong> whereFullText</strong> method.</p><p><strong>Note:</strong> Remember to add fulltext indexes for the associated fields and the required relationship in the model as needed.</p><p><strong>e.g:</strong> a migration file to add fulltext indexes on productType and productImages</p><p><strong>Conclusion:</strong></p><p>Fulltext search is quite useful when performing string searches, but its limitations become apparent when there’s a need to search data or integer columns in the database. However, this is acceptable as fulltext search was never intended for such usage. Nowadays, premium search engines like <a href="https://www.elastic.co/">Elasticsearch</a> and <a href="https://www.algolia.com/">Algolia</a> are commonly used, and they also offer AI features.</p><p>Additionally, using fulltext search on small datasets can be considered over-engineering, and as the data grows, performance enhancements may be required. For advanced usage, developers might need to resort to using raw SQL queries to configure parsers and relevance rankings.</p><p>It’s important to note that there is also the <a href="https://laravel.com/docs/10.x/queries#full-text-where-clauses">orWhereFulltext()</a> method available in Laravel for constructing fulltext search queries.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c95a2a66b0cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting up Sactum for Multi Auth Entities in Laravel v10 using Guard]]></title>
            <link>https://bhimbho.medium.com/setting-up-sactum-for-multi-auth-entities-in-laravel-v10-using-guard-0369ae24b27e?source=rss-f1017ba5ea10------2</link>
            <guid isPermaLink="false">https://medium.com/p/0369ae24b27e</guid>
            <category><![CDATA[laravel-framework]]></category>
            <category><![CDATA[laravel-passport]]></category>
            <category><![CDATA[laravel-sanctum]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[how-to]]></category>
            <dc:creator><![CDATA[Soneye Oluwasina Abimbola]]></dc:creator>
            <pubDate>Tue, 23 Jan 2024 23:41:36 GMT</pubDate>
            <atom:updated>2024-01-26T18:55:51.514Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*txsLe-2s8nK4iKrRoQzHlA.png" /><figcaption>sactum-for-multi-authentication</figcaption></figure><p>Multi Table for Seperate User Module Authentication</p><p>if you have heard or read about Laravel <a href="https://laravel.com/docs/10.x/passport">Passport</a> or JWTs (Json Web Tokens) then Laravel <a href="https://laravel.com/docs/10.x/sanctum">Sanctum</a> or for short <a href="https://laravel.com/docs/10.x/sanctum">Sanctum</a> should be thought of as lightweight version of Passport.</p><p>While both Passport and Sanctum are used in authentication there are key difference which makes one preferable over the other but area of application is a major determinant. i.e when building a product that its auth system has to do with Oauth2, Passport becomes the best choice as Sanctum is just token based.</p><p><strong>Key Difference between Sanctum and Passport:</strong></p><p><strong>Sanctum:</strong></p><ul><li>Its token based only</li><li>Easier to setup</li><li>Good fo SPAs</li></ul><p><strong>Passport:</strong></p><ul><li>Has good support for Oauth2</li><li>A bit complex to scaffold</li></ul><p><strong>Setting up Sactum in Laravel v10</strong></p><p>As Sanctum already comes with Laravel out of the box. Assuming you have 3 seperate entities Administrator, Vendor, User and you want to make different modules for each using seperate auth table.</p><p><strong>Making Model</strong></p><p>Create a model for Administrator, Vendor and User</p><p>php artisan make:model {modelName} -mcr</p><p><strong><em>Note:</em></strong><em>replace {modelName} with actual model name e.g Administrator</em></p><p>where -mcr stands for</p><ul><li>m: migration</li><li>c: controller</li><li>r: resource</li></ul><p><strong>import</strong>hasApiTokens<strong>trait and extend</strong>Authenticatable</p><pre>&lt;?php<br>namespace App\Models\Administrator;<br>use Illuminate\Database\Eloquent\Concerns\HasUlids;<br>use Illuminate\Database\Eloquent\Factories\HasFactory;<br>use Illuminate\Foundation\Auth\User as Authenticatable;<br>use Laravel\Sanctum\HasApiTokens;<br>class Administrator extends Authenticatable<br>{<br>    use HasFactory, HasApiTokens, HasUlids;<br>}</pre><p><strong>Configure config/auth.php</strong></p><p>Add desired guards and specify a provider</p><pre>&#39;guards&#39; =&gt; [<br>        &#39;web&#39; =&gt; [<br>            &#39;driver&#39; =&gt; &#39;session&#39;,<br>            &#39;provider&#39; =&gt; &#39;users&#39;,<br>        ],<br>        &#39;admin&#39; =&gt; [<br>            &#39;driver&#39; =&gt; &#39;session&#39;,<br>            &#39;provider&#39; =&gt; &#39;admins&#39;,<br>        ],<br>        &#39;vendor&#39; =&gt; [<br>            &#39;driver&#39; =&gt; &#39;session&#39;,<br>            &#39;provider&#39; =&gt; &#39;vendors&#39;,<br>        ],<br>    ],</pre><p><strong>Configuring providers</strong></p><pre>&#39;providers&#39; =&gt; [<br>        &#39;users&#39; =&gt; [<br>            &#39;driver&#39; =&gt; &#39;eloquent&#39;,<br>            &#39;model&#39; =&gt; User::class,<br>        ],<br>        &#39;admins&#39; =&gt; [<br>            &#39;driver&#39; =&gt; &#39;eloquent&#39;,<br>            &#39;model&#39; =&gt; Administrator::class,<br>        ],<br>        &#39;vendors&#39; =&gt; [<br>            &#39;driver&#39; =&gt; &#39;eloquent&#39;,<br>            &#39;model&#39; =&gt; Vendor::class,<br>        ],<br>    ],</pre><p><strong>Note:</strong> You might specify a different password_reset_token table in the same file.</p><p><strong>Identifying a specific user request through Guard and creating a sactum auth token.</strong></p><ul><li><strong>Registering User</strong></li></ul><pre>public function register(Request $request) : JsonResponse {<br>        $admin = Administrator::create([<br>            &#39;firstname&#39; =&gt; $request-&gt;firstname,<br>            &#39;lastname&#39; =&gt; $request-&gt;lastname,<br>            &#39;phone&#39; =&gt; isset($request-&gt;phone) ? $request-&gt;phone : null,<br>            &#39;email&#39; =&gt; $request-&gt;email,<br>            &#39;password&#39; =&gt; Hash::make($request-&gt;password),<br>        ]);<br>        $admin-&gt;createToken(&#39;Code with Soneye&#39;)-&gt;plainTextToken;<br>        return response()-&gt;json($admin, 201);<br>    }</pre><ul><li><strong>Logging in with an Administrator</strong></li></ul><pre>public function login(LoginRegisterRequest $request) : JsonResponse {<br>        $credentials = $request-&gt;only(&#39;email&#39;, &#39;password&#39;);<br>        if (Auth::guard(&#39;admin&#39;)-&gt;attempt($credentials)) {<br>            $token = Auth::guard(&#39;admin&#39;)-&gt;user()-&gt;createToken(&#39;Code with SOneye&#39;)-&gt;plainTextToken;<br>            return response()-&gt;json($token, 200);<br>        }<br>    }</pre><p>To validated request on <a href="https://www.postman.com/">postman</a>, attach generated response token to <strong>beare auth</strong></p><p><strong>Protecting route with sanctum</strong></p><p>Use the auth:sanctum middleware</p><pre>Route::middleware(&#39;auth:sanctum&#39;)-&gt;get(&#39;/user&#39;, function (Request $request) {<br>    return $request-&gt;user();<br>});</pre><p>Thanks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0369ae24b27e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[UUIDs / ULIDs in Laravel v10]]></title>
            <link>https://bhimbho.medium.com/uuids-ulids-in-laravel-v10-1117a589938e?source=rss-f1017ba5ea10------2</link>
            <guid isPermaLink="false">https://medium.com/p/1117a589938e</guid>
            <dc:creator><![CDATA[Soneye Oluwasina Abimbola]]></dc:creator>
            <pubDate>Mon, 22 Jan 2024 02:20:30 GMT</pubDate>
            <atom:updated>2024-01-22T02:20:30.877Z</atom:updated>
            <content:encoded><![CDATA[<p>I remember when I first came across auto-incremented integer values as Primary Key in MySQL. It seem pretty cool then later came across UUIDs and then U<strong>L</strong>ID. For starters, what are UUIDs and U<strong>L</strong>IDs?</p><h3>What is a UUID?</h3><p><a href="https://en.wikipedia.org/wiki/Universally_unique_identifier">U<strong>U</strong>ID</a> stands for Universally <strong>Unique</strong> Identifier and can also be know as <strong>GUID</strong> in Microsoft settings. I’m sure you must have come across a combination of strings of this nature 53649e67-2636-4e54-b491-37761f682221. UUIDs are usually consisted of 36character string which are 128bit. UUID are generated from</p><h3>What is a ULID?</h3><p>on the other hand, U<strong>L</strong>ID stands for Universally <strong>Lexiological</strong> Identifier. The significant difference between UUID and U<strong>L</strong>ID is that U<strong>L</strong>ID are sortable and case sensitive.<br>Some other difference include</p><ul><li>U<strong>L</strong>IDs consist of a 48-bit timestamp and a 80-bit random component to make 128bit.</li><li>They are more suitable and you necessarily dont have to implement integer Primary Key alongside U<strong>L</strong>ID.</li></ul><h3>Implementing UUID and ULID in Laravel v10</h3><p>By default, Laravel ships with UUID and ULID from Laravel v9 but integer table ID (PK) are used by default. So use either UUID and ULID. You have to use hasUuids or hasUlids traits on the preferred Model class.</p><p>ULID</p><pre>&lt;?php<br>class User extends Authenticatable<br>{<br>    use HasFactory, Notifiable, HasUlids;<br>}</pre><p>UUID</p><pre>&lt;?php<br>class User extends Authenticatable<br>{<br>    use HasFactory, Notifiable, HasUuids;<br>}</pre><h3>Writing Migration Files with UUID/ULID</h3><pre>public function up(): void<br>    {<br>        Schema::create(&#39;administrators&#39;, function (Blueprint $table) {<br>            $table-&gt;ulid(&#39;id&#39;);<br>            $table-&gt;string(&#39;firstname&#39;);<br>            $table-&gt;rememberToken();<br>            $table-&gt;timestamps();<br>        });<br>    }</pre><pre>public function up(): void<br>    {<br>        Schema::create(&#39;administrators&#39;, function (Blueprint $table) {<br>            $table-&gt;uuid(&#39;id&#39;);<br>            $table-&gt;string(&#39;firstname&#39;);<br>            $table-&gt;rememberToken();<br>            $table-&gt;timestamps();<br>        });<br>    }</pre><p>If you use sanctum, you’ll come across $table-&gt;morphs in persona_access_token migration. To use UUID and ULID change:</p><pre>$table-&gt;id();<br>$table-&gt;morphs(&#39;tokenable&#39;);<br><br>//to<br> <br>$table-&gt;ulid();<br>$table-&gt;ulidMorphs(&#39;tokenable&#39;);</pre><h3>Advantages of UUID/ULID</h3><ul><li>Readability</li><li>No Predictability (Secure)</li><li>No Centralized Mode of Generation</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1117a589938e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>