chore: refactor user model (#3564)
This commit is contained in:
@@ -6,6 +6,7 @@ use App\Helpers\DateHelper;
|
||||
use App\Models\Journal\Day;
|
||||
use Illuminate\Http\Request;
|
||||
use App\Models\Journal\Entry;
|
||||
use App\Helpers\JournalHelper;
|
||||
use App\Models\Journal\JournalEntry;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
@@ -121,7 +122,7 @@ class JournalController extends Controller
|
||||
*/
|
||||
public function hasRated()
|
||||
{
|
||||
if (auth()->user()->hasAlreadyRatedToday()) {
|
||||
if (JournalHelper::hasAlreadyRatedToday(auth()->user())) {
|
||||
return 'true';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user