07 Mar 2017
Folders should be normal "755" and files, "644"
sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache
Snippets
```php
// dates
Carbon::parse($createdAt)->addSeconds($this->expires)->isPast(); // check if expired
// token
$token = app('auth.password.broker')->createToken($user); // create token manually
// optional
optional($user)->name
```