Skip to content

Instantly share code, notes, and snippets.

View Mohammad-Ranjbar's full-sized avatar
🏠
Working from home

Mohammad Javad Ranjbar Mohammad-Ranjbar

🏠
Working from home
View GitHub Profile
@Mohammad-Ranjbar
Mohammad-Ranjbar / default nginx configuration file
Created November 30, 2019 13:55 — forked from skbr1234/default nginx configuration file
The default nginx configuration file inside /etc/nginx/sites-available/default
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
@Mohammad-Ranjbar
Mohammad-Ranjbar / PjaxMiddleware.php
Created April 27, 2019 15:40 — forked from JeffreyWay/PjaxMiddleware.php
Laravel middleware for working with pjax.
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Symfony\Component\DomCrawler\Crawler;
class PjaxMiddleware