This file contains hidden or 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
| Blade::extend(function($value) { | |
| return preg_replace('/\@set(.+)/', '<?php ${1} ?>', $value); | |
| }); | |
| // Example | |
| // @set $var = 'foo' |
This file contains hidden or 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 namespace App\Http\Middleware; | |
| use Closure; | |
| use Illuminate\Support\Facades\Auth; | |
| use Illuminate\Session\Store; | |
| class SessionTimeout { | |
| protected $session; | |
| protected $timeout=900; | |
| public function __construct(Store $session){ | |
| $this->session=$session; | |
| } |
This file contains hidden or 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
| setxkbmap -layout us -variant intl |
OlderNewer