Saturday, December 25, 2021

Hosting Laravel Application in CPanel public folder issue.

 In Laravel Application, We have have our index.php file inside public folder, but in CPanel by default they have public_html directory as home directory.

To avoid this problem, we need to create .htaccess file in public folder with the below content.

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteRule ^(.*)$ public/$1 [L]

</IfModule> 

Wednesday, October 13, 2021

Laravel Creating or Updating Tables Using Migration Command

For Creating table:

php artisan make:migration create_users_table --create=users


For Updating/Changing the existing Table: 

php artisan make:migration update_users_table --table=users

XAMPP MySql Crash issue

 This is as a result of some files in C:\xampp\mysql\data\mysql getting corrupted. Solution: Back up C:\xampp\mysql\data Copy all file C:\xa...