Skip to content

Instantly share code, notes, and snippets.

@sujalpatel2209
sujalpatel2209 / codeigniter.conf
Created December 17, 2017 09:54
Nginx Config For Codeigniter
server {
listen 80;
root /var/www/html/placement;
index index.html index.php index.htm;
server_name placement.webmobtech.com;
@sujalpatel2209
sujalpatel2209 / wordpress.conf
Created December 17, 2017 09:54
Nginx Config For Wordpress
server {
listen 80;
index index.html index.htm index.php;
root /var/www/html/example(Project Folder);
server_name example.org.in www.example.org.in;
# try_files $uri $uri/ /index.php$is_args$args /index.php?$args;
@sujalpatel2209
sujalpatel2209 / default.conf
Last active December 17, 2017 09:52
Nginx default config
server {
listen 80 default;
#listen[::]:80 default;
root /var/www/html;
# index index.html index.htm index.nginx-debian.html;
server_name example.com www.example.com;
@sujalpatel2209
sujalpatel2209 / gist:0ce6a86f0daa9818fa9ec6cb103419bf
Created December 17, 2017 09:49
Nginx Config For laravel with set sub domain
server {
listen 80;
index index.html index.htm index.php;
root /var/www/html/baller;
server_name baller.webmobtech.com;
try_files $uri $uri/ /index.php?q=$uri&$args;
@sujalpatel2209
sujalpatel2209 / Switch_Case_In_Laravel5.x.txt
Last active July 19, 2017 16:29
Using Switch Case on Laravel 5.x Blade
In this post I will show you about how to add Switch Case to Laravel 5.x blade template engine.
On app/Providers/AppServiceProvider.php do following steps:
use Illuminate\Support\Facades\Blade;
On function function boot() add following line:
// Switch case directive
Blade::extend(function($value, $compiler){