Created
July 22, 2021 03:46
-
-
Save EricMcWinNer/a31cabec2bee5f0933dd8cd114603259 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\Models; | |
use Illuminate\Database\Eloquent\Model; | |
class User extends Model | |
{ | |
/** | |
* The attributes that should be cast. | |
* | |
* @var array | |
*/ | |
protected $casts = [ | |
'posts' => 'boolean', | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment