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
/* Laravel Helpers */ | |
class Helpers | |
{ | |
public static function setActive($paths = [], $active = 'active') | |
{ | |
$isActive = false; | |
foreach ($paths as $path) { |
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
vagrantfile: | |
target: local | |
vm: | |
box: puphpet/ubuntu1404-x64 | |
box_url: puphpet/ubuntu1404-x64 | |
hostname: xxxxxxxxx | |
memory: '2048' | |
cpus: '2' | |
chosen_provider: parallels | |
network: |
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
function generateSlug($value) | |
{ | |
$slug = \Str::slug($value); | |
$slugs = $this->whereRaw("slug REGEXP ? ", ["^{$slug}(-[0-9]*)?$"]); | |
$count = $slugs->count(); | |
if ($count === 0) { | |
return $slug; |
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
<VirtualHost *> | |
ServerName auth.dev | |
DocumentRoot "/var/www/auth" | |
ProxyPassMatch ^(/.*\.php)$ fcgi://127.0.0.1:9000/var/www/auth | |
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 | |
</VirtualHost> |
NewerOlder