Skip to content

Instantly share code, notes, and snippets.

@Ardakilic
Created August 12, 2013 08:36
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ardakilic/6209125 to your computer and use it in GitHub Desktop.
Save Ardakilic/6209125 to your computer and use it in GitHub Desktop.
Laravel 4 User Class Extending Sentry If you use Sentry2 like me with Laravel 4, When using User model, you will get some errors. To prevent these, alter your user.php like this:
<?php
//use Illuminate\Auth\UserInterface;
//use Illuminate\Auth\Reminders\RemindableInterface;
class User extends Cartalyst\Sentry\Users\Eloquent\User {
//your shiny code comes here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment