Redirect a site to HTTPS using PHP

This PHP script will redirect web site visitor to HTTPS (SSL) url. You can add this in your index.php of the web site

Move a site to new URL using PHP

You can also use Apache mod_rewrite .htacess to do the redirection.


Laravel Database Migration Error Key too long

Create project using latest laravel

Create project using specific version of laravel.

You can see available laravel versions on site