Tips:

Use .htaccess for avoid the execution of some binary files i.e:

php_flag engine off

(Image Alias) Intervention dependency

We use "intervention/image": "2.*" dependency for image manipulation. You can also use native PHP

Create an “isAjax” middleware
    <?php namespace appHttpMiddleware;

    use Closure;
    use IlluminateContractsRoutingMiddleware;
    use IlluminateHttpRedirectResponse;

    class isAjax implements Middleware {

        public function handle($request, Closure $next)
        {
            if ($request->ajax()){
                return $next($request);
            }else{
                return new RedirectResponse(url('/'));
            }

        }
    }