Install build tools:
brew install autoconf automake libtool
Then install PECL:
| <?php | |
| use PhpCsFixer\Config; | |
| use PhpCsFixer\Finder; | |
| $rules = [ | |
| 'array_indentation' => true, | |
| 'array_syntax' => ['syntax' => 'short'], | |
| 'binary_operator_spaces' => [ | |
| 'default' => 'single_space', |
Install build tools:
brew install autoconf automake libtool
Then install PECL:
Make sure there is at least one file in it (even just the README.md)
ssh-keygen -t rsa -C "[email protected]"
| use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken; | |
| // Manually authenticate user in controller | |
| $token = new UsernamePasswordToken($user, null, 'main', $user->getRoles()); | |
| $this->get('security.token_storage')->setToken($token); | |
| $this->get('session')->set('_security_main', serialize($token)); |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
| 1. Make Home Directory for SShH keys. | |
| c://users/UserName/.SSH (for Windows 7) | |
| 2. Generate SSH key by command: | |
| ssh-keygen -t rsa -C "[email protected]" | |
| # Creates a new ssh key, using the provided email as a label | |
| Generating public/private rsa key pair. | |
| It's created a pair of keys - private and public in home dir .SSH | |
| C:\Users\SuvorovAG\.ssh\id_rsa |
| <?php namespace App\Http\Middleware; | |
| use Closure; | |
| use Illuminate\Http\Response; | |
| class DBTransaction | |
| { | |
| /** | |
| * Handle an incoming request. | |
| * |