create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
#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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "spakkionu/validate", | |
"description": "Validation Test", | |
"require": { | |
"illuminate/validation": "~4.2.9" | |
}, | |
"license": "MIT", | |
"authors": [ | |
{ | |
"name": "Jonathan Bernardi", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
104.16.119.221 boards.4chan.org | |
104.16.59.249 i.4cdn.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return array( | |
'redis' => array( | |
'cluster' => true, | |
'default' => array( | |
'scheme' => 'unix', | |
'path' => '/tmp/redis.sock' | |
) | |
); |