Last active
February 6, 2016 01:08
-
-
Save simonhamp/795e8d7c3c36fcf0e95e to your computer and use it in GitHub Desktop.
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 | |
trait AuthenticatesUsers { | |
public function getLogin() { | |
if (view()->exists('auth.authenticate')) { | |
return view('auth.authenticate'); | |
} | |
return view('auth.login'); | |
} | |
} |
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 | |
class Foo { | |
use AuthenticatesUsers; | |
public function getLogin() { | |
// Do my stuff | |
parent::getLogin(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment