Nginx Config for Laravel Application in sub folder

Nginx Web Server

To run Laravel Application on sub folder of a web site, use following configuration. If you run Laravel application as main site, see Nginx Config for Laravel Application

Here you place Laravel application in a subdirectory “subFolderApp1”. Example

[…]

Read More…

Laravel

Laravel Database Migration Error Key too long How to find Laravel Framework Version Create project using latest laravel

Create project using specific version of laravel.

You can see available laravel versions on site https://packagist.org/packages/laravel/laravel […]

Read More…

Laravel Database Migration Error Key too long

When doing a database migration on Laravel, i get following error

This is because MariaDB use different UTF8 format. To fix, edit file

Inside, find

Replace with

You will also need to add

here is how my file look like after editing.

Laravel […]

Read More…

Syntax error or access violation: 1071 Specified key was too long

When running database migration in a new larvel project, i get following error [email protected]:~/www/proxy (master)$ php artisan migrate In Connection.php line 664: SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: alter table users add unique users_email_unique(email)) In Connection.php line 458: SQLSTATE[42000]: Syntax error or […]

Read More…