Skip to content

Commit 2c4b30e

Browse files
author
Mostafa Kamal
committed
laravel model
1 parent c03cca6 commit 2c4b30e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
---
2+
description: Laravel Model
3+
keywords: laravel, model
4+
title: Laravel Model
5+
toc_max: 4
6+
---
17

8+
## insert
9+
10+
* save()
11+
* create([])
12+
* firstOrCreate([])
13+
14+
## update
15+
16+
* update([])
17+
* updateOrCreate([condition],[desired attribute])
18+
19+
## delete
20+
21+
* delete()
22+
* destroy(1) / destroy(1,2,3) / destroy([1,2,3])
23+
* forceDelete()
24+
25+
## resource
226

327
* [model laravel doc](https://laravel.com/docs/5.7/eloquent)

0 commit comments

Comments
 (0)