Created
October 23, 2015 18:14
-
-
Save tanftw/866a7acf606ed6046ab3 to your computer and use it in GitHub Desktop.
Student extends User use StudentScope
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App; | |
class Student extends User | |
{ | |
public static function boot() | |
{ | |
static::addGlobalScope(new StudentScope); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment