<?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 Youssef Ahmed on Medium]]></title>
        <description><![CDATA[Stories by Youssef Ahmed on Medium]]></description>
        <link>https://medium.com/@youssef.ahmed.fci?source=rss-299a7bb0827c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*rLKMaVyKH3hrNsgLJR8o3g.png</url>
            <title>Stories by Youssef Ahmed on Medium</title>
            <link>https://medium.com/@youssef.ahmed.fci?source=rss-299a7bb0827c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 20:35:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@youssef.ahmed.fci/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 connection between laravel 11 , 12 , 13 and Azure Blob ?]]></title>
            <link>https://medium.com/@youssef.ahmed.fci/how-to-connection-between-laravel-11-12-13-and-azure-blob-f8e094803458?source=rss-299a7bb0827c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8e094803458</guid>
            <category><![CDATA[laravel-development]]></category>
            <category><![CDATA[microsoft-azure]]></category>
            <dc:creator><![CDATA[Youssef Ahmed]]></dc:creator>
            <pubDate>Sun, 26 Apr 2026 20:07:50 GMT</pubDate>
            <atom:updated>2026-04-26T20:23:20.005Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E0dRhJHCL1Jc2ai83FHnNA.png" /></figure><h3>Introduction:</h3><p>Upgrade your Laravel application’s file storage with ease using Azure Blob Storage. <br> In this simple guide, you’ll learn how to seamlessly integrate Azure’s powerful cloud storage into your Laravel project unlocking scalability, reliability, and cost efficiency.</p><p>Let’s get started and take your app’s storage capabilities to the next level!</p><h3>Prerequisites:</h3><ol><li>A running Laravel app.</li><li>An Azure account with Blob Storage set up.</li></ol><h3>Step 1: Install Azure Storage Package</h3><p>Install the package using composer:</p><pre>composer require matthewbdaly/laravel-azure-storage</pre><p>Then add this to the disks section of config/filesystems.php:</p><pre> &#39;azure&#39; =&gt; [<br>           &#39;driver&#39; =&gt; &#39;azure&#39;,<br>           &#39;name&#39; =&gt; env(&#39;AZURE_STORAGE_NAME&#39;),<br>           &#39;key&#39; =&gt; env(&#39;AZURE_STORAGE_KEY&#39;),<br>           &#39;container&#39; =&gt; env(&#39;AZURE_STORAGE_CONTAINER_NAME&#39;),<br>           &#39;url&#39; =&gt; env(&#39;AZURE_STORAGE_URL&#39;),<br>           &#39;prefix&#39; =&gt; null,<br>           &#39;connection_string&#39; =&gt; env(&#39;AZURE_STORAGE_CONNECTION_STRING&#39;)<br>        ],</pre><p>Collect this from your Azure blob account then set them to your .env file.can use only connection_string to connect between laravel &amp; blob</p><pre>AZURE_STORAGE_CONNECTION_STRING=&quot;your-connction-string-from-azure&quot;</pre><blockquote>Get connection_string for this window your storage_account =&gt; security &amp; networking =&gt; Access keys</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C6sQS3-GYxOYYESkks021Q.png" /></figure><h3>Step 2: Create a Service Class</h3><p>Create a service class that uploads images to <strong>Azure Blob Storage</strong> and returns the image public path.</p><pre>php artisan make:service AzureBlobStorageService</pre><pre>&lt;?php<br><br>namespace App\Services;<br><br>use Illuminate\Support\Facades\Storage;<br>use Illuminate\Support\Str;<br><br>class AzureBlobStorage<br>{<br>    public function uploadImage($file, $path)<br>    {<br>        $fileName = uniqid() . Str::random(5) . time() . &#39;.&#39; . $file-&gt;getClientOriginalExtension();<br>        $contentType = $file-&gt;getClientMimeType();<br>        $options = [&#39;Content-Type&#39; =&gt; $contentType];<br><br>        Storage::disk(&#39;azure&#39;)-&gt;putFileAs($path, $file, $fileName, $options);<br><br>        return Storage::disk(&#39;azure&#39;)-&gt;url(https://medium.com/&quot;$path/$fileName&quot;);<br>    }<br>}</pre><h3>Step 3: Now you can call this Service Class</h3><p>You may create a controller and inject this service into it, then call it within your methods. Alternatively, you can define a route that directly triggers the service functionality.</p><pre>Route::post(&#39;uplod-on-azure&#39;, function (\App\Services\AzureBlobStorageService $azureService) {<br>    $file = request()-&gt;file(&#39;file&#39;);<br><br>    if (!$file) {<br>        return response()-&gt;json([&#39;error&#39; =&gt; &#39;No file provided&#39;], 400);<br>    }<br><br>    $filePath = $azureService-&gt;uploadImage($file, &#39;devhub&#39;);<br><br>    if (!$filePath) {<br>        return response()-&gt;json([&#39;error&#39; =&gt; &#39;Failed to upload file to Azure Blobs&#39;], 500);<br>    }<br><br>    return response()-&gt;json([<br>        &#39;file_path&#39; =&gt; $filePath,<br>        &#39;message&#39; =&gt; &#39;File uploaded successfully to Azure Blobs&#39;,<br>    ]);</pre><h3>Step 3: Run API endpoint by any Client API , I use Httpie</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*PIal9IfgTt3Fdgx_QTPw7g.png" /></figure><h3><strong>Nots!!!</strong></h3><ol><li><em>Why does the image path say </em><strong><em>404 Resource Not Found?</em></strong></li></ol><blockquote>When uploading files using Laravel, you may encounter a <strong>PublicAccessNotPermitted</strong> error in the browser. This usually happens when the Azure Storage account does not allow public access to blobs.</blockquote><blockquote>To fix this, you need to either enable public access at the storage account level or, preferably, generate secure access URLs (SAS tokens) instead of exposing files publicly.</blockquote><blockquote>to solve this problem <strong>PublicAccessNotPermitted</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*903zhUyIlAwGhOXZJzQIBw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*opJGE3Z63IxlNdp75rbUXQ.png" /></figure><blockquote><strong>Your problem solved , now can play with azure blob🙌❤ can support me </strong><a href="https://github.com/sponsors/youssef-ahmed-cs">GitHub Sponsor</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8e094803458" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Git Is the Cornerstone of Modern Software Development.]]></title>
            <link>https://medium.com/@youssef.ahmed.fci/why-git-is-the-cornerstone-of-modern-software-development-1d1bb968591e?source=rss-299a7bb0827c------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d1bb968591e</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Youssef Ahmed]]></dc:creator>
            <pubDate>Mon, 15 Sep 2025 11:45:05 GMT</pubDate>
            <atom:updated>2025-09-15T11:45:05.006Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s fast-paced world of software development, constant updates and collaboration are the norm. Having a reliable system to track and manage your code isn’t a luxury — it’s essential.<br> Enter <strong>Git</strong>, the world’s most popular version control system. Whether you’re a solo developer or part of a large team, Git is your key to keeping projects organized and secure.</p><h3>What Is Git?</h3><p>Git is an open-source <strong>Version Control System (VCS)</strong> created by <strong>Linus Torvalds</strong> in 2005 while developing the Linux kernel.<br> It allows you to track changes to your files, collaborate efficiently, and roll back to previous versions with ease.</p><h3>Why Git Matters for Every Developer</h3><h4>1️- Complete Change Tracking</h4><p>Git keeps a full history of every change made to your project. You can easily review, compare, and revert to any previous version.</p><h4>2️- Teamwork Without Chaos</h4><p>With Git, multiple developers can work on the same project simultaneously without overwriting each other’s work.<br> <strong>Branches</strong> let you develop new features or fix bugs in isolation, then merge them later.</p><h4>3️- Safety and Backup</h4><p>Every clone of a Git repository is a full copy of the entire history. Even if the main server goes down, your project can be restored from any other copy.</p><h4>4️- Experiment Freely</h4><p>You can try new ideas in a separate branch. If it doesn’t work out, simply delete the branch — no harm done.<br> If a release goes wrong, you can roll back to a stable commit within seconds.</p><h4>5️- Seamless Integration With Cloud Platforms</h4><p>Platforms like <strong>GitHub</strong>, <strong>GitLab</strong>, and <strong>Bitbucket</strong> are built around Git. They provide user-friendly interfaces for sharing projects, managing issues, and automating deployments (CI/CD).</p><h3>Best Practices With Git</h3><ul><li>Make <strong>small, focused commits</strong> with clear messages.</li><li>Write <strong>descriptive commit messages</strong> explaining the “why” behind a change.</li><li>Use <strong>branches</strong> for each new feature or bug fix.</li><li>Push changes frequently to the remote repository to avoid data loss.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*qk3aDpXdh2ZnrqrEr-pjzQ.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d1bb968591e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>