Skip to content

Commit bd1ff24

Browse files
authored
Merge pull request #18 from regnerisch/version/2.4.2
add guarded to model stub
2 parents 94cae71 + 5bced53 commit bd1ff24

File tree

3 files changed

+62
-58
lines changed

3 files changed

+62
-58
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "regnerisch/laravel-beyond",
33
"type": "library",
44
"license": "ISC",
5-
"version": "2.4.1",
5+
"version": "2.4.2",
66
"autoload": {
77
"psr-4": {
88
"Regnerisch\\LaravelBeyond\\": "src/"

composer.lock

Lines changed: 57 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

stubs/model.stub

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@ use Illuminate\Database\Eloquent\Model;
88
class {{ className }} extends Model
99
{
1010
use HasFactory;
11+
12+
protected $guarded = [
13+
'id',
14+
];
1115
}

0 commit comments

Comments
 (0)