Skip to content

Instantly share code, notes, and snippets.

View jakzaizzat's full-sized avatar
🏠
Remote

Jakz jakzaizzat

🏠
Remote
View GitHub Profile
@jakzaizzat
jakzaizzat / .htaccess
Created February 18, 2018 15:38
Laravel .htaccess in shared hosting
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
@jakzaizzat
jakzaizzat / migration.php
Created February 17, 2018 04:43
Rename column where there is a ENUM column
public function up()
{
Schema::getConnection()->getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string');
Schema::table('jobs', function(Blueprint $table)
{
$table->decimal('latitude', 10, 6)->nullable()->change();
});
}