<?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: Aquib</title>
    <description>The latest articles on DEV Community by Aquib (@aquibj0).</description>
    <link>https://dev.to/aquibj0</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%2F977487%2Fefcc7298-cedc-45fa-b67e-096eae7f9ee8.jpg</url>
      <title>DEV Community: Aquib</title>
      <link>https://dev.to/aquibj0</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aquibj0"/>
    <language>en</language>
    <item>
      <title>How to Access Your Local Laravel Project on Your Mobile</title>
      <dc:creator>Aquib</dc:creator>
      <pubDate>Fri, 31 Oct 2025 05:44:30 +0000</pubDate>
      <link>https://dev.to/aquibj0/how-to-access-your-local-laravel-project-on-your-mobile-1jk7</link>
      <guid>https://dev.to/aquibj0/how-to-access-your-local-laravel-project-on-your-mobile-1jk7</guid>
      <description>&lt;p&gt;When you’re building a web app in Laravel, testing how it looks and behaves on a mobile device is a must. You want to see how your buttons feel, how your layout responds, and whether that slick animation actually works on touch.&lt;/p&gt;

&lt;p&gt;But here’s the thing: you don’t need to deploy your app online to test it on your phone.&lt;br&gt;
You can access your Laravel project running on your local machine directly from your mobile browser, as long as both are connected to the same Wi-Fi.&lt;/p&gt;

&lt;p&gt;Let’s break it down step by step. 🚀&lt;/p&gt;
&lt;h2&gt;
  
  
  Why You’d Want This Setup
&lt;/h2&gt;

&lt;p&gt;When you’re in the middle of development, it’s much faster to test directly on your phone instead of deploying or using emulators.&lt;/p&gt;

&lt;p&gt;This approach helps you:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Check responsive layouts in real devices.&lt;/li&gt;
&lt;li&gt;Test touch gestures and scroll behavior.&lt;/li&gt;
&lt;li&gt;Debug mobile-only bugs without pushing code anywhere.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Step 1: Connect Both Devices to the Same Wi-Fi
&lt;/h2&gt;

&lt;p&gt;Make sure your computer/laptop (where Laravel is running) and your mobile phone are connected to the same Wi-Fi network.&lt;br&gt;
This is essential; both devices need to be on the same local network to communicate with each other.&lt;/p&gt;
&lt;h2&gt;
  
  
  Step 2: Find Your Computer’s Local IP Address
&lt;/h2&gt;

&lt;p&gt;Your mobile device will use your computer’s local IP address to reach the Laravel app.&lt;/p&gt;
&lt;h4&gt;
  
  
  On Windows
&lt;/h4&gt;

&lt;p&gt;Open Command Prompt and type:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ipconfig
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Look for the line that says something like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;IPv4 Address. . . . . . . . . . . : 192.168.x.x
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  On macOS / Linux
&lt;/h4&gt;

&lt;p&gt;Open Terminal and run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ifconfig
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ip addr show
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Find the IP under your active network interface; usually en0 (Wi-Fi) or wlan0.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Start the Laravel Development Server
&lt;/h2&gt;

&lt;p&gt;In your Laravel project directory, run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php artisan serve --host=0.0.0.0 --port=8000
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here’s what this does:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;--host=0.0.0.0 tells Laravel to listen on all network interfaces (not just localhost).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;--port=8000 specifies which port to use — you can change it if needed.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You’ll see something like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Starting Laravel development server: http://0.0.0.0:8000
[Mon Oct 27 10:00:00 2025] PHP 8.2 Development Server (http://0.0.0.0:8000) started
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 4: Open the App on Your Mobile Browser
&lt;/h2&gt;

&lt;p&gt;Now open a browser (Chrome, Safari, or Firefox) on your phone and type:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;http://192.168.x.x:8000
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;👉 Replace 192.168.x.x with your computer’s IP address from Step 2.&lt;/p&gt;

&lt;p&gt;If everything’s set up correctly, your Laravel app should load on your mobile screen just like it does on a desktop.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bonus Tip: Update Your &lt;code&gt;APP_URL&lt;/code&gt; Callback URLs
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;APP_URL=http://192.168.x.x:8000
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If your app uses OAuth, API callbacks, or any URL-based configuration (like with Google, GitHub, or social logins), update those callback URLs to match the new local address, too.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;That’s it. You’ve just made your local Laravel app accessible from your phone.&lt;br&gt;
It’s one of those simple but powerful tricks that make testing real and quick.&lt;/p&gt;

&lt;p&gt;Whether you’re checking your UI on multiple devices, showing a demo to a teammate, or tweaking responsive layouts, this setup saves time and effort.&lt;/p&gt;

&lt;p&gt;Happy building! 💻📱✨&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>laravel</category>
      <category>php</category>
    </item>
  </channel>
</rss>
