Support the ongoing development of Laravel.io →
Configuration Eloquent Architecture
Last updated 5 months ago.
0
Solution

I think your User class is in Calendar namespace.

Try put use \User at top and see if it works.

<?php namespace Calendar;

use \User;

class Calendar {
  ...
}

Last updated 7 years ago.
0

No error = perfect. 10x for the logic, I knew it was something, that I was missing.

I've added additional use \Auth; under.

0

Sign in to participate in this thread!

Cloudways

Your banner here too?

goranata goranata Joined 12 Mar 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.