Zlatoslav Desyatnikov

Results 44 comments of Zlatoslav Desyatnikov

Facades must die. If you use facades (e.g. `Log` or `DB`) you cannot write clear Unit test. Always use DI and then you may pass mocks into class you testing....

@robsontenorio Yeap, I replaced it with the native Laravel functionality.

Yeap, I can. I'll do it tomorrow.

> Ok, so help me here: why should one want to change the filename of composer.json to somethingElse.json? I wrote about this in the first message: it will be useful...

Same. This is doesn't work with `[email protected]`.

There is my code: ``` php $data_array = array( array( "module" => "groups", "method" => "access", "level" => 1, "user_id" => 4 ), array( "module" => "groups", "method" => "add",...

PHP 8.1 has builtin Enums. Why are you using this?..

Right. It should be in the "database/factories" and namespace should be detected via PSR4 mapping in the composer.json