O objetivo deste teste é validar expressamente o seu conhecimento.
- PHP 8
- Laravel 10.x
- TALL Stack (Livewire 3)
| <?php | |
| class Users extends Fluent | |
| { | |
| // | |
| } | |
| $users = new Users(); | |
| $users->send(); |
| <?php | |
| class Users | |
| { | |
| private Carbon $carbon; | |
| public function __construct(Carbon $carbon) | |
| { | |
| $this->carbon = $carbon; | |
| } |
| const csrf = `${pm.environment.get('URL')}/sanctum/csrf-cookie`; | |
| pm.sendRequest(csrf, (error, response) => { | |
| pm.expect(error).to.equal(null); | |
| pm.expect(response).to.have.property('code', 204); | |
| pm.expect(response).to.have.property('status', 'No Content'); | |
| const xsrfCookie = response.headers.find(header => header.key.toLowerCase() === 'set-cookie' && header.value.includes('XSRF-TOKEN')); | |
| if (xsrfCookie) { |
| document | |
| .querySelectorAll('button[aria-label^="Aceitar o convite de"]') | |
| .forEach((btn, i) => setTimeout(() => btn.click(), i + 500)); |
| { | |
| "preset": "psr12", | |
| "rules": { | |
| "group_import": true, | |
| "single_import_per_statement": false, | |
| "no_unused_imports": true, | |
| "array_indentation": true, | |
| "array_syntax": { | |
| "syntax": "short" | |
| }, |
| [xdebug] | |
| zend_extension=xdebug | |
| xdebug.mode=debug | |
| xdebug.start_with_request=yes | |
| xdebug.remote_connect_back=1 | |
| xdebug.cli_color=1 | |
| xdebug.filename_format=%n |
| <?php | |
| use PhpCsFixer\Config; | |
| use PhpCsFixer\Finder; | |
| $rules = [ | |
| '@PSR12' => true, | |
| 'align_multiline_comment' => false, | |
| 'array_indentation' => true, | |
| 'array_syntax' => ['syntax' => 'short'], |