Skip to content

Commit

Permalink
Create user.php
Browse files Browse the repository at this point in the history
  • Loading branch information
nasrulhazim authored Oct 2, 2024
1 parent e319656 commit 6cab7f8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions support/user.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

use App\Models\User;

if (! function_exists('user')) {
function user(): ?User
{
return auth()->user();
}
}

0 comments on commit 6cab7f8

Please sign in to comment.