<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: E. I. EJEH</title>
    <description>The latest articles on DEV Community by E. I. EJEH (@donejeh).</description>
    <link>https://dev.to/donejeh</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F397859%2F1c127d3b-6356-411a-bc3a-c054828c88fc.jpg</url>
      <title>DEV Community: E. I. EJEH</title>
      <link>https://dev.to/donejeh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/donejeh"/>
    <language>en</language>
    <item>
      <title>Easy way to clone public/private repo on android device via SSH</title>
      <dc:creator>E. I. EJEH</dc:creator>
      <pubDate>Fri, 08 Sep 2023 12:56:30 +0000</pubDate>
      <link>https://dev.to/donejeh/easy-way-to-clone-publicprivate-repo-on-android-device-via-ssh-3mh7</link>
      <guid>https://dev.to/donejeh/easy-way-to-clone-publicprivate-repo-on-android-device-via-ssh-3mh7</guid>
      <description>&lt;p&gt;In an era where smartphones continue to advance in sophistication, there may come a time when you find yourself without access to your computer system and wish to utilize your Android phone to clone a private repository from GitHub. This can be particularly useful if you need to make alterations or edit lines of code and subsequently push those changes back to your Git repository. today in this tutorial I will show you how to make that possible. below are the Prerequisites.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prerequisite&lt;/strong&gt;&lt;br&gt;
Android phone &lt;br&gt;
Github or any other version control account&lt;br&gt;
&lt;a href="https://f-droid.org/en/packages/com.termux/" rel="noopener noreferrer"&gt;Termux&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Install &lt;a href="https://f-droid.org/en/packages/com.termux/" rel="noopener noreferrer"&gt;Termux&lt;/a&gt; and open it. then run this command to install git on your android phone via termux.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pkg install git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;**NOTE:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;First commit after installing git you have to specify who you are git config --global user.name "" git config --global user.email ""&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;To clone a private repository via Git, you typically add your android **SSH public key&lt;/strong&gt; to your GitHub account. This allows you to authenticate and access private repositories securely without needing to enter your username and password each time. Your private key should be kept secure on your local machine, while the public key is shared with GitHub to verify your identity when you make Git operations like cloning, pushing, or pulling from private repositories.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ssh-keygen -t rsa -b 4096 -C "your-github@mail.com"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;OR&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ssh-keygen -t ed25519 -C "your-github@mail.com"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0s1ke7ltyaonifzw0gy9.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0s1ke7ltyaonifzw0gy9.jpg" alt="ssh-keygen timux" width="800" height="1733"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The command ssh-keygen -t rsa is used to generate an SSH (Secure Shell) key pair with RSA encryption.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fni6p9thd2jtqbygmu9v1.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fni6p9thd2jtqbygmu9v1.jpg" alt="termux ssh" width="800" height="1733"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;copy the public key&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhnxcwwlyv16w5f4r3qyf.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhnxcwwlyv16w5f4r3qyf.jpg" alt="termux" width="800" height="1733"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account" rel="noopener noreferrer"&gt;check out the official github on how to add your own ssh &lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Adding a new SSH key to your account&lt;/p&gt;

&lt;p&gt;In the "Access" section of the sidebar, click  SSH and GPG keys.&lt;/p&gt;

&lt;p&gt;Click New SSH key or Add SSH key.&lt;/p&gt;

&lt;p&gt;In the "Title" field, add a descriptive label for the new key. For example, if you're using a personal laptop, you might call this key "Personal laptop".&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzm1so966j8mj933g0afo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzm1so966j8mj933g0afo.png" alt="timux and github" width="800" height="361"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;you can also test if your connection is successful using this command&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ssh -T git@github.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;"After completing the above process, you can now return to your Android terminal and test by cloning a private repository.&lt;/p&gt;

&lt;p&gt;This tutorial will serve as a foundation for upcoming tutorials on how to utilize your Android smartphone as a helpful tool."&lt;/p&gt;

&lt;p&gt;Follow me on X for more.. &lt;a href="https://twitter.com/don_ejeh" rel="noopener noreferrer"&gt;Ejeh on X&lt;/a&gt;&lt;/p&gt;

</description>
      <category>github</category>
      <category>git</category>
      <category>android</category>
      <category>ssh</category>
    </item>
    <item>
      <title>Config ffmjpeg for video manipulation on any Laravel project</title>
      <dc:creator>E. I. EJEH</dc:creator>
      <pubDate>Thu, 11 May 2023 16:04:00 +0000</pubDate>
      <link>https://dev.to/donejeh/config-ffmjpeg-for-video-manipulation-on-any-laravel-project-5172</link>
      <guid>https://dev.to/donejeh/config-ffmjpeg-for-video-manipulation-on-any-laravel-project-5172</guid>
      <description>&lt;p&gt;Before you start reading post i highly encourage you to checkout this installation part of ffmjpeg on windows below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.to/donejeh/ffmjpeg-on-windows-for-video-manipulation-phplaravel-journey-part-1-31ce"&gt;https://dev.to/donejeh/ffmjpeg-on-windows-for-video-manipulation-phplaravel-journey-part-1-31ce&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;before working with ffmjpeg in your project you need to install the binary package on your system or server.&lt;/p&gt;

&lt;p&gt;Here are the steps to follow and configure ffmjpeg on new or old laravel project. &lt;/p&gt;

&lt;p&gt;Here is the official Github package link for laravel-ffmpeg&lt;br&gt;
&lt;a href="https://github.com/protonemedia/laravel-ffmpeg" rel="noopener noreferrer"&gt;https://github.com/protonemedia/laravel-ffmpeg&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is the official Github package link php-ffmpeg&lt;br&gt;
&lt;a href="https://github.com/PHP-FFMpeg/PHP-FFMpeg" rel="noopener noreferrer"&gt;https://github.com/PHP-FFMpeg/PHP-FFMpeg&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can also follow the above link to setup.&lt;/p&gt;

&lt;p&gt;=&amp;gt; open your laravel and require the package&lt;br&gt;
&lt;code&gt;composer require pbmedia/laravel-ffmpeg&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;=&amp;gt; Add the Service Provider and Facade to your &lt;strong&gt;app.php&lt;/strong&gt; config file if you're not using Package Discovery.&lt;/p&gt;

&lt;p&gt;// config/app.php&lt;br&gt;
'providers' =&amp;gt; [&lt;br&gt;
    ...&lt;br&gt;
    ProtoneMedia\LaravelFFMpeg\Support\ServiceProvider::class,&lt;br&gt;
    ...&lt;br&gt;
];&lt;/p&gt;

&lt;p&gt;'aliases' =&amp;gt; [&lt;br&gt;
    ...&lt;br&gt;
    'FFMpeg' =&amp;gt; ProtoneMedia\LaravelFFMpeg\Support\FFMpeg::class&lt;br&gt;
    ...&lt;br&gt;
];&lt;/p&gt;

&lt;p&gt;=&amp;gt; Add the folder path to your ffmjpeg binary to your env like this below&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzzpyabqhuqhqesueg69a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzzpyabqhuqhqesueg69a.png" alt="ffmpeg env path" width="682" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;we can test by creating single route file, try to Convert an audio or video file:&lt;/p&gt;

&lt;p&gt;Route::get('/', function(){&lt;/p&gt;

&lt;p&gt;FFMpeg::fromDisk('songs')&lt;br&gt;
    -&amp;gt;open('sample.mp4')&lt;br&gt;
    -&amp;gt;export()&lt;br&gt;
    -&amp;gt;toDisk('converted_songs')&lt;br&gt;
    -&amp;gt;inFormat(new \FFMpeg\Format\Audio\Aac)&lt;br&gt;
    -&amp;gt;save('audio_output.mp4');&lt;br&gt;
});&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;make sure you import the class use ProtoneMedia\LaravelFFMpeg\Support\FFMpeg;&lt;br&gt;
*&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;NOTE YOU HAVE TO INSTALL FFMJPEG ON YOUR SYSTEM OR SERVER&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://dev.to/donejeh/ffmjpeg-on-windows-for-video-manipulation-phplaravel-journey-part-1-31ce"&gt;check out this post on how to setup one&lt;/a&gt;&lt;br&gt;
THANK YOU FOR READING IF YOU HAVE ANY QUESTION OR ISSUES YOU CAN DROP COMMENT BELOW&lt;/p&gt;

</description>
      <category>programming</category>
      <category>laravel</category>
      <category>ffmjpeg</category>
      <category>webdev</category>
    </item>
    <item>
      <title>FFMJPEG on windows for video manipulation, Php/Laravel Journey [Part 1]</title>
      <dc:creator>E. I. EJEH</dc:creator>
      <pubDate>Thu, 11 May 2023 15:27:13 +0000</pubDate>
      <link>https://dev.to/donejeh/ffmjpeg-on-windows-for-video-manipulation-phplaravel-journey-part-1-31ce</link>
      <guid>https://dev.to/donejeh/ffmjpeg-on-windows-for-video-manipulation-phplaravel-journey-part-1-31ce</guid>
      <description>&lt;p&gt;This is not news on internet: With the exception of those who work in the video/audio software development industry, few people are familiar with &lt;a href="https://ffmpeg.org/" rel="noopener noreferrer"&gt;FFmpeg&lt;/a&gt;, a widely recognized tool among professionals in this field.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://ffmpeg.org/" rel="noopener noreferrer"&gt;FFmpeg&lt;/a&gt; is a versatile open-source tool that enables users to decode and encode any video format, allowing for seamless conversion between formats. This powerful tool supports a wide range of audio and video codecs such as &lt;strong&gt;h264, h265, vp8, vp9, aac, opus,&lt;/strong&gt; and various file formats including &lt;strong&gt;mp4, Flv, Mkv, ts, WebM, mp3,&lt;/strong&gt; among others. Additionally, FFmpeg is compatible with a diverse range of streaming protocols, such as &lt;strong&gt;HTTP, RTMP, RTSP, HLS, and RTSP.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In summary, &lt;a href="https://ffmpeg.org/" rel="noopener noreferrer"&gt;FFmpeg&lt;/a&gt; serves as both a library and a standalone executable that can be utilized in custom video/audio software. An intriguing aspect of &lt;a href="https://ffmpeg.org/" rel="noopener noreferrer"&gt;FFmpeg&lt;/a&gt; is its ability to perform complex video and audio manipulation tasks with ease.&lt;/p&gt;

&lt;p&gt;In this tutorial and the series of others that follow, I will show you how to work with ffmpeg on PHP and Laravel to manipulate videos. But before that, let me show you the process of installing ffmpeg on your Windows operating system. Note that you can check other blog posts on how to install ffmpeg on your operating system, such as Mac and Linux, because ffmpeg is a complete, cross-platform solution for recording, converting, and streaming audio and video.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to install ffmpeg on windows
&lt;/h2&gt;

&lt;p&gt;=&amp;gt; Download the binary file at&lt;a href="https://www.gyan.dev/ffmpeg/builds/" rel="noopener noreferrer"&gt; https://www.gyan.dev/ffmpeg/builds/&lt;/a&gt; or &lt;a href="https://ffmpeg.org/download.html#build-windows" rel="noopener noreferrer"&gt;https://ffmpeg.org/download.html#build-windows&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;=&amp;gt; You can extract the files into a folder mainly on *&lt;em&gt;C:*&lt;/em&gt; drive as shown below&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkzbyevec1nnxco3cl65o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkzbyevec1nnxco3cl65o.png" alt="ffmpeg on windows location" width="800" height="259"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;=&amp;gt; Next set a path to &lt;strong&gt;ffmpeg bin&lt;/strong&gt; folder so that we can run it on our command prompt. if you are following this tutorial, here is our path &lt;strong&gt;C:\ffmpeg\bin&lt;/strong&gt;. check the video below and see if you are following one..&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foiicc3jeaacw2bqm9vhr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foiicc3jeaacw2bqm9vhr.png" alt="ffmpeg on windows path" width="702" height="266"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now we can test by opening our command prompt and type &lt;strong&gt;ffmpeg&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5fydbhrvhc11h3v72mc8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5fydbhrvhc11h3v72mc8.png" alt="windows installation prompt" width="800" height="377"&gt;&lt;/a&gt;&lt;br&gt;
*&lt;em&gt;Congratulation if what you see on cmd is the same as mine.&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
Now that install FFmpeg on your computer somehow by compiling or installing binary packages and let me give some examples to show how to use FFmpeg.&lt;/p&gt;

&lt;p&gt;=&amp;gt; Getting audio or video file information&lt;br&gt;
      &lt;code&gt;$ ffmpeg -i video.mp4&lt;/code&gt;&lt;br&gt;
=&amp;gt; Converting video files to different formats&lt;br&gt;
    &lt;code&gt;$ ffmpeg -i video.mp4 video.avi&lt;/code&gt;&lt;br&gt;
=&amp;gt; Converting video files to audio files&lt;br&gt;
   &lt;code&gt;$ ffmpeg -i video.flv video.mpeg&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;Next tutorial will be how to setup ffmpeg on our laravel project and make use of it.&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
&lt;a href="https://dev.to/donejeh/config-ffmjpeg-for-video-manipulation-on-any-laravel-project-5172"&gt;check out how to start working with ffmjpeg on php or laravel&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thank you for reading, dont forget to drop comment if you face any challenging.&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>php</category>
      <category>windows</category>
      <category>learning</category>
    </item>
    <item>
      <title>[Common mistake] Sharing session across multiple Laravel subdomain</title>
      <dc:creator>E. I. EJEH</dc:creator>
      <pubDate>Tue, 15 Jun 2021 06:39:41 +0000</pubDate>
      <link>https://dev.to/donejeh/common-mistake-sharing-session-across-multiple-laravel-subdomain-2a51</link>
      <guid>https://dev.to/donejeh/common-mistake-sharing-session-across-multiple-laravel-subdomain-2a51</guid>
      <description>&lt;p&gt;To Share session across domain and it's multiple especially when you have large ecosystem were multiple applications communicate with one database So when a user authenticates any of these apps, they will be logged in everywhere.&lt;/p&gt;

&lt;p&gt;For example, when a user &lt;strong&gt;AUTH&lt;/strong&gt; into &lt;a href="http://mywebsite.com" rel="noopener noreferrer"&gt;http://mywebsite.com&lt;/a&gt;, he or she can easily access the rest of the sub hosted site directly say &lt;a href="http://dashboard.mywebsite.com" rel="noopener noreferrer"&gt;http://dashboard.mywebsite.com&lt;/a&gt; or &lt;a href="http://subdomain.mywebsite.com" rel="noopener noreferrer"&gt;http://subdomain.mywebsite.com&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Actually it's easy to share session on Laravel by following this steps. Basically you need the exact same sessions configuration in all of your applications, also the same encryption key.&lt;/p&gt;

&lt;p&gt;1) Open your &lt;strong&gt;.ENV&lt;/strong&gt;  and add the following:&lt;br&gt;
&lt;strong&gt;SESSION_DRIVER=database&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;SESSION_DOMAIN=.domain.com&lt;/strong&gt;&lt;br&gt;
Example as shown &lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe4tsk3z9v10s6m4wrkz1.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe4tsk3z9v10s6m4wrkz1.PNG" alt="session on Laravel" width="275" height="123"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;(Dont forget Make sure to include a dot(.) before your domain name.)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;2) Store the sessions in the database&lt;br&gt;
This command will create a migration for your sessions:&lt;/p&gt;

&lt;p&gt;=&amp;gt; First generate a migration file&lt;br&gt;
&lt;strong&gt;php artisan session:table&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;=&amp;gt;Now, migrate generated sessions table&lt;br&gt;
&lt;strong&gt;php artisan migrate&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That’s it. You are done.&lt;br&gt;
Don’t forget to clear the cookies for all of your apps before you start testing. Example below &lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foda302k80q2l1w6sy0bh.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foda302k80q2l1w6sy0bh.PNG" alt="session on Laravel" width="800" height="347"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Common mistake and check you should notice whenever you follow the after steps and your session isn't sharing.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Make you Update application keys&lt;/strong&gt;&lt;br&gt;
Make sure the &lt;em&gt;“APP_KEY”&lt;/em&gt; variable in your .env file has the same value in all your applications. Just copy one and paste it everywhere.&lt;/p&gt;

&lt;p&gt;Don't forget to use same &lt;strong&gt;"APP_NAME"&lt;/strong&gt; across you applications, otherwise it will not work, laravel use &lt;strong&gt;APP_NAME&lt;/strong&gt; to generate cookies and cookies name should be same to make it work propertly.&lt;/p&gt;

&lt;p&gt;DELETE &lt;strong&gt;config.php inside your laravel project bootstrap/cache folder&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;And that's it.. with above checks you are go to go.&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>php</category>
    </item>
    <item>
      <title>Test Webhook on localhost serve using Laragon</title>
      <dc:creator>E. I. EJEH</dc:creator>
      <pubDate>Mon, 17 May 2021 15:54:20 +0000</pubDate>
      <link>https://dev.to/donejeh/webhook-on-localhost-serve-using-laragon-429g</link>
      <guid>https://dev.to/donejeh/webhook-on-localhost-serve-using-laragon-429g</guid>
      <description>&lt;p&gt;Webhooks are a simple way to communicate different services, So if you are a web developer, you will need to understand how Webhooks work to use it in your web applications. Now, taking Paystack Nigeria as cast study you will see the integration and how to handle Webhooks with Laravel (PHP) and &lt;a href="https://laragon.org/" rel="noopener noreferrer"&gt;Largaon &lt;/a&gt;. Without taking much of our time I'm let get started. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.to/donejeh/improve-performance-by-deleting-laravel-log-file-via-routes-artisan-exec-1pe6"&gt;dont miss out how to improve the performance on laravel web app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;NOTE: This tutorial can be use on any system or web app that provides webhooks event deriving..&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Requirements:
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;=&amp;gt; &lt;a href="https://laragon.org/" rel="noopener noreferrer"&gt;Largaon &lt;/a&gt;&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;=&amp;gt; &lt;a href="https://paystack.com/" rel="noopener noreferrer"&gt;Paystack Account&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; if you have Download and install laragon, by default it comes &lt;strong&gt;ngrok&lt;/strong&gt; per-installed. &lt;em&gt;ngrok provides a real-time web UI where you can introspect all HTTP traffic running over your tunnels&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; open your laravel project on your laragon, and then we are going to use ngrok and expose of localhost host to live by I simply right click on the laragon icon then go to the following: , www ,share, share your project. &lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwxmt9z1wmifv46ide4i8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwxmt9z1wmifv46ide4i8.png" alt="Alt Text" width="800" height="566"&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;ngrok expose your laragon local tunneling&lt;/em&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Floopvxy4ptpa1qlabyqh.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Floopvxy4ptpa1qlabyqh.PNG" alt="Alt Text" width="748" height="505"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Copy the SSL url provided by ngrok and keep it some where safe.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3:&lt;/strong&gt; Goto your paystack dashboard under settings or any web application you are working with that has webhooks event as shown below using paystack webhooks as example.. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdnjyrnefg0jx4c8y7h4i.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdnjyrnefg0jx4c8y7h4i.PNG" alt="Alt Text" width="800" height="505"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;replace your real domain name with ngrok domain name / the fullpath of your laravel roure example as shown below&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://example.com/payment/webhooks" rel="noopener noreferrer"&gt;https://example.com/payment/webhooks&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;with&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://12ad5fbf1740.ngrok.io/payment/webhooks" rel="noopener noreferrer"&gt;https://12ad5fbf1740.ngrok.io/payment/webhooks&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;As a step 3, you must disable the CSRF token validation for the route we just configured. Because the request comes out of the session and does not contain the CSRF token. We add the path to exceptions where validation is not necessary. Open the &lt;strong&gt;VerifyCsrfToken.php&lt;/strong&gt; file from &lt;em&gt;app/Http/Middleware&lt;/em&gt; and add the path to the $ except property.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4yx8mbsz6kefehza57t4.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4yx8mbsz6kefehza57t4.PNG" alt="Alt Text" width="673" height="367"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The webhooks will send requests to the URL (endpoint) that you indicated via your route which you will hander the payload and take a proper action on it. &lt;/p&gt;

&lt;p&gt;I think that it's, for comment and questioning you can drop it below else share and like ... :)&lt;/p&gt;

&lt;p&gt;**&lt;/p&gt;

&lt;h2&gt;
  
  
  UPDATE 21/092023
&lt;/h2&gt;

&lt;p&gt;**&lt;/p&gt;

&lt;p&gt;IF YOU CAN NOT EXPOSE DIRECTLY VIA LARAGON AS OF THIS DATE, THEN YOU CAN DOWNLOAD ngrok AND RUN THIS COMMAND BELOW &lt;br&gt;
ngrok &lt;code&gt;http --host-header=&amp;lt;your_domain_name&amp;gt; 80&lt;/code&gt; &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;NOTE: don't include http eg ngrok http --host-header=laravelbackend.test 80&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>paystack</category>
      <category>php</category>
      <category>ngrok</category>
    </item>
    <item>
      <title>Improve performance by deleting laravel log file via Routes. (Artisan &amp; exec)</title>
      <dc:creator>E. I. EJEH</dc:creator>
      <pubDate>Sun, 11 Apr 2021 20:13:39 +0000</pubDate>
      <link>https://dev.to/donejeh/improve-performance-by-deleting-laravel-log-file-via-routes-artisan-exec-1pe6</link>
      <guid>https://dev.to/donejeh/improve-performance-by-deleting-laravel-log-file-via-routes-artisan-exec-1pe6</guid>
      <description>&lt;p&gt;Laravel log file helps we developers in so many ways such logging of data and more importantly is that all errors generated by our web application are be logged in our laravel log file which is located at &lt;strong&gt;storage\logs\laravel.log&lt;/strong&gt;, this error generated by our web app can make log file size rapidly increasing to like 30GB in size 😲 according to this post =&amp;gt; &lt;a href="https://community.librenms.org/t/laravel-log-file-size-rapidly-increasing/7232" rel="noopener noreferrer"&gt;Laravel log file size rapidly increasing&lt;/a&gt;, this can be a bottle neck problem to some simple Laravel application out there that is been hosted in a small web shared hosting site with limit disk space. Instead of using &lt;strong&gt;ssh or filezilla&lt;/strong&gt; to delete this log file manually over and over, here i will show you how to do that with via route i.e when you goto &lt;strong&gt;&lt;a href="http://www.yoursite.come/clear" rel="noopener noreferrer"&gt;www.yoursite.come/clear&lt;/a&gt; or &lt;a href="http://www.yoursite.come/delete" rel="noopener noreferrer"&gt;www.yoursite.come/delete&lt;/a&gt;&lt;/strong&gt; that log file will be deleted and your server will have a breathing space. 👽 &lt;/p&gt;

&lt;p&gt;Let get started either by using existing project or creating new project this will still work.&lt;/p&gt;

&lt;p&gt;Goto your web.php file and paste this&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Route::get('/clear', function() {&lt;br&gt;
    exec('rm -f ' . storage_path('logs/&lt;em&gt;.log'));&lt;br&gt;
    exec('rm -f ' . base_path('&lt;/em&gt;.log'));&lt;br&gt;
    return "Log file deleted";&lt;br&gt;
});&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;To run the Above route goto &lt;strong&gt;&lt;a href="http://www.yoursite.com/clear" rel="noopener noreferrer"&gt;www.yoursite.com/clear&lt;/a&gt;&lt;/strong&gt; and hit enter, BOOM it delete all the log file in &lt;strong&gt;storage_path or base_path.&lt;/strong&gt; So also you can change this to any location you log file is kept. 😁&lt;/p&gt;

&lt;p&gt;For bonus let me show you a simple way to run Artisan inside route (web.php or api.php) on live production with using terminal. WIth this Artisan command you can optimize your laravel web app.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Route::get('/cl', function() {&lt;br&gt;
    Artisan::call('config:cache');&lt;br&gt;
    Artisan::call('cache:clear');&lt;br&gt;
    Artisan::call('config:clear');&lt;br&gt;
    Artisan::call('view:clear');&lt;br&gt;
    Artisan::call('route:clear');&lt;br&gt;
    exec('rm -f ' . storage_path('logs/&lt;em&gt;.log'));&lt;br&gt;
    exec('rm -f ' . base_path('&lt;/em&gt;.log'));&lt;br&gt;
    return "Cache is cleared";&lt;br&gt;
})-&amp;gt;name('clear.cache');&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Above command helps you to Improve Laravel Performance by removing Config caching, Routes caching and view caching for better loading of your web app. 😜&lt;/p&gt;

&lt;p&gt;Post Motivation &lt;br&gt;
&lt;a href="https://laracasts.com/discuss/channels/laravel/my-laravellog-size-is-31-gb#:~:text=log%20size%20is%2031%20GB,-Hello%20everyone%2C%20I" rel="noopener noreferrer"&gt;My laravel.log size is 31 GB&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;For more tutorial share , comment and if any question or suggest drop it.&lt;/p&gt;

&lt;p&gt;Follow me on X for more.. &lt;a href="https://twitter.com/don_ejeh" rel="noopener noreferrer"&gt;Ejeh on X&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>php</category>
      <category>artisan</category>
    </item>
    <item>
      <title>How to access your laragon local projects using Android phone</title>
      <dc:creator>E. I. EJEH</dc:creator>
      <pubDate>Sun, 04 Apr 2021 19:58:58 +0000</pubDate>
      <link>https://dev.to/donejeh/how-to-access-your-laragon-local-projects-using-android-phone-21ie</link>
      <guid>https://dev.to/donejeh/how-to-access-your-laragon-local-projects-using-android-phone-21ie</guid>
      <description>&lt;p&gt;Here i'm back with a little tutorial for you guys especially the team mobile developers that uses laravel as their backend and love using laragon as their local testing server. This particular tutorial details you on how to use your mobile phone to access all your laragon local files easily. &lt;em&gt;why do you need that if you may ask me?&lt;/em&gt; &lt;strong&gt;Okay let say for example you are developing a web app and you want to test the responsiveness cross devices from desktop to mobile view&lt;/strong&gt;, here is an easy way to go about it without deploying your web app on live server.&lt;/p&gt;

&lt;p&gt;You can also check this =&amp;gt; &lt;a href="https://dev.to/donejeh/how-to-create-your-own-alias-for-php-artisan-command-on-cmder-5hhi"&gt;How to create your own alias for “php artisan” command on cmder&lt;/a&gt;. &lt;/p&gt;

&lt;h1&gt;
  
  
  Requirement
&lt;/h1&gt;

&lt;p&gt;=&amp;gt; Android Phone.&lt;br&gt;
=&amp;gt; Laptop or Desktop(where you are doing your development)&lt;br&gt;
=&amp;gt; &lt;a href="https://laragon.org/" rel="noopener noreferrer"&gt;Laragon server&lt;/a&gt;.&lt;br&gt;
=&amp;gt; USB or WIFI connections.&lt;/p&gt;

&lt;p&gt;The above requirement are important for this tutorial to be successful. &lt;strong&gt;okay let started&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;STEP 1: very important You need to be connected on Thesame network either &lt;em&gt;via WIFI or USB TETHERING&lt;/em&gt; make sure is connected else it wont work. &lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzmcic4yx8s9thc2absxa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzmcic4yx8s9thc2absxa.png" alt="image" width="274" height="103"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Above image shows my own connection using USB TETHERING..&lt;/p&gt;

&lt;p&gt;STEP 2: Open your cmd &lt;strong&gt;(windows key + r type cmd)&lt;/strong&gt;. Type &lt;strong&gt;ipconfig&lt;/strong&gt; to list all the available network connection on your system.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxgzdomb0b7ad2o3v4m5v.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxgzdomb0b7ad2o3v4m5v.PNG" alt="Alt Text" width="743" height="620"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Scroll down and look for &lt;strong&gt;WIFI or Ethernet&lt;/strong&gt; &lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi2ekazsqfkpe0il3txde.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi2ekazsqfkpe0il3txde.PNG" alt="Alt Text" width="743" height="620"&gt;&lt;/a&gt;&lt;br&gt;
As you can see my connection on &lt;strong&gt;Ethernet&lt;/strong&gt; and the listed IP address assigned to it. Just noted it down or copy the &lt;strong&gt;IP ADDRESS&lt;/strong&gt; somewhere.&lt;/p&gt;

&lt;p&gt;STEP 3: Goto your mobile phone browser, i love using chrome, so  open it and type the IP ADDRESS you copy from your &lt;strong&gt;pc cmd&lt;/strong&gt; and hit enter. BOOM &lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4i3609rsedm2cihxsp9c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4i3609rsedm2cihxsp9c.png" alt="image" width="461" height="1000"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Above image shows you the root of my laragon projects files in which you can access all the file or project you currently working it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;For more tutorial like this like, share and also comment if you have any question or issues.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Follow me on X for more.. &lt;a href="https://twitter.com/don_ejeh" rel="noopener noreferrer"&gt;Ejeh on X&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>android</category>
      <category>localhost</category>
      <category>laragon</category>
    </item>
    <item>
      <title>How to create your own alias for “php artisan” command on cmder</title>
      <dc:creator>E. I. EJEH</dc:creator>
      <pubDate>Thu, 01 Apr 2021 10:48:08 +0000</pubDate>
      <link>https://dev.to/donejeh/how-to-create-your-own-alias-for-php-artisan-command-on-cmder-5hhi</link>
      <guid>https://dev.to/donejeh/how-to-create-your-own-alias-for-php-artisan-command-on-cmder-5hhi</guid>
      <description>&lt;p&gt;If there is one out of many pain in the A** laravel developer faces especially when building laravel project is continuously typing &lt;strong&gt;php artisan&lt;/strong&gt; command for almost laravel artisan command via terminal. This step also can be applied to any repeatable command you normally type when developing an application or working via terminal. &lt;/p&gt;

&lt;p&gt;Lets get started:-&lt;/p&gt;

&lt;h2&gt;
  
  
  STEP 1
&lt;/h2&gt;

&lt;p&gt;=&amp;gt; Get &lt;strong&gt;Cmder&lt;/strong&gt;  &lt;a href="https://cmder.net/" rel="noopener noreferrer"&gt;Download link&lt;/a&gt; or if you have &lt;strong&gt;Laragon&lt;/strong&gt; already installed cmder comes preinstalled.&lt;/p&gt;

&lt;h2&gt;
  
  
  STEP 2
&lt;/h2&gt;

&lt;p&gt;=&amp;gt; Go to your Laragon installation folder as for me, I install my laragon app at &lt;strong&gt;C:\laragon&lt;/strong&gt; as shown below :-&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqdzdprshj7a3o7nbmzb8.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqdzdprshj7a3o7nbmzb8.PNG" alt="Alt Text" width="746" height="263"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  STEP 3
&lt;/h2&gt;

&lt;p&gt;=&amp;gt; To locate cmder goto &lt;code&gt;C:\laragon\bin\cmder&lt;/code&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F203h0szkhs7a0485g25a.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F203h0szkhs7a0485g25a.PNG" alt="Alt Text" width="800" height="271"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  STEP 4
&lt;/h2&gt;

&lt;p&gt;=&amp;gt; To add an &lt;strong&gt;alias&lt;/strong&gt; &lt;code&gt;C:\laragon\bin\cmder\config&lt;/code&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxdojl5xa4z7cpbbw5f3u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxdojl5xa4z7cpbbw5f3u.png" alt="image" width="800" height="395"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Locate a file &lt;code&gt;user_aliases.cmd&lt;/code&gt; and open it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Adding Aliases
&lt;/h2&gt;

&lt;p&gt;You can add aliases using the alias command. Aliases added using the alias command will be immediately available and persist across Cmder sessions. For our case type &lt;code&gt;pa=php artisan $*&lt;/code&gt; as shown below:-&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F355tmhlfeq3ltjnzlkso.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F355tmhlfeq3ltjnzlkso.png" alt="image" width="646" height="411"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After following all the steps above down to writing down all your aliases aka nickname or pseudo-name you can save your changes. Then open your &lt;em&gt;cmder&lt;/em&gt; and type &lt;code&gt;pa&lt;/code&gt; as shown below:-&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvugin5898v3cabfa69vk.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvugin5898v3cabfa69vk.PNG" alt="Alt Text" width="800" height="334"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Congratulation for solving one pain out of many you have when working with repeatable command on cmder.&lt;/p&gt;

&lt;p&gt;Thanks for reading!&lt;/p&gt;

&lt;p&gt;Remember the like&lt;/p&gt;

&lt;p&gt;Any question? drop it at the comment box let see how we can resolve it....&lt;/p&gt;

</description>
      <category>laragon</category>
      <category>laravel</category>
      <category>cmder</category>
      <category>alias</category>
    </item>
  </channel>
</rss>
