- https://speakerdeck.com/willroth/50-laravel-tricks-in-50-minutes
- https://www.reddit.com/r/laravel/comments/3to60i/50_laravel_tricks/
- 1. Automatic Model Validation
<?php | |
namespace Namespace\MyBundle\Repository\Filters; | |
use Doctrine\ORM\Mapping\ClassMetaData; | |
use Doctrine\ORM\Query\Filter\SQLFilter; | |
class DeletedFilter extends SQLFilter | |
{ | |
public function addFilterConstraint(ClassMetadata $targetEntity, $targetTableAlias) | |
{ |
<?php declare(strict_types=1); | |
require_once "✨.🐘"; | |
✨($_)->strlen("foo")->var_dump($_); |
#!/bin/bash | |
if [[ $EUID -ne 0 ]]; then | |
echo "[-] This script must be run as root [-]" | |
exit 1 | |
fi | |
echo "[+] Reseting Initiated [+]" | |
ufw disable | |
echo "[?] Current Status [?]" | |
ufw status numbered verbose |