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 {
...
}
No error = perfect. 10x for the logic, I knew it was something, that I was missing.
I've added additional use \Auth; under.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community