<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>laravel Archives - Artificial Intelligence</title>
	<atom:link href="https://www.aiuniverse.xyz/category/laravel/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.aiuniverse.xyz/category/laravel/</link>
	<description>Exploring the universe of Intelligence</description>
	<lastBuildDate>Mon, 09 Feb 2026 10:03:27 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>How to Deploy a Laravel Project on a Linux Server Using HTDOCS and GitHub – Complete Step-by-Step Guide</title>
		<link>https://www.aiuniverse.xyz/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide/</link>
					<comments>https://www.aiuniverse.xyz/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide/#respond</comments>
		
		<dc:creator><![CDATA[Maruti Kr.]]></dc:creator>
		<pubDate>Mon, 09 Feb 2026 10:03:25 +0000</pubDate>
				<category><![CDATA[laravel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[deploy Laravel using htdocs]]></category>
		<category><![CDATA[GitHub clone Laravel project server]]></category>
		<category><![CDATA[how to deploy Laravel step by step]]></category>
		<category><![CDATA[install Laravel on Linux server]]></category>
		<category><![CDATA[Laravel Apache configuration]]></category>
		<category><![CDATA[Laravel application live setup]]></category>
		<category><![CDATA[Laravel composer install production]]></category>
		<category><![CDATA[Laravel deployment on Linux server]]></category>
		<category><![CDATA[Laravel deployment with GitHub]]></category>
		<category><![CDATA[Laravel environment setup production]]></category>
		<category><![CDATA[Laravel Linux hosting tutorial]]></category>
		<category><![CDATA[Laravel migration production server]]></category>
		<category><![CDATA[Laravel project hosting guide]]></category>
		<category><![CDATA[Laravel project live on server]]></category>
		<category><![CDATA[Laravel project production setup]]></category>
		<category><![CDATA[Laravel public folder setup]]></category>
		<category><![CDATA[Laravel server configuration tutorial]]></category>
		<category><![CDATA[Laravel virtual host setup]]></category>
		<category><![CDATA[Laravel XAMPP deployment Linux]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=21790</guid>

					<description><![CDATA[<p>Deploying a Laravel project on a Linux server becomes simple when you follow a structured process. In this guide, we will deploy a Laravel project by cloning <a class="read-more-link" href="https://www.aiuniverse.xyz/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide/">How to Deploy a Laravel Project on a Linux Server Using HTDOCS and GitHub – Complete Step-by-Step Guide</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Deploying a Laravel project on a Linux server becomes simple when you follow a structured process. In this guide, we will deploy a Laravel project by <strong>cloning it from GitHub</strong> and placing it inside the <strong>htdocs directory</strong>, which is commonly used in XAMPP or LAMP-based server setups.</p>



<p>This tutorial is ideal for developers who prefer using the <strong>htdocs folder structure</strong> instead of the traditional <code>/var/www</code> directory.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Prerequisites</h2>



<p>Before starting, ensure you have:</p>



<ul class="wp-block-list">
<li>A Linux server with SSH access</li>



<li>GitHub repository of your Laravel project</li>



<li>Apache/XAMPP or LAMP stack installed</li>



<li>PHP and Composer installed</li>



<li>Database access (MySQL/MariaDB)</li>



<li>Basic Linux command knowledge</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 1: Connect to Your Linux Server</h2>



<p>Login via SSH from your local machine:</p>



<pre class="wp-block-code"><code>ssh username@server_ip</code></pre>



<p>Example:</p>



<pre class="wp-block-code"><code>ssh myeventadmin@your_server_ip</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 2: Update Your Server</h2>



<p>Always update packages before setup:</p>



<pre class="wp-block-code"><code>sudo apt update &amp;&amp; sudo apt upgrade -y</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 3: Install Required Packages</h2>



<p>Install Apache, PHP, Git, Composer dependencies, and tools:</p>



<pre class="wp-block-code"><code>sudo apt install apache2 mysql-server unzip git curl -y</code></pre>



<p>Install PHP extensions required by Laravel:</p>



<pre class="wp-block-code"><code>sudo apt install php php-cli php-mysql php-zip php-gd php-mbstring php-curl php-xml libapache2-mod-php -y</code></pre>



<p>Check PHP version:</p>



<pre class="wp-block-code"><code>php -v</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 4: Install Composer</h2>



<pre class="wp-block-code"><code>cd ~
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer</code></pre>



<p>Verify installation:</p>



<pre class="wp-block-code"><code>composer -V</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 5: Move to HTDOCS Directory</h2>



<p>Depending on your server setup, the htdocs directory may be located at:</p>



<pre class="wp-block-code"><code>/opt/lampp/htdocs</code></pre>



<p>or</p>



<pre class="wp-block-code"><code>/var/www/html</code></pre>



<p>Navigate to htdocs:</p>



<pre class="wp-block-code"><code>cd /opt/lampp/htdocs</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 6: Clone Laravel Project from GitHub</h2>



<pre class="wp-block-code"><code>sudo git clone https://github.com/username/project.git</code></pre>



<p>Move into project folder:</p>



<pre class="wp-block-code"><code>cd project</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 7: Set Folder Permissions</h2>



<pre class="wp-block-code"><code>sudo chown -R daemon:daemon /opt/lampp/htdocs/project
sudo chmod -R 775 storage
sudo chmod -R 775 bootstrap/cache</code></pre>



<p><em>(If using Apache instead of XAMPP, replace daemon with www-data)</em></p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 8: Configure Environment File</h2>



<p>Create the environment file:</p>



<pre class="wp-block-code"><code>cp .env.example .env
nano .env</code></pre>



<p>Update important settings:</p>



<pre class="wp-block-code"><code>APP_NAME=Laravel
APP_ENV=production
APP_DEBUG=false
APP_URL=http://yourdomain.com</code></pre>



<p>Add your database credentials as well.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 9: Install Laravel Dependencies</h2>



<pre class="wp-block-code"><code>composer install</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 10: Generate Application Key</h2>



<pre class="wp-block-code"><code>php artisan key:generate</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 11: Create Database and Run Migration</h2>



<p>Login to MySQL:</p>



<pre class="wp-block-code"><code>sudo mysql</code></pre>



<p>Create database:</p>



<pre class="wp-block-code"><code>CREATE DATABASE laravel_db;
EXIT;</code></pre>



<p>Run migrations:</p>



<pre class="wp-block-code"><code>php artisan migrate</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 12: Configure Apache to Use Public Folder</h2>



<p>Edit Apache configuration:</p>



<pre class="wp-block-code"><code>sudo nano /opt/lampp/etc/extra/httpd-vhosts.conf</code></pre>



<p>Add:</p>



<pre class="wp-block-code"><code>&lt;VirtualHost *:80&gt;
    ServerName yourdomain.com
    DocumentRoot "/opt/lampp/htdocs/project/public"

    &lt;Directory "/opt/lampp/htdocs/project"&gt;
        AllowOverride All
        Require all granted
    &lt;/Directory&gt;
&lt;/VirtualHost&gt;
</code></pre>



<p>Restart Apache/XAMPP:</p>



<pre class="wp-block-code"><code>sudo /opt/lampp/lampp restart</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 13: Test Laravel Application</h2>



<p>Open browser:</p>



<pre class="wp-block-code"><code>http:&#47;&#47;your_server_ip/project/public</code></pre>



<p>or</p>



<pre class="wp-block-code"><code>http:&#47;&#47;yourdomain.com</code></pre>



<p>If everything is configured properly, your Laravel website will be live.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Important Production Tips</h2>



<ul class="wp-block-list">
<li>Always set <code>APP_DEBUG=false</code></li>



<li>Never make <code>.env</code> publicly accessible</li>



<li>Ensure correct folder permissions</li>



<li>Use SSL (HTTPS) for live websites</li>



<li>Regularly pull updates from GitHub</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Conclusion</h2>



<p>Deploying a Laravel project using the <strong>htdocs directory</strong> and <strong>GitHub cloning</strong> is a practical and efficient workflow for Linux servers running XAMPP or Apache environments. By following this step-by-step process — cloning the repository, configuring environment variables, setting permissions, and configuring Apache — you can successfully deploy your Laravel application in a production-ready environment.</p>



<p>This method is especially useful for developers who prefer traditional htdocs-based hosting environments while maintaining version control through GitHub.</p>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide/">How to Deploy a Laravel Project on a Linux Server Using HTDOCS and GitHub – Complete Step-by-Step Guide</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/how-to-deploy-a-laravel-project-on-a-linux-server-using-htdocs-and-github-complete-step-by-step-guide/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install and Enable GMP Extension in XAMPP PHP on Linux (Step-by-Step Guide)</title>
		<link>https://www.aiuniverse.xyz/how-to-install-and-enable-gmp-extension-in-xampp-php-on-linux-step-by-step-guide/</link>
					<comments>https://www.aiuniverse.xyz/how-to-install-and-enable-gmp-extension-in-xampp-php-on-linux-step-by-step-guide/#respond</comments>
		
		<dc:creator><![CDATA[Maruti Kr.]]></dc:creator>
		<pubDate>Mon, 09 Feb 2026 08:20:07 +0000</pubDate>
				<category><![CDATA[laravel]]></category>
		<category><![CDATA[XAMPP]]></category>
		<category><![CDATA[compile gmp php]]></category>
		<category><![CDATA[enable gmp in xampp]]></category>
		<category><![CDATA[gmp php linux]]></category>
		<category><![CDATA[gmp_init not found]]></category>
		<category><![CDATA[install gmp extension php]]></category>
		<category><![CDATA[php gmp extension missing]]></category>
		<category><![CDATA[php gmp.so install]]></category>
		<category><![CDATA[xampp php 8 gmp]]></category>
		<category><![CDATA[xampp php gmp install]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=21785</guid>

					<description><![CDATA[<p>Introduction If you are using XAMPP PHP on a Linux server and encounter errors like: then this usually means the GMP extension is not installed, not just <a class="read-more-link" href="https://www.aiuniverse.xyz/how-to-install-and-enable-gmp-extension-in-xampp-php-on-linux-step-by-step-guide/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-install-and-enable-gmp-extension-in-xampp-php-on-linux-step-by-step-guide/">How to Install and Enable GMP Extension in XAMPP PHP on Linux (Step-by-Step Guide)</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Introduction</h2>



<p>If you are using <strong>XAMPP PHP on a Linux server</strong> and encounter errors like:</p>



<ul class="wp-block-list">
<li><code>GMP NOT OK</code></li>



<li><code>Unable to load dynamic library 'gmp'</code></li>



<li><code>Call to undefined function gmp_init()</code></li>
</ul>



<p>then this usually means the <strong>GMP extension is not installed</strong>, not just disabled.</p>



<p>Many developers assume that uncommenting a line in <code>php.ini</code> is enough—but in <strong>XAMPP</strong>, that is often not true.</p>



<p>This guide explains <strong>why GMP is missing</strong>, and shows the <strong>correct, production-safe way</strong> to compile, install, and enable the GMP extension for <strong>XAMPP PHP</strong>.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">What Is the GMP Extension in PHP?</h2>



<p><strong>GMP (GNU Multiple Precision)</strong> is a PHP extension used for handling very large integers and high-precision arithmetic.</p>



<p>Common use cases include:</p>



<ul class="wp-block-list">
<li>Cryptography and security libraries</li>



<li>JWT / OAuth / authentication systems</li>



<li>Blockchain and hashing operations</li>



<li>Keycloak integrations</li>



<li>Large integer calculations</li>
</ul>



<p>Example:</p>



<pre class="wp-block-code"><code>gmp_init("12345678901234567890");</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">The Real Problem (Why GMP Doesn’t Work in XAMPP)</h2>



<p>When you run:</p>



<pre class="wp-block-code"><code>php -m | grep gmp</code></pre>



<p>and get <strong>no output</strong>, or:</p>



<pre class="wp-block-code"><code>GMP NOT OK</code></pre>



<p>Even after adding this to <code>php.ini</code>:</p>



<pre class="wp-block-code"><code>extension=gmp</code></pre>



<h3 class="wp-block-heading">❌ Why this happens</h3>



<p>XAMPP PHP is a <strong>precompiled binary</strong> and often <strong>does not include <code>gmp.so</code> at all</strong>.</p>



<p>So:</p>



<ul class="wp-block-list">
<li><code>php.ini</code> only <em>loads</em> extensions</li>



<li>It does <strong>not create them</strong></li>



<li>If <code>gmp.so</code> does not exist, PHP cannot load it</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Environment Used in This Guide</h2>



<ul class="wp-block-list">
<li>OS: Linux (Ubuntu based)</li>



<li>PHP: <strong>XAMPP PHP 8.2.12</strong></li>



<li>PHP binary:</li>
</ul>



<pre class="wp-block-code"><code>/opt/lampp/bin/php</code></pre>



<ul class="wp-block-list">
<li>php.ini location:</li>
</ul>



<pre class="wp-block-code"><code>/opt/lampp/etc/php.ini</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 1: Confirm You Are Using XAMPP PHP</h2>



<pre class="wp-block-code"><code>which php
php -v</code></pre>



<p>Expected output:</p>



<pre class="wp-block-code"><code>/opt/lampp/bin/php
PHP 8.2.12</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 2: Check Whether GMP Is Loaded</h2>



<pre class="wp-block-code"><code>/opt/lampp/bin/php -m | grep -i gmp</code></pre>



<p>If nothing appears, GMP is not installed.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 3: Check the PHP Extension Directory</h2>



<pre class="wp-block-code"><code>/opt/lampp/bin/php -i | grep extension_dir</code></pre>



<p>Example output:</p>



<pre class="wp-block-code"><code>/opt/lampp/lib/php/extensions/no-debug-non-zts-20220829</code></pre>



<p>Check if <code>gmp.so</code> exists:</p>



<pre class="wp-block-code"><code>ls -l /opt/lampp/lib/php/extensions/no-debug-non-zts-20220829 | grep gmp</code></pre>



<p>If nothing is returned, GMP is missing.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 4: Install Required Build Dependencies</h2>



<pre class="wp-block-code"><code>sudo apt update
sudo apt install -y build-essential autoconf automake libtool \
pkg-config libgmp-dev re2c bison wget</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 5: Download PHP Source (Same Version as XAMPP)</h2>



<p>⚠️ <strong>The PHP source version must exactly match your XAMPP PHP version</strong>.</p>



<pre class="wp-block-code"><code>cd /tmp
wget https://www.php.net/distributions/php-8.2.12.tar.gz
tar -xzf php-8.2.12.tar.gz</code></pre>



<p>Verify GMP source exists:</p>



<pre class="wp-block-code"><code>ls /tmp/php-8.2.12/ext/gmp</code></pre>



<p>You should see files like <code>gmp.c</code>, <code>config.m4</code>, etc.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 6: Compile GMP Extension for XAMPP PHP</h2>



<pre class="wp-block-code"><code>cd /tmp/php-8.2.12/ext/gmp

/opt/lampp/bin/phpize
./configure --with-php-config=/opt/lampp/bin/php-config
make -j$(nproc)
sudo make install</code></pre>



<p>This step <strong>creates the <code>gmp.so</code> file</strong>.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 7: Verify <code>gmp.so</code> Was Installed</h2>



<pre class="wp-block-code"><code>EXT_DIR=$(/opt/lampp/bin/php -r 'echo ini_get("extension_dir");')
ls -l "$EXT_DIR" | grep gmp</code></pre>



<p>Expected output:</p>



<pre class="wp-block-code"><code>gmp.so</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 8: Enable GMP in php.ini (Linux)</h2>



<p>Open the file:</p>



<pre class="wp-block-code"><code>sudo vi /opt/lampp/etc/php.ini</code></pre>



<h3 class="wp-block-heading">Important Notes</h3>



<ul class="wp-block-list">
<li>Ignore lines like:</li>
</ul>



<pre class="wp-block-code"><code>;extension=php_gmp.dll</code></pre>



<p>These are <strong>Windows-only</strong>.</p>



<ul class="wp-block-list">
<li>Do <strong>not</strong> uncomment <code>.dll</code> lines on Linux.</li>
</ul>



<h3 class="wp-block-heading">Add this line:</h3>



<pre class="wp-block-code"><code>extension=gmp.so</code></pre>



<p>Save and exit:</p>



<pre class="wp-block-code"><code>Esc
:wq</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 9: Restart XAMPP</h2>



<pre class="wp-block-code"><code>sudo /opt/lampp/lampp restart</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 10: Final Verification</h2>



<pre class="wp-block-code"><code>/opt/lampp/bin/php -m | grep -i gmp</code></pre>



<p>Expected output:</p>



<pre class="wp-block-code"><code>gmp</code></pre>



<p>Final confirmation:</p>



<pre class="wp-block-code"><code>/opt/lampp/bin/php -r 'echo function_exists("gmp_init") ? "GMP OK\n" : "GMP NOT OK\n";'</code></pre>



<p>Expected:</p>



<pre class="wp-block-code"><code>GMP OK</code></pre>



<p>🎉 <strong>GMP is now fully installed and enabled in XAMPP PHP</strong></p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Common Mistakes to Avoid</h2>



<ul class="wp-block-list">
<li>Only uncommenting <code>extension=gmp</code></li>



<li>Using <code>.dll</code> extensions on Linux</li>



<li>Installing <code>php-gmp</code> via <code>apt</code> for XAMPP</li>



<li>PHP version mismatch during compilation</li>



<li>Forgetting to restart XAMPP</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Conclusion</h2>



<p>Enabling GMP in <strong>XAMPP PHP on Linux</strong> requires more than editing <code>php.ini</code>.<br>When the extension is missing, <strong>compiling it for your exact PHP version is the correct and safe solution</strong>.</p>



<p>This method:</p>



<ul class="wp-block-list">
<li>Does <strong>not</strong> reinstall PHP</li>



<li>Does <strong>not</strong> reinstall XAMPP</li>



<li>Works reliably in production environments</li>
</ul>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-install-and-enable-gmp-extension-in-xampp-php-on-linux-step-by-step-guide/">How to Install and Enable GMP Extension in XAMPP PHP on Linux (Step-by-Step Guide)</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/how-to-install-and-enable-gmp-extension-in-xampp-php-on-linux-step-by-step-guide/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Change Admin Password in a Laravel Project</title>
		<link>https://www.aiuniverse.xyz/how-to-change-admin-password-in-a-laravel-project/</link>
					<comments>https://www.aiuniverse.xyz/how-to-change-admin-password-in-a-laravel-project/#respond</comments>
		
		<dc:creator><![CDATA[Maruti Kr.]]></dc:creator>
		<pubDate>Fri, 06 Feb 2026 03:45:32 +0000</pubDate>
				<category><![CDATA[laravel]]></category>
		<category><![CDATA[change admin password in laravel]]></category>
		<category><![CDATA[how to change admin password in laravel]]></category>
		<category><![CDATA[laravel admin login password change]]></category>
		<category><![CDATA[laravel admin password change]]></category>
		<category><![CDATA[laravel admin password change xampp]]></category>
		<category><![CDATA[laravel admin password reset]]></category>
		<category><![CDATA[laravel bcrypt password change]]></category>
		<category><![CDATA[laravel change password from database]]></category>
		<category><![CDATA[laravel change password using phpmyadmin]]></category>
		<category><![CDATA[laravel forgot admin password]]></category>
		<category><![CDATA[laravel password change cpanel]]></category>
		<category><![CDATA[laravel password hashing bcrypt]]></category>
		<category><![CDATA[laravel reset admin password without login]]></category>
		<category><![CDATA[laravel tinker change password]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=21774</guid>

					<description><![CDATA[<p>Laravel is a secure and powerful PHP framework, but many developers face confusion when they need to change the admin password, especially if the password is forgotten <a class="read-more-link" href="https://www.aiuniverse.xyz/how-to-change-admin-password-in-a-laravel-project/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-change-admin-password-in-a-laravel-project/">How to Change Admin Password in a Laravel Project</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="683" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/02/ChatGPT-Image-Feb-6-2026-09_14_52-AM-1024x683.png" alt="" class="wp-image-21775" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2026/02/ChatGPT-Image-Feb-6-2026-09_14_52-AM-1024x683.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2026/02/ChatGPT-Image-Feb-6-2026-09_14_52-AM-300x200.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2026/02/ChatGPT-Image-Feb-6-2026-09_14_52-AM-768x512.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2026/02/ChatGPT-Image-Feb-6-2026-09_14_52-AM.png 1536w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Laravel is a secure and powerful PHP framework, but many developers face confusion when they need to <strong>change the admin password</strong>, especially if the password is forgotten or the admin cannot log in.</p>



<p>In this blog post, you will learn <strong>multiple safe and practical ways to change the admin password in a Laravel project</strong>, applicable to both <strong>XAMPP (local server)</strong> and <strong>cPanel (live server)</strong> environments.</p>



<h2 class="wp-block-heading">Where Is the Admin Password Stored in Laravel?</h2>



<p>Laravel never stores passwords in plain text.<br>By default:</p>



<ul class="wp-block-list">
<li>Passwords are stored as <strong>bcrypt hashes</strong></li>



<li>Common tables used for admin accounts:
<ul class="wp-block-list">
<li><code>users</code></li>



<li><code>admins</code></li>



<li><code>admin_users</code></li>
</ul>
</li>
</ul>



<p>In many projects, the admin user exists in the <code>users</code> table with a column like:</p>



<ul class="wp-block-list">
<li><code>role = admin</code></li>



<li><code>is_admin = 1</code></li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Method 1: Change Admin Password Using phpMyAdmin (Recommended)</h2>



<p>This is the <strong>most reliable and commonly used method</strong>, especially when:</p>



<ul class="wp-block-list">
<li>You forgot the admin password</li>



<li>Admin login is not working</li>



<li>You are working on a live server (cPanel)</li>
</ul>



<h3 class="wp-block-heading">Step 1: Open phpMyAdmin</h3>



<ul class="wp-block-list">
<li><strong>XAMPP</strong>: <code>http://localhost/phpmyadmin</code></li>



<li><strong>cPanel</strong>: Login to cPanel → Open phpMyAdmin</li>
</ul>



<h3 class="wp-block-heading">Step 2: Select Laravel Database</h3>



<ul class="wp-block-list">
<li>Choose your Laravel project database</li>



<li>Open the <code>users</code> or <code>admins</code> table</li>
</ul>



<h3 class="wp-block-heading">Step 3: Locate the Admin Account</h3>



<ul class="wp-block-list">
<li>Find the admin record using <strong>email</strong>, <strong>username</strong>, or <strong>role</strong></li>
</ul>



<h3 class="wp-block-heading">Step 4: Generate a New Password Hash</h3>



<p>Open terminal or command prompt in your Laravel project directory:</p>



<pre class="wp-block-code"><code>php artisan tinker
</code></pre>



<p>Then run:</p>



<pre class="wp-block-code"><code>bcrypt('NewPassword@123')
</code></pre>



<p>This will generate an encrypted string starting with <code>$2y$...</code>.<br>Copy this hashed value.</p>



<h3 class="wp-block-heading">Step 5: Update Password in Database</h3>



<ul class="wp-block-list">
<li>Click <strong>Edit</strong> on the admin record</li>



<li>Paste the hashed value into the <code>password</code> column</li>



<li>Save changes</li>
</ul>



<p>✅ The new admin password is now: <strong>NewPassword@123</strong></p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Method 2: Change Admin Password Using Laravel Tinker</h2>



<p>This method is useful when:</p>



<ul class="wp-block-list">
<li>You have project access</li>



<li>You prefer not to manually edit the database</li>
</ul>



<h3 class="wp-block-heading">Open Tinker</h3>



<pre class="wp-block-code"><code>php artisan tinker
</code></pre>



<h3 class="wp-block-heading">If Admin Is in the <code>users</code> Table</h3>



<pre class="wp-block-code"><code>use App\Models\User;

$user = User::where('email', 'admin@example.com')-&gt;first();
$user-&gt;password = bcrypt('NewPassword@123');
$user-&gt;save();
</code></pre>



<h3 class="wp-block-heading">If Admin Uses a Separate Model</h3>



<pre class="wp-block-code"><code>use App\Models\Admin;

$admin = Admin::where('email', 'admin@example.com')-&gt;first();
$admin-&gt;password = bcrypt('NewPassword@123');
$admin-&gt;save();
</code></pre>



<p>✅ Password updated successfully.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Method 3: Reset Admin Password Using a Temporary Route</h2>



<p>This method should be used <strong>only in emergencies</strong>.</p>



<h3 class="wp-block-heading">Step 1: Add Temporary Route</h3>



<p>Edit <code>routes/web.php</code>:</p>



<pre class="wp-block-code"><code>use App\Models\User;
use Illuminate\Support\Facades\Hash;

Route::get('/reset-admin-password', function () {
    $user = User::where('email', 'admin@example.com')-&gt;first();
    $user-&gt;password = Hash::make('NewPassword@123');
    $user-&gt;save();
    return 'Admin password changed successfully';
});
</code></pre>



<h3 class="wp-block-heading">Step 2: Open the URL Once</h3>



<pre class="wp-block-code"><code>yourdomain.com/reset-admin-password
</code></pre>



<h3 class="wp-block-heading">Step 3: Remove the Route Immediately</h3>



<p>⚠️ This step is critical for security reasons.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Common Mistakes to Avoid</h2>



<ul class="wp-block-list">
<li>Saving passwords in plain text</li>



<li>Using <code>md5()</code> or <code>sha1()</code> for hashing</li>



<li>Forgetting to delete reset routes</li>



<li>Trying to change passwords from the <code>.env</code> file</li>
</ul>



<p>Laravel passwords must always be stored using <strong>bcrypt or Hash::make()</strong>.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Which Method Should You Use?</h2>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Situation</th><th>Best Method</th></tr></thead><tbody><tr><td>Forgot admin password</td><td>phpMyAdmin</td></tr><tr><td>Local development</td><td>Laravel Tinker</td></tr><tr><td>Live server (cPanel)</td><td>phpMyAdmin</td></tr><tr><td>Emergency one-time reset</td><td>Temporary route</td></tr></tbody></table></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Conclusion</h2>



<p>Changing the admin password in a Laravel project is simple if you follow the correct and secure approach.<br>For beginners and production servers, <strong>phpMyAdmin with bcrypt hashing</strong> is the safest method.</p>



<p>Always follow Laravel security best practices to keep your application protected.</p>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-change-admin-password-in-a-laravel-project/">How to Change Admin Password in a Laravel Project</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/how-to-change-admin-password-in-a-laravel-project/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Fixing SMTP 535 Authentication Error in Laravel with AWS SES (Step-by-Step Guide)</title>
		<link>https://www.aiuniverse.xyz/fixing-smtp-535-authentication-error-in-laravel-with-aws-ses-step-by-step-guide/</link>
					<comments>https://www.aiuniverse.xyz/fixing-smtp-535-authentication-error-in-laravel-with-aws-ses-step-by-step-guide/#respond</comments>
		
		<dc:creator><![CDATA[Maruti Kr.]]></dc:creator>
		<pubDate>Thu, 22 Jan 2026 11:24:09 +0000</pubDate>
				<category><![CDATA[laravel]]></category>
		<category><![CDATA[Authentication credentials invalid SMTP]]></category>
		<category><![CDATA[AWS SES email sending error]]></category>
		<category><![CDATA[AWS SES Laravel setup]]></category>
		<category><![CDATA[AWS SES SMTP credentials]]></category>
		<category><![CDATA[AWS SES SMTP error]]></category>
		<category><![CDATA[Email not sending Laravel AWS]]></category>
		<category><![CDATA[Fix SMTP authentication error Laravel]]></category>
		<category><![CDATA[Laravel email configuration AWS SES]]></category>
		<category><![CDATA[Laravel mailer SMTP issue]]></category>
		<category><![CDATA[Laravel SMTP 535 error]]></category>
		<category><![CDATA[Laravel SMTP login failed]]></category>
		<category><![CDATA[SES SMTP configuration Laravel]]></category>
		<category><![CDATA[SMTP 535 authentication failed]]></category>
		<category><![CDATA[SMTP credentials invalid error]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=21739</guid>

					<description><![CDATA[<p>Sending emails is a critical feature for most Laravel applications. Whether it’s account verification, password reset, or notifications, email delivery must work reliably. However, many developers face <a class="read-more-link" href="https://www.aiuniverse.xyz/fixing-smtp-535-authentication-error-in-laravel-with-aws-ses-step-by-step-guide/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/fixing-smtp-535-authentication-error-in-laravel-with-aws-ses-step-by-step-guide/">Fixing SMTP 535 Authentication Error in Laravel with AWS SES (Step-by-Step Guide)</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="683" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/01/ChatGPT-Image-Jan-22-2026-04_53_16-PM-1024x683.png" alt="" class="wp-image-21740" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2026/01/ChatGPT-Image-Jan-22-2026-04_53_16-PM-1024x683.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2026/01/ChatGPT-Image-Jan-22-2026-04_53_16-PM-300x200.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2026/01/ChatGPT-Image-Jan-22-2026-04_53_16-PM-768x512.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2026/01/ChatGPT-Image-Jan-22-2026-04_53_16-PM.png 1536w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Sending emails is a critical feature for most Laravel applications. Whether it’s account verification, password reset, or notifications, email delivery must work reliably.</p>



<p>However, many developers face the following error when configuring AWS SES with Laravel:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p><strong>SMTP Error 535: Authentication Credentials Invalid</strong></p>
</blockquote>



<p>This article explains <strong>why this error occurs</strong>, <strong>what it actually means</strong>, and <strong>how to fix it permanently</strong> in Laravel.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Understanding the Error</h2>



<p>The full error usually looks like this:</p>



<pre class="wp-block-code"><code>Failed to authenticate on SMTP server using authenticators LOGIN, PLAIN.
Expected response code 235 but got 535.
Authentication Credentials Invalid.
</code></pre>



<h3 class="wp-block-heading">What does this mean?</h3>



<ul class="wp-block-list">
<li>Laravel successfully connects to the SMTP server</li>



<li>The SMTP server <strong>rejects the username or password</strong></li>



<li>Authentication fails before sending any email</li>
</ul>



<p>This is <strong>not</strong> a Laravel bug.<br>This is <strong>almost always a configuration issue</strong> with AWS SES SMTP credentials.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Why This Error Happens (Most Common Reasons)</h2>



<h3 class="wp-block-heading">1. Using IAM Access Keys Instead of SMTP Credentials</h3>



<p>AWS SES <strong>does not accept normal IAM Access Key &amp; Secret Key</strong> directly for SMTP authentication.</p>



<p>Many developers mistakenly copy:</p>



<ul class="wp-block-list">
<li><code>AWS_ACCESS_KEY_ID</code></li>



<li><code>AWS_SECRET_ACCESS_KEY</code></li>
</ul>



<p>and paste them into:</p>



<pre class="wp-block-code"><code>MAIL_USERNAME
MAIL_PASSWORD
</code></pre>



<p>❌ This will <strong>always fail</strong> with a 535 error.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading">2. Wrong AWS SES Region</h3>



<p>AWS SES is region-specific.</p>



<p>If your SES is created in:</p>



<ul class="wp-block-list">
<li><code>ap-south-1</code> → you must use<br><code>email-smtp.ap-south-1.amazonaws.com</code></li>
</ul>



<p>Using the wrong region host causes authentication failure.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading">3. Special Characters in SMTP Password</h3>



<p>SES SMTP passwords often contain:</p>



<ul class="wp-block-list">
<li><code>+</code></li>



<li><code>/</code></li>



<li><code>=</code></li>
</ul>



<p>If the password is <strong>not wrapped in quotes</strong>, Laravel may parse it incorrectly.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading">4. Laravel Config Cache Still Using Old Values</h3>



<p>Laravel caches configuration aggressively.<br>Even after fixing <code>.env</code>, Laravel may still use old credentials.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Correct Way to Configure AWS SES SMTP in Laravel</h2>



<h3 class="wp-block-heading">Step 1: Generate AWS SES SMTP Credentials</h3>



<p>Do <strong>not</strong> use IAM access keys.</p>



<ol class="wp-block-list">
<li>Go to <strong>AWS Console</strong></li>



<li>Open <strong>Simple Email Service (SES)</strong></li>



<li>Navigate to <strong>SMTP Settings</strong></li>



<li>Click <strong>Create SMTP Credentials</strong></li>



<li>AWS will generate:
<ul class="wp-block-list">
<li>SMTP Username</li>



<li>SMTP Password</li>
</ul>
</li>
</ol>



<p>Save them securely.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading">Step 2: Update Laravel <code>.env</code> File</h3>



<pre class="wp-block-code"><code>MAIL_MAILER=smtp
MAIL_HOST=email-smtp.ap-south-1.amazonaws.com
MAIL_PORT=587
MAIL_USERNAME=YOUR_SES_SMTP_USERNAME
MAIL_PASSWORD="YOUR_SES_SMTP_PASSWORD"
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=contact@yourdomain.com
MAIL_FROM_NAME="Your Website Name"
</code></pre>



<h3 class="wp-block-heading">Important Notes</h3>



<ul class="wp-block-list">
<li>Always wrap <code>MAIL_PASSWORD</code> in <strong>double quotes</strong></li>



<li>Ensure <code>MAIL_HOST</code> matches your SES region</li>



<li>No extra spaces before or after values</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading">Step 3: Clear Laravel Cache (Very Important)</h3>



<p>Run these commands on your server:</p>



<pre class="wp-block-code"><code>php artisan config:clear
php artisan cache:clear
php artisan config:cache
php artisan route:clear
</code></pre>



<p>If you are using queues:</p>



<pre class="wp-block-code"><code>php artisan queue:restart
</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Verifying Email or Domain in AWS SES</h2>



<p>AWS SES requires verification.</p>



<p>You must verify <strong>either</strong>:</p>



<ul class="wp-block-list">
<li>The sender email address<br><strong>OR</strong></li>



<li>The entire domain</li>
</ul>



<p>If not verified:</p>



<ul class="wp-block-list">
<li>Emails will fail later with different errors (not 535)</li>



<li>In sandbox mode, you can send emails <strong>only to verified addresses</strong></li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Common Mistakes to Avoid</h2>



<ul class="wp-block-list">
<li>Using IAM keys instead of SMTP credentials</li>



<li>Forgetting to clear Laravel config cache</li>



<li>Using wrong SES region hostname</li>



<li>Leaving <code>APP_DEBUG=true</code> in production</li>



<li>Exposing SMTP credentials in public error pages</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Production Security Best Practice</h2>



<p>Always disable debug mode in production:</p>



<pre class="wp-block-code"><code>APP_ENV=production
APP_DEBUG=false
</code></pre>



<p>This prevents:</p>



<ul class="wp-block-list">
<li>Credential leaks</li>



<li>Stack trace exposure</li>



<li>Security risks</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Final Checklist</h2>



<p>Before testing again, confirm:</p>



<ul class="wp-block-list">
<li>SMTP credentials are generated from AWS SES</li>



<li>Correct region SMTP host is used</li>



<li><code>.env</code> password is quoted</li>



<li>Laravel cache is cleared</li>



<li>Sender email/domain is verified in SES</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Conclusion</h2>



<p>The <strong>SMTP 535 Authentication Error</strong> in Laravel is not a framework issue.<br>It’s a <strong>credential mismatch caused by incorrect AWS SES configuration</strong>.</p>



<p>Once you:</p>



<ul class="wp-block-list">
<li>Use proper SES SMTP credentials</li>



<li>Match the correct region</li>



<li>Clear Laravel cache</li>
</ul>



<p>the issue is resolved permanently.</p>
<p>The post <a href="https://www.aiuniverse.xyz/fixing-smtp-535-authentication-error-in-laravel-with-aws-ses-step-by-step-guide/">Fixing SMTP 535 Authentication Error in Laravel with AWS SES (Step-by-Step Guide)</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/fixing-smtp-535-authentication-error-in-laravel-with-aws-ses-step-by-step-guide/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Step-by-Step Guide to Set Up Google Console API for “Sign in with Google”</title>
		<link>https://www.aiuniverse.xyz/google-console-api-sign-in-with-google-setup/</link>
					<comments>https://www.aiuniverse.xyz/google-console-api-sign-in-with-google-setup/#respond</comments>
		
		<dc:creator><![CDATA[Maruti Kr.]]></dc:creator>
		<pubDate>Tue, 20 Jan 2026 09:35:23 +0000</pubDate>
				<category><![CDATA[laravel]]></category>
		<category><![CDATA[Android Google Sign-In]]></category>
		<category><![CDATA[Flutter Google Sign-In setup]]></category>
		<category><![CDATA[Google API credentials setup]]></category>
		<category><![CDATA[Google authentication API]]></category>
		<category><![CDATA[Google Cloud Console OAuth]]></category>
		<category><![CDATA[Google Console API setup]]></category>
		<category><![CDATA[Google login for apps]]></category>
		<category><![CDATA[Google login integration]]></category>
		<category><![CDATA[Google OAuth 2.0 configuration]]></category>
		<category><![CDATA[Google OAuth client ID]]></category>
		<category><![CDATA[Google Sign-In setup]]></category>
		<category><![CDATA[OAuth consent screen Google]]></category>
		<category><![CDATA[Sign in with Google guide]]></category>
		<category><![CDATA[Web Google OAuth login]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=21735</guid>

					<description><![CDATA[<p>Google Sign-In is one of the most trusted and widely used authentication methods today. Whether you are building a mobile app, web application, or backend system, integrating <a class="read-more-link" href="https://www.aiuniverse.xyz/google-console-api-sign-in-with-google-setup/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/google-console-api-sign-in-with-google-setup/">Step-by-Step Guide to Set Up Google Console API for “Sign in with Google”</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="683" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/01/ChatGPT-Image-Jan-20-2026-03_03_19-PM-1024x683.png" alt="" class="wp-image-21736" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2026/01/ChatGPT-Image-Jan-20-2026-03_03_19-PM-1024x683.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2026/01/ChatGPT-Image-Jan-20-2026-03_03_19-PM-300x200.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2026/01/ChatGPT-Image-Jan-20-2026-03_03_19-PM-768x512.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2026/01/ChatGPT-Image-Jan-20-2026-03_03_19-PM.png 1536w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Google Sign-In is one of the most trusted and widely used authentication methods today. Whether you are building a <strong>mobile app, web application, or backend system</strong>, integrating Google Login improves user experience, security, and trust.</p>



<p>In this guide, you’ll learn <strong>how to configure Google Cloud Console step by step</strong> to enable <strong>“Sign in with Google” (OAuth 2.0)</strong> correctly, without common mistakes.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">What Is Google Sign-In (OAuth 2.0)?</h2>



<p>Google Sign-In uses <strong>OAuth 2.0</strong>, a secure authorization framework that allows users to authenticate using their Google account <strong>without sharing passwords</strong>.</p>



<p>With Google OAuth:</p>



<ul class="wp-block-list">
<li>Users log in faster</li>



<li>Developers avoid handling passwords</li>



<li>Security and trust are handled by Google</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Prerequisites Before You Start</h2>



<p>Before setting up Google Console, make sure you have:</p>



<ul class="wp-block-list">
<li>A <strong>Google account</strong></li>



<li>Your <strong>app details</strong> (package name / domain / bundle ID)</li>



<li>Backend callback URL (if applicable)</li>



<li>Android SHA-1 keys (for mobile apps)</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 1: Create or Select a Google Cloud Project</h2>



<ol class="wp-block-list">
<li>Visit <strong>Google Cloud Console</strong></li>



<li>Click <strong>Select a project</strong> (top bar)</li>



<li>Choose <strong>New Project</strong></li>



<li>Enter a project name (example: <code>MyApp Google Login</code>)</li>



<li>Click <strong>Create</strong></li>



<li>Ensure the project is selected</li>
</ol>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 2: Configure OAuth Consent Screen (Mandatory)</h2>



<p>The OAuth consent screen defines <strong>how your app appears to users</strong> during login.</p>



<ol class="wp-block-list">
<li>Go to <strong>APIs &amp; Services → OAuth consent screen</strong></li>



<li>Select <strong>User Type</strong>
<ul class="wp-block-list">
<li><strong>External</strong> → Public apps</li>



<li><strong>Internal</strong> → Google Workspace only</li>
</ul>
</li>



<li>Fill required details:
<ul class="wp-block-list">
<li>App name</li>



<li>User support email</li>



<li>Developer contact email</li>
</ul>
</li>



<li>App domain (optional but recommended)</li>



<li>Add scopes:
<ul class="wp-block-list">
<li><code>openid</code></li>



<li><code>email</code></li>



<li><code>profile</code></li>
</ul>
</li>



<li>Add <strong>Test users</strong> if app is in testing</li>



<li>Save and continue</li>
</ol>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 3: Enable Required APIs (Optional but Recommended)</h2>



<ol class="wp-block-list">
<li>Navigate to <strong>APIs &amp; Services → Library</strong></li>



<li>Search and enable:
<ul class="wp-block-list">
<li><strong>Google Identity Services</strong></li>



<li><strong>People API</strong> (only if profile data is needed)</li>
</ul>
</li>



<li>Click <strong>Enable</strong></li>
</ol>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 4: Create OAuth Client ID (Core Configuration)</h2>



<p>Go to <strong>APIs &amp; Services → Credentials → Create Credentials → OAuth Client ID</strong></p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading">A) Android App Configuration</h3>



<ol class="wp-block-list">
<li>Choose <strong>Application Type: Android</strong></li>



<li>Enter:
<ul class="wp-block-list">
<li>App name</li>



<li><strong>Package name</strong> (must match exactly)</li>



<li><strong>SHA-1 fingerprint</strong></li>
</ul>
</li>



<li>Click <strong>Create</strong></li>
</ol>



<h4 class="wp-block-heading">How to Generate SHA-1</h4>



<ul class="wp-block-list">
<li><strong>Debug SHA-1</strong>:
<ul class="wp-block-list">
<li>Android Studio → Gradle → signingReport</li>
</ul>
</li>



<li><strong>Production SHA-1</strong>:
<ul class="wp-block-list">
<li>Google Play Console → App Integrity → App signing key</li>
</ul>
</li>
</ul>



<p>⚠️ Both <strong>debug and release SHA-1</strong> must be added.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading">B) Web Application Configuration</h3>



<ol class="wp-block-list">
<li>Choose <strong>Application Type: Web Application</strong></li>



<li>Add:
<ul class="wp-block-list">
<li>Authorized JavaScript origins<br>Example: <code>https://yourdomain.com</code></li>



<li>Authorized redirect URIs<br>Example: <code>https://yourdomain.com/auth/google/callback</code></li>
</ul>
</li>



<li>Click <strong>Create</strong></li>



<li>Copy:
<ul class="wp-block-list">
<li>Client ID</li>



<li>Client Secret</li>
</ul>
</li>
</ol>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading">C) iOS Application Configuration</h3>



<ol class="wp-block-list">
<li>Choose <strong>Application Type: iOS</strong></li>



<li>Enter:
<ul class="wp-block-list">
<li>Bundle ID</li>
</ul>
</li>



<li>Create the credential</li>
</ol>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 5: Configure Redirect URIs Correctly</h2>



<p>Redirect URIs must match <strong>exactly</strong>, including:</p>



<ul class="wp-block-list">
<li>HTTPS</li>



<li>Trailing slashes</li>



<li>Subdomains</li>
</ul>



<p>Incorrect redirect URI causes:</p>



<ul class="wp-block-list">
<li><code>redirect_uri_mismatch</code> error</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 6: Publish OAuth Consent Screen</h2>



<p>To allow public users:</p>



<ol class="wp-block-list">
<li>Go to <strong>OAuth consent screen</strong></li>



<li>Change status from <strong>Testing</strong> to <strong>In production</strong></li>



<li>Basic scopes (<code>email</code>, <code>profile</code>) usually <strong>do not require verification</strong></li>
</ol>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 7: Integrate Credentials into Your Application</h2>



<p>Depending on your setup:</p>



<ul class="wp-block-list">
<li>Android / Flutter → Package name + SHA-1</li>



<li>Web / Backend → Client ID &amp; Secret</li>



<li>Firebase Auth → Add SHA-1 + download <code>google-services.json</code></li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 8: Common Issues &amp; Fixes Checklist</h2>



<p>✔ OAuth consent screen saved<br>✔ Correct Google Cloud project selected<br>✔ Correct package name / domain<br>✔ Debug &amp; release SHA-1 added<br>✔ Test users added (if testing)<br>✔ Redirect URI exactly matches<br>✔ App published for production use</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Best Practices for Google Sign-In</h2>



<ul class="wp-block-list">
<li>Use <strong>minimal scopes</strong></li>



<li>Never expose Client Secret in frontend code</li>



<li>Verify ID tokens on backend</li>



<li>Keep OAuth credentials environment-specific</li>



<li>Regularly audit credentials</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Conclusion</h2>



<p>Setting up Google Sign-In through Google Cloud Console is straightforward <strong>when done correctly</strong>. Most failures happen due to <strong>SHA-1 mismatch, incorrect redirect URIs, or missing consent screen configuration</strong>.</p>



<p>Follow this guide step by step, and your Google Login integration will work smoothly across <strong>Android, iOS, Web, and backend systems</strong>.</p>
<p>The post <a href="https://www.aiuniverse.xyz/google-console-api-sign-in-with-google-setup/">Step-by-Step Guide to Set Up Google Console API for “Sign in with Google”</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/google-console-api-sign-in-with-google-setup/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Run an HTML Website Alongside a Laravel Project on the Same Server</title>
		<link>https://www.aiuniverse.xyz/how-to-run-an-html-website-alongside-a-laravel-project-on-the-same-server/</link>
					<comments>https://www.aiuniverse.xyz/how-to-run-an-html-website-alongside-a-laravel-project-on-the-same-server/#respond</comments>
		
		<dc:creator><![CDATA[Maruti Kr.]]></dc:creator>
		<pubDate>Mon, 12 Jan 2026 06:19:33 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[host HTML and Laravel together]]></category>
		<category><![CDATA[Laravel and HTML same domain]]></category>
		<category><![CDATA[Laravel HTML subfolder]]></category>
		<category><![CDATA[Laravel HTML website integration]]></category>
		<category><![CDATA[Laravel project with HTML pages]]></category>
		<category><![CDATA[Laravel public folder static HTML]]></category>
		<category><![CDATA[Laravel static site setup]]></category>
		<category><![CDATA[Laravel website structure]]></category>
		<category><![CDATA[Laravel with static website]]></category>
		<category><![CDATA[run HTML with Laravel]]></category>
		<category><![CDATA[serve HTML files in Laravel]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=21679</guid>

					<description><![CDATA[<p>Running a Laravel application is common for dynamic web platforms, dashboards, and APIs. However, many businesses and developers also want to run a simple HTML website on <a class="read-more-link" href="https://www.aiuniverse.xyz/how-to-run-an-html-website-alongside-a-laravel-project-on-the-same-server/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-run-an-html-website-alongside-a-laravel-project-on-the-same-server/">How to Run an HTML Website Alongside a Laravel Project on the Same Server</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="683" src="https://www.aiuniverse.xyz/wp-content/uploads/2026/01/ChatGPT-Image-Jan-12-2026-11_48_40-AM-1024x683.png" alt="" class="wp-image-21680" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2026/01/ChatGPT-Image-Jan-12-2026-11_48_40-AM-1024x683.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2026/01/ChatGPT-Image-Jan-12-2026-11_48_40-AM-300x200.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2026/01/ChatGPT-Image-Jan-12-2026-11_48_40-AM-768x512.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2026/01/ChatGPT-Image-Jan-12-2026-11_48_40-AM.png 1536w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Running a Laravel application is common for dynamic web platforms, dashboards, and APIs. However, many businesses and developers also want to run a <strong>simple HTML website</strong> on the same server—often for landing pages, marketing content, or static informational pages.</p>



<p>The good news is that <strong>Laravel and a pure HTML website can run together smoothly on the same domain or server</strong>, if structured correctly.</p>



<p>In this blog, we’ll explain <strong>why this setup is useful</strong>, the <strong>best ways to implement it</strong>, and <strong>step-by-step methods</strong> you can follow safely in production.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Why Run an HTML Site Alongside Laravel?</h2>



<p>There are several practical reasons developers choose this approach:</p>



<ul class="wp-block-list">
<li>Marketing or SEO pages are easier to manage in HTML</li>



<li>Faster loading for static content</li>



<li>Reduced server overhead for simple pages</li>



<li>Clean separation between application logic and content</li>



<li>Ability to update the website without touching Laravel code</li>
</ul>



<p>This setup is especially useful when <strong>Laravel is already running</strong>, and you want to add a lightweight website without rebuilding everything inside Blade templates.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Understanding Laravel’s Public Folder (Very Important)</h2>



<p>Laravel serves all public web traffic from the <strong><code>public</code> directory</strong>.<br>This means:</p>



<ul class="wp-block-list">
<li>Any <strong>HTML, CSS, JS, or image file inside <code>public</code></strong> can be accessed directly</li>



<li>Laravel routes only handle requests <strong>not matching a physical file</strong></li>
</ul>



<p>This behavior allows us to safely place a static HTML site alongside Laravel.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Method 1: Run HTML Website Inside Laravel’s Public Folder (Recommended)</h2>



<p>This is the <strong>simplest and safest method</strong> when Laravel is already live.</p>



<h3 class="wp-block-heading">Folder Structure Example</h3>



<pre class="wp-block-code"><code>laravel-project/
├── app/
├── routes/
├── resources/
├── public/
│   ├── index.php        (Laravel entry point)
│   ├── assets/
│   └── html-site/
│       ├── index.html
│       ├── about.html
│       ├── css/
│       ├── js/
│       └── images/
</code></pre>



<h3 class="wp-block-heading">How It Works</h3>



<ul class="wp-block-list">
<li>Laravel continues running normally</li>



<li>Static HTML files are served directly</li>



<li>No route conflict with Laravel</li>



<li>No performance impact</li>
</ul>



<h3 class="wp-block-heading">Access URLs</h3>



<pre class="wp-block-code"><code>https:&#47;&#47;yourdomain.com/html-site/
https://yourdomain.com/html-site/about.html
</code></pre>



<h3 class="wp-block-heading">Important Notes</h3>



<ul class="wp-block-list">
<li>Do <strong>not</strong> create Laravel routes for this folder</li>



<li>Laravel automatically skips routing if a file exists</li>



<li>Keep HTML assets fully static (no PHP files)</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Method 2: HTML as Main Site, Laravel in a Subfolder</h2>



<p>Use this method when:</p>



<ul class="wp-block-list">
<li>HTML website is the <strong>main homepage</strong></li>



<li>Laravel is used as an <strong>application or admin panel</strong></li>
</ul>



<h3 class="wp-block-heading">Folder Structure</h3>



<pre class="wp-block-code"><code>public_html/
├── index.html          (Main website)
├── css/
├── js/
├── images/
└── app/
    └── laravel/
        └── public/
            └── index.php
</code></pre>



<h3 class="wp-block-heading">Access URLs</h3>



<pre class="wp-block-code"><code>https://yourdomain.com/        → HTML site
https://yourdomain.com/app/    → Laravel app
</code></pre>



<h3 class="wp-block-heading">When to Use This</h3>



<ul class="wp-block-list">
<li>Marketing website is primary</li>



<li>Laravel is secondary (dashboard, CRM, portal)</li>



<li>Shared hosting or cPanel setup</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Method 3: HTML on Main Domain, Laravel on Subdomain (Best for Production)</h2>



<p>This is the <strong>most professional and scalable approach</strong>.</p>



<h3 class="wp-block-heading">Example Setup</h3>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>URL</th><th>Purpose</th></tr></thead><tbody><tr><td>yoursite.com</td><td>HTML website</td></tr><tr><td>app.yoursite.com</td><td>Laravel application</td></tr></tbody></table></figure>



<h3 class="wp-block-heading">Benefits</h3>



<ul class="wp-block-list">
<li>No routing conflicts</li>



<li>Better SEO separation</li>



<li>Easier scaling and maintenance</li>



<li>Clean architecture</li>
</ul>



<h3 class="wp-block-heading">Recommended For</h3>



<ul class="wp-block-list">
<li>Growing platforms</li>



<li>SaaS products</li>



<li>Business websites with dashboards</li>



<li>Long-term projects</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Common Mistakes to Avoid</h2>



<h3 class="wp-block-heading">1. Mixing Laravel Routes with HTML Files</h3>



<p>Never define Laravel routes for static HTML folders.</p>



<h3 class="wp-block-heading">2. Wrong Asset Paths</h3>



<p>Use <strong>absolute paths</strong> in HTML files:</p>



<pre class="wp-block-code"><code>&lt;link rel="stylesheet" href="/html-site/css/style.css"&gt;
</code></pre>



<h3 class="wp-block-heading">3. Exposing Sensitive Files</h3>



<p>Do not place:</p>



<ul class="wp-block-list">
<li><code>.env</code></li>



<li>PHP scripts</li>



<li>configuration files<br>inside the HTML folder.</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Security Best Practices</h2>



<ul class="wp-block-list">
<li>Keep HTML folders <strong>static only</strong></li>



<li>Laravel <code>.htaccess</code> should remain untouched</li>



<li>Do not allow uploads inside HTML directories</li>



<li>Use correct file permissions</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Which Method Should You Choose?</h2>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Use Case</th><th>Best Method</th></tr></thead><tbody><tr><td>Laravel already running</td><td>Method 1</td></tr><tr><td>HTML homepage + Laravel app</td><td>Method 2</td></tr><tr><td>Production-grade setup</td><td>Method 3</td></tr></tbody></table></figure>



<p>👉 <strong>If Laravel is already live</strong>, Method 1 is the fastest and safest solution.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Final Thoughts</h2>



<p>Running an HTML website alongside a Laravel project is <strong>not only possible but also a best practice</strong> in many real-world scenarios. The key is understanding how Laravel serves files and keeping a clean folder structure.</p>



<p>Whether you’re adding landing pages, marketing content, or a separate static site, the right setup ensures:</p>



<ul class="wp-block-list">
<li>Better performance</li>



<li>Cleaner codebase</li>



<li>Easier maintenance</li>



<li>No routing conflicts</li>
</ul>



<p>Choose the method that fits your project size and future plans—and keep Laravel and HTML working together smoothly.</p>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-run-an-html-website-alongside-a-laravel-project-on-the-same-server/">How to Run an HTML Website Alongside a Laravel Project on the Same Server</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/how-to-run-an-html-website-alongside-a-laravel-project-on-the-same-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install Node.js and npm (Step-by-Step Guide)</title>
		<link>https://www.aiuniverse.xyz/how-to-install-node-js-and-npm-step-by-step-guide/</link>
					<comments>https://www.aiuniverse.xyz/how-to-install-node-js-and-npm-step-by-step-guide/#respond</comments>
		
		<dc:creator><![CDATA[Maruti Kr.]]></dc:creator>
		<pubDate>Fri, 08 Aug 2025 05:22:59 +0000</pubDate>
				<category><![CDATA[laravel]]></category>
		<category><![CDATA[PHP Tutorials]]></category>
		<category><![CDATA[Homebrew]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[macOS]]></category>
		<category><![CDATA[Node.js]]></category>
		<category><![CDATA[npm]]></category>
		<category><![CDATA[nvm]]></category>
		<category><![CDATA[Setup]]></category>
		<category><![CDATA[version manager]]></category>
		<category><![CDATA[WINDOWS]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=21326</guid>

					<description><![CDATA[<p>How to Install Node.js and npm (Step-by-Step Guide) Node.js is a JavaScript runtime built on Chrome&#8217;s V8 JavaScript engine, and npm (Node Package Manager) is the package <a class="read-more-link" href="https://www.aiuniverse.xyz/how-to-install-node-js-and-npm-step-by-step-guide/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-install-node-js-and-npm-step-by-step-guide/">How to Install Node.js and npm (Step-by-Step Guide)</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading">How to Install Node.js and npm (Step-by-Step Guide)</h1>



<p>Node.js is a JavaScript runtime built on Chrome&#8217;s V8 JavaScript engine, and npm (Node Package Manager) is the package manager for Node.js. Here&#8217;s how to install them on various operating systems:</p>



<h2 class="wp-block-heading">For Windows</h2>



<h3 class="wp-block-heading">Method 1: Using the Official Installer</h3>



<ol class="wp-block-list">
<li><strong>Download the installer</strong>:</li>
</ol>



<ul class="wp-block-list">
<li>Go to <a href="https://nodejs.org/">Node.js official website</a></li>
</ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="529" src="https://www.aiuniverse.xyz/wp-content/uploads/2025/08/image-5-1024x529.png" alt="" class="wp-image-21327" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2025/08/image-5-1024x529.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2025/08/image-5-300x155.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2025/08/image-5-768x396.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2025/08/image-5-1536x793.png 1536w, https://www.aiuniverse.xyz/wp-content/uploads/2025/08/image-5-1170x606.png 1170w, https://www.aiuniverse.xyz/wp-content/uploads/2025/08/image-5.png 1879w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<ul class="wp-block-list">
<li>Download the LTS (Long Term Support) version (recommended for most users)</li>
</ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="518" src="https://www.aiuniverse.xyz/wp-content/uploads/2025/08/image-6-1024x518.png" alt="" class="wp-image-21328" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2025/08/image-6-1024x518.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2025/08/image-6-300x152.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2025/08/image-6-768x388.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2025/08/image-6-1536x776.png 1536w, https://www.aiuniverse.xyz/wp-content/uploads/2025/08/image-6.png 1915w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="524" src="https://www.aiuniverse.xyz/wp-content/uploads/2025/08/image-7-1024x524.png" alt="" class="wp-image-21329" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2025/08/image-7-1024x524.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2025/08/image-7-300x153.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2025/08/image-7-768x393.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2025/08/image-7.png 1238w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>2. <strong>Run the installer</strong>:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="690" height="417" src="https://www.aiuniverse.xyz/wp-content/uploads/2025/08/image-8.png" alt="" class="wp-image-21330" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2025/08/image-8.png 690w, https://www.aiuniverse.xyz/wp-content/uploads/2025/08/image-8-300x181.png 300w" sizes="auto, (max-width: 690px) 100vw, 690px" /></figure>



<ol class="wp-block-list"></ol>



<ul class="wp-block-list">
<li>Double-click the downloaded <code>.msi</code> file</li>



<li>Follow the installation wizard (you can accept all defaults)</li>
</ul>



<p>3. <strong>Verify installation</strong>:</p>



<ol class="wp-block-list"></ol>



<ul class="wp-block-list">
<li>Open Command Prompt (cmd)</li>



<li>Type</li>
</ul>



<pre class="wp-block-code"><code>node -v
npm -v</code></pre>



<ul class="wp-block-list">
<li>This should display the installed versions</li>
</ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="518" src="https://www.aiuniverse.xyz/wp-content/uploads/2025/08/image-9-1024x518.png" alt="" class="wp-image-21331" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2025/08/image-9-1024x518.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2025/08/image-9-300x152.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2025/08/image-9-768x389.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2025/08/image-9.png 1476w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading">Method 2: Using Chocolatey (Package Manager)</h3>



<ol class="wp-block-list">
<li>Install Chocolatey (if you don&#8217;t have it):</li>
</ol>



<pre class="wp-block-code"><code>   @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" &amp;&amp; SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"</code></pre>



<ol start="2" class="wp-block-list">
<li>Install Node.js:</li>
</ol>



<pre class="wp-block-code"><code>   choco install nodejs</code></pre>



<h2 class="wp-block-heading">For macOS</h2>



<h3 class="wp-block-heading">Method 1: Using Official Installer</h3>



<ol class="wp-block-list">
<li><strong>Download the installer</strong> from <a href="https://nodejs.org/">Node.js website</a></li>



<li><strong>Run the installer</strong> and follow the prompts</li>



<li><strong>Verify installation</strong> in Terminal:</li>
</ol>



<pre class="wp-block-code"><code>   node -v
   npm -v</code></pre>



<h3 class="wp-block-heading">Method 2: Using Homebrew</h3>



<ol class="wp-block-list">
<li>Install Homebrew (if you don&#8217;t have it):</li>
</ol>



<pre class="wp-block-code"><code>   /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"</code></pre>



<ol start="2" class="wp-block-list">
<li>Install Node.js:</li>
</ol>



<pre class="wp-block-code"><code>   brew install node</code></pre>



<h2 class="wp-block-heading">For Linux (Ubuntu/Debian)</h2>



<h3 class="wp-block-heading">Method 1: Using NodeSource PPA (Recommended)</h3>



<ol class="wp-block-list">
<li><strong>Install curl</strong> (if not already installed):</li>
</ol>



<pre class="wp-block-code"><code>   sudo apt-get install curl</code></pre>



<ol start="2" class="wp-block-list">
<li><strong>Add NodeSource repository</strong>:</li>
</ol>



<pre class="wp-block-code"><code>   curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -</code></pre>



<p>(Replace <code>lts</code> with the version number you want if needed)</p>



<ol start="3" class="wp-block-list">
<li><strong>Install Node.js and npm</strong>:</li>
</ol>



<pre class="wp-block-code"><code>   sudo apt-get install -y nodejs</code></pre>



<ol start="4" class="wp-block-list">
<li><strong>Verify installation</strong>:</li>
</ol>



<pre class="wp-block-code"><code>   node -v
   npm -v</code></pre>



<h3 class="wp-block-heading">Method 2: Using Package Manager</h3>



<pre class="wp-block-code"><code>sudo apt update
sudo apt install nodejs npm</code></pre>



<h2 class="wp-block-heading">Post-Installation Steps (All OS)</h2>



<ol class="wp-block-list">
<li><strong>Update npm</strong> (optional but recommended):</li>
</ol>



<pre class="wp-block-code"><code>   npm install -g npm@latest</code></pre>



<ol start="2" class="wp-block-list">
<li><strong>Check for global npm permissions</strong>:</li>
</ol>



<ul class="wp-block-list">
<li>If you get permission errors, you might need to:
<ul class="wp-block-list">
<li>Reinstall with a version manager (like nvm)</li>



<li>Change npm&#8217;s default directory</li>



<li>Use <code>sudo</code> (not recommended for security reasons)</li>
</ul>
</li>
</ul>



<h2 class="wp-block-heading">Optional: Install Using Node Version Manager (nvm)</h2>



<p>nvm allows you to install and switch between multiple Node.js versions:</p>



<ol class="wp-block-list">
<li><strong>Install nvm</strong>:</li>
</ol>



<ul class="wp-block-list">
<li>Linux/macOS:<br><code>curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash</code></li>



<li>Windows: Use <a href="https://github.com/coreybutler/nvm-windows">nvm-windows</a></li>
</ul>



<ol class="wp-block-list">
<li><strong>Install Node.js</strong>:</li>
</ol>



<pre class="wp-block-code"><code>   nvm install --lts</code></pre>



<ol start="3" class="wp-block-list">
<li><strong>Use a specific version</strong>:</li>
</ol>



<pre class="wp-block-code"><code>   nvm use 14.17.0</code></pre>



<p>That&#8217;s it! You now have Node.js and npm installed on your system. You can start creating Node.js applications or install packages using npm.</p>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-install-node-js-and-npm-step-by-step-guide/">How to Install Node.js and npm (Step-by-Step Guide)</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/how-to-install-node-js-and-npm-step-by-step-guide/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>SQLSTATE[HY000] [2002] Connection refused</title>
		<link>https://www.aiuniverse.xyz/sqlstatehy000-2002-connection-refused/</link>
					<comments>https://www.aiuniverse.xyz/sqlstatehy000-2002-connection-refused/#respond</comments>
		
		<dc:creator><![CDATA[Maruti Kr.]]></dc:creator>
		<pubDate>Tue, 25 Feb 2025 13:34:48 +0000</pubDate>
				<category><![CDATA[laravel]]></category>
		<category><![CDATA[Clear Laravel cache]]></category>
		<category><![CDATA[DB_SOCKET configuration]]></category>
		<category><![CDATA[Fix MySQL connection error]]></category>
		<category><![CDATA[Laravel .env file configuration]]></category>
		<category><![CDATA[Laravel database connection]]></category>
		<category><![CDATA[Laravel database connection error solution]]></category>
		<category><![CDATA[Laravel DB_SOCKET fix]]></category>
		<category><![CDATA[Laravel optimize commands]]></category>
		<category><![CDATA[Laravel route cache clear]]></category>
		<category><![CDATA[MySQL Unix socket path]]></category>
		<category><![CDATA[Optimize Laravel application]]></category>
		<category><![CDATA[PHP MySQL connection refused]]></category>
		<category><![CDATA[SQLSTATE[HY000] [2002]]]></category>
		<category><![CDATA[Troubleshooting PHP MySQL connection]]></category>
		<category><![CDATA[XAMPP MySQL socket issue]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=20845</guid>

					<description><![CDATA[<p>Step-by-Step Solution: 5. Save the .env File: 6. Clear Route, Cache, and Optimize the Application: Conclusion: By adding the DB_SOCKET line to your .env file, you can <a class="read-more-link" href="https://www.aiuniverse.xyz/sqlstatehy000-2002-connection-refused/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/sqlstatehy000-2002-connection-refused/">SQLSTATE[HY000] [2002] Connection refused</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="511" src="https://www.aiuniverse.xyz/wp-content/uploads/2025/02/image-1024x511.png" alt="" class="wp-image-20846" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2025/02/image-1024x511.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2025/02/image-300x150.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2025/02/image-768x383.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2025/02/image.png 1293w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p><strong>Step-by-Step Solution:</strong></p>



<ol class="wp-block-list">
<li><strong>Locate the .env File:</strong>
<ul class="wp-block-list">
<li>The <code>.env</code> file is located in the root directory of your PHP or Laravel application. This file contains key-value pairs for environment-specific configurations.</li>
</ul>
</li>



<li><strong>Edit the .env File:</strong>
<ul class="wp-block-list">
<li>Open the <code>.env</code> file in a text editor, such as VSCode or Sublime Text.</li>
</ul>
</li>



<li><strong>Add the DB_SOCKET Configuration:</strong>
<ul class="wp-block-list">
<li>Inside the <code>.env</code> file, add the following line to specify the MySQL socket location: <code>DB_SOCKET=/opt/lampp/var/mysql/mysql.sock</code></li>



<li>This line tells your application where to find the MySQL socket file, which resolves the connection refusal when using a local development environment like XAMPP.</li>
</ul>
</li>



<li><strong>Verify Other Database Configuration:</strong>
<ul class="wp-block-list">
<li>Ensure that your database connection settings are correctly set. Below is an example of a full database configuration block in the <code>.env</code> file: </li>
</ul>
</li>
</ol>



<pre class="wp-block-code"><code>DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database_name
DB_USERNAME=your_database_user
DB_PASSWORD=your_database_password
DB_SOCKET=/opt/lampp/var/mysql/mysql.sock</code></pre>



<p>5. <strong>Save the .env File:</strong></p>



<ul class="wp-block-list">
<li>After adding the socket configuration, save the <code>.env</code> file.</li>
</ul>



<p>6. <strong> Clear Route, Cache, and Optimize the Application:</strong></p>



<ul class="wp-block-list">
<li>Once you&#8217;ve updated the <code>.env</code> file, it&#8217;s essential to clear and optimize the Laravel application&#8217;s cache, routes, and configuration. This will ensure your changes are reflected and improve the application&#8217;s performance. Run the following commands from your terminal:</li>
</ul>



<pre class="wp-block-code"><code>php artisan config:cache        # Clear and cache the configuration files
php artisan route:cache         # Clear and cache the route files
php artisan cache:clear         # Clear the application's cache
php artisan optimize            # Optimize the application's performance</code></pre>



<ol class="wp-block-list"></ol>



<p><strong>Conclusion:</strong> By adding the <code>DB_SOCKET</code> line to your <code>.env</code> file, you can easily fix the <code>Connection refused</code> error caused by socket connection issues in local PHP environments like XAMPP. This simple change can save you a lot of troubleshooting time and get your PHP application connecting to MySQL without errors.</p>
<p>The post <a href="https://www.aiuniverse.xyz/sqlstatehy000-2002-connection-refused/">SQLSTATE[HY000] [2002] Connection refused</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/sqlstatehy000-2002-connection-refused/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Resolving SQL ENUM Errors: Fixing &#8216;Data Truncated for Column&#8217; in Laravel</title>
		<link>https://www.aiuniverse.xyz/resolving-sql-enum-errors-fixing-data-truncated-for-column-in-laravel/</link>
					<comments>https://www.aiuniverse.xyz/resolving-sql-enum-errors-fixing-data-truncated-for-column-in-laravel/#respond</comments>
		
		<dc:creator><![CDATA[Maruti Kr.]]></dc:creator>
		<pubDate>Thu, 26 Dec 2024 07:37:11 +0000</pubDate>
				<category><![CDATA[laravel]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=19741</guid>

					<description><![CDATA[<p>I&#8217; m getting this error[2024-12-26 07:24:40] local.ERROR: SQLSTATE[01000]: Warning: 1265 Data truncated for column &#8216;Type&#8217; at row 1 (Connection: mysql, SQL: insert into websites (Name, Type, URL, <a class="read-more-link" href="https://www.aiuniverse.xyz/resolving-sql-enum-errors-fixing-data-truncated-for-column-in-laravel/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/resolving-sql-enum-errors-fixing-data-truncated-for-column-in-laravel/">Resolving SQL ENUM Errors: Fixing &#8216;Data Truncated for Column&#8217; in Laravel</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>I&#8217; m getting this error<br>[2024-12-26 07:24:40] local.ERROR: SQLSTATE[01000]: Warning: 1265 Data truncated for column &#8216;Type&#8217; at row 1 (Connection: mysql, SQL: insert into <code>websites</code> (<code>Name</code>, <code>Type</code>, <code>URL</code>, <code>Username</code>, <code>Password</code>) values (blogger, blogger, kumarmarutidfjsdfdsf@gmail.com, ?, ?)) {&#8220;userId&#8221;:1,&#8221;exception&#8221;:&#8221;[object] (Illuminate\\Database\\QueryException(code: 01000): SQLSTATE[01000]: Warning: 1265 Data truncated for column &#8216;Type&#8217; at row 1 (Connection: mysql, SQL: insert into <code>websites</code> (<code>Name</code>, <code>Type</code>, <code>URL</code>, <code>Username</code>, <code>Password</code>) values (blogger, blogger, kumarmarutidfjsdfdsf@gmail.com, ?, ?)) at C:\\xampp\\htdocs\\GuestPostManagement\\vendor\\laravel\\framework\\src\\Illuminate\\Database\\Connection.php:829)</p>



<p>The error points to an issue with the <code>Type</code> column in the <code>websites</code> table. Specifically, the value <code>'blogger'</code> for the <code>Type</code> column is not one of the allowed values for the <code>ENUM</code> data type defined for that column.</p>



<h3 class="wp-block-heading">Steps to Resolve</h3>



<h4 class="wp-block-heading">1. <strong>Check the Current ENUM Definition</strong></h4>



<p>Run the following query to check the allowed values for the <code>Type</code> column:</p>



<pre class="wp-block-code"><code>SHOW COLUMNS FROM websites LIKE 'Type';
</code></pre>



<p>This will display the current ENUM definition, e.g.:</p>



<pre class="wp-block-code"><code>Type | ENUM('WordPress', 'Joomla', 'Drupal') | ...
</code></pre>



<h4 class="wp-block-heading">2. <strong>Update the ENUM Definition</strong></h4>



<p>If <code>'blogger'</code> is a valid type for your application, you need to add it to the ENUM definition. Run:</p>



<pre class="wp-block-code"><code>ALTER TABLE websites MODIFY COLUMN Type ENUM('WordPress', 'Joomla', 'Drupal', 'blogger') NOT NULL;
</code></pre>



<h4 class="wp-block-heading">3. <strong>Validate the Insert Query</strong></h4>



<p>Ensure the insert query matches the updated ENUM definition:</p>



<pre class="wp-block-code"><code>INSERT INTO `websites` (`Name`, `Type`, `URL`, `Username`, `Password`) 
VALUES ('blogger', 'blogger', 'kumarmarutidfjsdfdsf@gmail.com', 'username_value', 'password_value');
</code></pre>



<h4 class="wp-block-heading">4. <strong>Handle Optional Fields (<code>?</code> placeholders)</strong></h4>



<p>If the <code>Username</code> and <code>Password</code> are optional or dynamic:</p>



<ul class="wp-block-list">
<li>Ensure the fields allow <code>NULL</code> or provide a default value.</li>



<li>Update the table schema if necessary: <code>ALTER TABLE websites MODIFY COLUMN Username VARCHAR(255) NULL; ALTER TABLE websites MODIFY COLUMN Password VARCHAR(255) NULL;</code></li>
</ul>



<h4 class="wp-block-heading">Debugging Tips</h4>



<ol class="wp-block-list">
<li><strong>Test with Valid Data</strong>: Temporarily use a valid <code>Type</code> value (from the existing ENUM options) to confirm the issue is with the ENUM value. <code>INSERT INTO `websites` (`Name`, `Type`, `URL`, `Username`, `Password`) VALUES ('blogger', 'WordPress', 'kumarmarutidfjsdfdsf@gmail.com', 'username_value', 'password_value');</code></li>



<li><strong>Log the Actual Query</strong>: If the <code>?</code> placeholders are being used dynamically in Laravel, ensure the correct data is being passed. Use Laravel&#8217;s <code>DB::listen</code> to log queries: <code>\DB::listen(function ($query) { \Log::info($query->sql, $query->bindings); });</code></li>



<li><strong>Validate the Input Data</strong>: Ensure that the <code>Type</code> value passed to the query matches one of the allowed ENUM values.</li>
</ol>
<p>The post <a href="https://www.aiuniverse.xyz/resolving-sql-enum-errors-fixing-data-truncated-for-column-in-laravel/">Resolving SQL ENUM Errors: Fixing &#8216;Data Truncated for Column&#8217; in Laravel</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/resolving-sql-enum-errors-fixing-data-truncated-for-column-in-laravel/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Laravel Essentials: 50 Most Used Artisan Commands and Their Functions</title>
		<link>https://www.aiuniverse.xyz/laravel-essentials-50-most-used-artisan-commands-and-their-functions/</link>
					<comments>https://www.aiuniverse.xyz/laravel-essentials-50-most-used-artisan-commands-and-their-functions/#respond</comments>
		
		<dc:creator><![CDATA[Maruti Kr.]]></dc:creator>
		<pubDate>Tue, 17 Sep 2024 06:24:17 +0000</pubDate>
				<category><![CDATA[laravel]]></category>
		<category><![CDATA[Advanced Artisan Commands Laravel]]></category>
		<category><![CDATA[Essential Artisan Commands Laravel]]></category>
		<category><![CDATA[Laravel Artisan Commands]]></category>
		<category><![CDATA[Laravel CLI Commands Guide]]></category>
		<category><![CDATA[Laravel Command Line Tools]]></category>
		<category><![CDATA[Laravel Commands Cheat Sheet]]></category>
		<category><![CDATA[Laravel Commands Tutorial]]></category>
		<category><![CDATA[Most Used Laravel Commands]]></category>
		<category><![CDATA[Optimize Laravel Workflow]]></category>
		<category><![CDATA[Top Laravel Commands for Developers]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=19142</guid>

					<description><![CDATA[<p>Here’s a table with 50 commonly used Laravel Artisan commands, properly sequenced and categorized for clarity: Category Command Description General php artisan list Displays a list of <a class="read-more-link" href="https://www.aiuniverse.xyz/laravel-essentials-50-most-used-artisan-commands-and-their-functions/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/laravel-essentials-50-most-used-artisan-commands-and-their-functions/">Laravel Essentials: 50 Most Used Artisan Commands and Their Functions</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1024" height="1024" src="https://www.aiuniverse.xyz/wp-content/uploads/2024/09/DALL·E-2024-09-17-11.50.44-A-vibrant-image-showing-a-Laravel-development-environment-with-a-command-line-interface-displaying-Artisan-commands.-In-the-background-there-are-elem.webp" alt="" class="wp-image-19143" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2024/09/DALL·E-2024-09-17-11.50.44-A-vibrant-image-showing-a-Laravel-development-environment-with-a-command-line-interface-displaying-Artisan-commands.-In-the-background-there-are-elem.webp 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2024/09/DALL·E-2024-09-17-11.50.44-A-vibrant-image-showing-a-Laravel-development-environment-with-a-command-line-interface-displaying-Artisan-commands.-In-the-background-there-are-elem-300x300.webp 300w, https://www.aiuniverse.xyz/wp-content/uploads/2024/09/DALL·E-2024-09-17-11.50.44-A-vibrant-image-showing-a-Laravel-development-environment-with-a-command-line-interface-displaying-Artisan-commands.-In-the-background-there-are-elem-150x150.webp 150w, https://www.aiuniverse.xyz/wp-content/uploads/2024/09/DALL·E-2024-09-17-11.50.44-A-vibrant-image-showing-a-Laravel-development-environment-with-a-command-line-interface-displaying-Artisan-commands.-In-the-background-there-are-elem-768x768.webp 768w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Here’s a table with 50 commonly used Laravel Artisan commands, properly sequenced and categorized for clarity:</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th><strong>Category</strong></th><th><strong>Command</strong></th><th><strong>Description</strong></th></tr></thead><tbody><tr><td><strong>General</strong></td><td><code>php artisan list</code></td><td>Displays a list of all available Artisan commands.</td></tr><tr><td></td><td><code>php artisan serve</code></td><td>Serves the application on the PHP built-in web server.</td></tr><tr><td></td><td><code>php artisan tinker</code></td><td>Opens an interactive REPL to interact with the application.</td></tr><tr><td></td><td><code>php artisan env</code></td><td>Displays the current environment the application is running in.</td></tr><tr><td></td><td><code>php artisan key:generate</code></td><td>Sets the <code>APP_KEY</code> in the <code>.env</code> file.</td></tr><tr><td></td><td><code>php artisan optimize</code></td><td>Optimizes the framework for better performance.</td></tr><tr><td><strong>Controllers</strong></td><td><code>php artisan make:controller</code></td><td>Creates a new controller.</td></tr><tr><td><strong>Models</strong></td><td><code>php artisan make:model</code></td><td>Creates a new Eloquent model class.</td></tr><tr><td><strong>Migrations</strong></td><td><code>php artisan make:migration</code></td><td>Creates a new database migration.</td></tr><tr><td></td><td><code>php artisan migrate</code></td><td>Runs the pending migrations.</td></tr><tr><td></td><td><code>php artisan migrate:rollback</code></td><td>Rolls back the last database migration.</td></tr><tr><td></td><td><code>php artisan migrate:fresh</code></td><td>Drops all tables and re-runs all migrations.</td></tr><tr><td></td><td><code>php artisan migrate:status</code></td><td>Displays the status of each migration.</td></tr><tr><td><strong>Routing</strong></td><td><code>php artisan route:list</code></td><td>Lists all registered routes.</td></tr><tr><td></td><td><code>php artisan route:cache</code></td><td>Caches the application&#8217;s routes.</td></tr><tr><td></td><td><code>php artisan route:clear</code></td><td>Clears the route cache.</td></tr><tr><td><strong>Middleware</strong></td><td><code>php artisan make:middleware</code></td><td>Creates a new middleware class.</td></tr><tr><td><strong>Form Requests</strong></td><td><code>php artisan make:request</code></td><td>Creates a new form request class.</td></tr><tr><td><strong>Database</strong></td><td><code>php artisan make:seeder</code></td><td>Creates a new database seeder class.</td></tr><tr><td></td><td><code>php artisan db:seed</code></td><td>Runs the database seeders.</td></tr><tr><td></td><td><code>php artisan make:factory</code></td><td>Creates a new model factory.</td></tr><tr><td><strong>Cache Management</strong></td><td><code>php artisan cache:clear</code></td><td>Clears the application cache.</td></tr><tr><td></td><td><code>php artisan config:cache</code></td><td>Caches the application configuration.</td></tr><tr><td></td><td><code>php artisan config:clear</code></td><td>Clears the configuration cache.</td></tr><tr><td></td><td><code>php artisan view:clear</code></td><td>Clears compiled view files.</td></tr><tr><td></td><td><code>php artisan optimize:clear</code></td><td>Clears all compiled files and caches.</td></tr><tr><td><strong>Jobs &amp; Queues</strong></td><td><code>php artisan make:job</code></td><td>Creates a new job class.</td></tr><tr><td></td><td><code>php artisan queue:work</code></td><td>Starts processing jobs on the queue.</td></tr><tr><td></td><td><code>php artisan queue:restart</code></td><td>Restarts the queue worker after the current job finishes.</td></tr><tr><td></td><td><code>php artisan queue:table</code></td><td>Creates a migration for the jobs database table.</td></tr><tr><td><strong>Events &amp; Listeners</strong></td><td><code>php artisan make:event</code></td><td>Creates a new event class.</td></tr><tr><td></td><td><code>php artisan make:listener</code></td><td>Creates a new event listener class.</td></tr><tr><td></td><td><code>php artisan event:generate</code></td><td>Generates event and listener classes for registered events.</td></tr><tr><td><strong>Policies &amp; Authorization</strong></td><td><code>php artisan make:policy</code></td><td>Creates a new authorization policy.</td></tr><tr><td><strong>Notifications</strong></td><td><code>php artisan make:notification</code></td><td>Creates a new notification class.</td></tr><tr><td><strong>API Resources</strong></td><td><code>php artisan make:resource</code></td><td>Creates a new API resource class.</td></tr><tr><td><strong>Observers</strong></td><td><code>php artisan make:observer</code></td><td>Creates a new observer class for models.</td></tr><tr><td><strong>Console &amp; Commands</strong></td><td><code>php artisan make:command</code></td><td>Creates a new Artisan command.</td></tr><tr><td></td><td><code>php artisan make:console</code></td><td>Creates a new console command.</td></tr><tr><td><strong>Testing</strong></td><td><code>php artisan make:test</code></td><td>Creates a new test class.</td></tr><tr><td></td><td><code>php artisan test</code></td><td>Runs the application&#8217;s tests.</td></tr><tr><td><strong>Providers</strong></td><td><code>php artisan make:provider</code></td><td>Creates a new service provider class.</td></tr><tr><td><strong>Validation</strong></td><td><code>php artisan make:rule</code></td><td>Creates a new custom validation rule.</td></tr><tr><td><strong>Storage</strong></td><td><code>php artisan storage:link</code></td><td>Creates a symbolic link from <code>public/storage</code> to <code>storage/app/public</code>.</td></tr><tr><td><strong>Maintenance Mode</strong></td><td><code>php artisan down</code></td><td>Puts the application into maintenance mode.</td></tr><tr><td></td><td><code>php artisan up</code></td><td>Brings the application out of maintenance mode.</td></tr><tr><td><strong>Vendor Management</strong></td><td><code>php artisan vendor:publish</code></td><td>Publishes vendor package assets, configuration files, or views.</td></tr><tr><td><strong>Password Resets</strong></td><td><code>php artisan auth:clear-resets</code></td><td>Flushes expired password reset tokens.</td></tr></tbody></table></figure>



<p>This table organizes the commands based on their function within the Laravel ecosystem.</p>
<p>The post <a href="https://www.aiuniverse.xyz/laravel-essentials-50-most-used-artisan-commands-and-their-functions/">Laravel Essentials: 50 Most Used Artisan Commands and Their Functions</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/laravel-essentials-50-most-used-artisan-commands-and-their-functions/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
