Support the ongoing development of Laravel.io →
Configuration Eloquent Architecture
Last updated 2 years 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 9 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!

Eventy

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?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.