Toshihiro Kanai

Results 8 comments of Toshihiro Kanai

Hey @szepeviktor thanks for your reply! Unfortunately I'm not quite sure what you meant; since the method is specified to return `mixed` by Laravel itself, I thought the problem comes...

Hello @canvural , I have checked with fresh new laravel install, and I did confirmed `auth()->user()` can return non-default one. I set up a repository for you to easily see...

Just added a case for `FormRequest` as well: https://github.com/mirucon/laravel_playground/commit/c75b6a723d0fe528fed36dc74818143364e01388 I can't tell you how it works because it's pretty hard to find out the internal behaviour of this; but at...

Hey @canvural, have you seen the example above? If you need anything else to fix the problem, please let me know so I can set it up for you.

Hi @szepeviktor thanks for your response! I replaced `empty()` with `count()` method, I hope this is what you mean.

@canvural I used `actingAs` just for convenience. It definitely changes when not using it as well. I have quite many codes relying on this and they are working in production.

I still have to override the variable with the `@var` comment. It's quite sad the problem has been left unresolved just because of the maintainer's misunderstanding :(

This issue was resolved by https://github.com/larastan/larastan/pull/1848, and released in [2.9.2](https://github.com/larastan/larastan/releases/tag/v2.9.2)