create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| <?php | |
| return array( | |
| 'redis' => array( | |
| 'cluster' => true, | |
| 'default' => array( | |
| 'scheme' => 'unix', | |
| 'path' => '/tmp/redis.sock' | |
| ) | |
| ); |
| { | |
| "name": "spakkionu/validate", | |
| "description": "Validation Test", | |
| "require": { | |
| "illuminate/validation": "~4.2.9" | |
| }, | |
| "license": "MIT", | |
| "authors": [ | |
| { | |
| "name": "Jonathan Bernardi", |
#Laravel 5 Simple ACL manager
Protect your routes with user roles. Simply add a 'role_id' to the User model, install the roles table and seed if you need some example roles to get going.
If the user has a 'Root' role, then they can perform any actions.
Simply copy the files across into the appropriate directories, and register the middleware in App\Http\Kernel.php
| <?php | |
| // For example in AppServiceProvider | |
| Validator::extend('extensions', function ($attribute, $value, $parameters) { | |
| return in_array($value->getClientOriginalExtension(), $parameters); | |
| }); | |
| Validator::replacer('extensions', function($message, $attribute, $rule, $parameters) { | |
| return str_replace([':attribute', ':values'], [$attribute, implode(',', $parameters)], $message); | |
| }); |
| 104.16.119.221 boards.4chan.org | |
| 104.16.59.249 i.4cdn.org |
| <?php | |
| // Make sure Carbon is available | |
| function renderCalendar($dt) { | |
| // Make sure to start at the beginnen of the month | |
| $dt->startOfMonth(); | |
| // Set the headings (weeknumber + weekdays) | |
| $headings = ['Weeknumber', 'Mondag', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saterday', 'Sunday']; |
| <?php | |
| namespace Valet\Drivers\Custom; | |
| use Valet\Drivers\LaravelValetDriver; | |
| class MoodleValetDriver extends LaravelValetDriver | |
| { | |
| protected $isStyleUri = false; | |
| protected $baseUri = ''; | |
| protected $moodleStaticScripts = [ |