Skip to content

Instantly share code, notes, and snippets.

View savankaneriya's full-sized avatar
💻
Working on Something

savan kaneriya savankaneriya

💻
Working on Something
View GitHub Profile
@savankaneriya
savankaneriya / Install-ImageMagick
Last active July 14, 2018 06:49
Install ImageMagick in windows , ubuntu or mac
Installing ImageMagick
In this topic you will find the basic steps you need to take in order to make sure all KTML image editing features are working fine. This includes the installation of the ImageMagick library for both Unix and Windows systems.
Note: The steps depicted in this topic are accurate and available at the time of this writing. For up-to-date instructions on how to install the latest ImageMagick version available, check out the product's installation instructions - online, or in the downloaded package.
Installing ImageMagick on Windows-based systems
@savankaneriya
savankaneriya / clean-special-characters-or-garbage-characters-from-string.php
Last active June 29, 2018 10:53
clean special characters or garbage characters from string to UTF-8 encoding
function cleanString($text) {
$utf8 = array(
'/[áàâãªä]/u' => 'a',
'/[ÁÀÂÃÄ]/u' => 'A',
'/[ÍÌÎÏ]/u' => 'I',
'/[íìîï]/u' => 'i',
'/[éèêë]/u' => 'e',
'/[ÉÈÊË]/u' => 'E',
@savankaneriya
savankaneriya / Middleware\Role.php
Last active December 28, 2018 07:50
Role middleware which accepts more than one role in laravel
namespace App\Http\Middleware;
use Closure;
use Illuminate\Support\Facades\Auth;
class Role
{
/**
* Handle an incoming request.
*