Code improvements
This commit is contained in:
@@ -16,7 +16,7 @@ final class InertiaProvider
|
||||
private ?User $user;
|
||||
|
||||
public function __construct(string $vueFile, array $props) {
|
||||
$this->user = auth()->user();
|
||||
$this->user = currentUser();
|
||||
$this->vueFile = $vueFile;
|
||||
$this->props = $props;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user