Skip to content

Instantly share code, notes, and snippets.

View dhimasanb's full-sized avatar
🎯
Focusing

Dhimas Akbar Noor Baihaque dhimasanb

🎯
Focusing
View GitHub Profile
@dhimasanb
dhimasanb / laravel
Last active February 5, 2018 08:17
Simple Config Laravel + Nginx
server {
# Port that the web server will listen on.
listen 8081 default_server;;
# listen [::]:80 default_server ipv6only=on;
# SSL Config
#
# listen 443 ssl default_server;
# listen [::]:443 ssl default_server;
@dhimasanb
dhimasanb / php.ini
Created May 28, 2017 21:11
My PHP Config for Laravel
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@dhimasanb
dhimasanb / PHP.ini
Created May 17, 2017 11:58
Config PHP.ini on Linux to Installation Laravel
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@dhimasanb
dhimasanb / AppServiceProvider.php
Last active April 9, 2017 17:40
Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes on Laravel 5.4
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Schema; // Add this
class AppServiceProvider extends ServiceProvider
{
/**