Skip to content

Instantly share code, notes, and snippets.

View Virus5600's full-sized avatar
📚
Back to college

Karl Satchi Navida Virus5600

📚
Back to college
View GitHub Profile
@chetans9
chetans9 / SecureHeadersMiddleware.php
Last active April 22, 2024 09:19
Laravel Secure Headers Middleware
<?php
namespace App\Http\Middleware;
use Closure;
class SecureHeadersMiddleware
{
// Enumerate headers which you do not want in your application's responses.
// Great starting point would be to go check out @Scott_Helme's:
// https://securityheaders.com/
@DavidMRGaona
DavidMRGaona / SecureHeaders.php
Created November 21, 2018 15:04
Laravel Middleware to add/remove headers
<?php
namespace App\Http\Middleware;
use Closure;
class SecureHeaders
{
// Enumerate unwanted headers
private $unwantedHeaderList = [
@robbydooo
robbydooo / RunScheduler.php
Last active October 23, 2021 14:14
Heroku Laravel Scheduler
<?php
/**
This Scheduler will run once every minute unlike the Heroku scheduler which only runs every 10 mintues.
To use this scheduler with Laravel 5.4+ add this file to /app/Console/Commands/RunScheduler.php
Register this file in app/Console/Kernel.php