Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Commit c8f7a03

Browse files
committed
feat: update default models
1 parent 064235e commit c8f7a03

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

app/models/Model.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
<?php
2+
23
namespace App\Models;
34

45
/**
56
* Base Model
7+
* ---
8+
* The base model provides a space to set atrributes
9+
* that are common to all models
610
*/
7-
class Model extends \Leaf\Model {}
11+
class Model extends \Leaf\Model
12+
{
13+
}

app/models/User.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,14 @@ class User extends Model
66
{
77
/**
88
* The attributes that are mass assignable.
9-
*
109
* @var array
1110
*/
1211
protected $fillable = [
1312
'fullname', 'email', 'password',
1413
];
1514

1615
/**
17-
* The attributes that should be hidden for arrays.
18-
*
16+
* The attributes that should be hidden for serialization.
1917
* @var array
2018
*/
2119
protected $hidden = [
@@ -24,14 +22,12 @@ class User extends Model
2422

2523
/**
2624
* Indicates if the model should be timestamped.
27-
*
2825
* @var bool
2926
*/
3027
public $timestamps = true;
3128

3229
/**
3330
* The attributes that should be cast to native types.
34-
*
3531
* @var array
3632
*/
3733
protected $casts = [

0 commit comments

Comments
 (0)