Created
January 7, 2020 02:07
-
-
Save zhanang19/f82705a9cd75f89147c7b986b6e945fb 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 | |
namespace App; | |
use Illuminate\Database\Eloquent\Model; | |
class User extends Model | |
{ | |
/** | |
* Get the user's first name. | |
* | |
* @param string $value | |
* @return string | |
*/ | |
public function getFirstNameAttribute($value) | |
{ | |
return strtoupper($value); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment