You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-22Lines changed: 28 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,25 +1,31 @@
1
1
# Crud Generator Laravel 9 and 10 (your time saver)
2
2
3
-
Crud Generator Laravel is a package that you can integrate in your Laravel to create a REAL CRUD :
4
-
-**controller** with all the code already written
5
-
-**views** (index, create, edit, show)
6
-
-**model** with relationships
7
-
-**request** file with rules
8
-
-**migration** file
3
+
Crud Generator Laravel is a package designed to simplify the creation of a complete CRUD system in your Laravel project. It includes:
4
+
5
+
-**Controller** with all the code already written
6
+
-**Views** (index, create, edit, show)
7
+
-**Model** with relationships
8
+
-**Request** file with validation rules
9
+
-**Migration** file
9
10
10
11
And since 1.9.2, a complete **REST API** !
11
12
13
+
[ NEW ][Your voice matters! Participate in the polls and vote for future features and improvements](https://github.com/misterdebug/crud-generator-laravel/discussions/categories/polls)
14
+
15
+
12
16
## Installation
13
17
14
-
1\. Run composer command:
18
+
1\. Run the following composer command:
15
19
16
-
``` composer require mrdebug/crudgen --dev```
20
+
``` composer require mrdebug/crudgen --dev```
17
21
18
22
2\. If you don't use Laravel Collective Form package in your project, install it:
19
23
20
-
``` composer require laravelcollective/html ``` <sub>not required if you don't need views</sub>
24
+
``` composer require laravelcollective/html ```
25
+
26
+
<sub>(Note: This step is not required if you don't need views.)</sub>
21
27
22
-
3\. Publish config file and default-theme directory for views
28
+
3\. Publish the configuration file and the default-theme directory for views:
@@ -28,37 +34,37 @@ And since 1.9.2, a complete **REST API** !
28
34
29
35
### Create CRUD (or REST API)
30
36
31
-
Let's make a real life example : Build a blog
37
+
Let's illustrate with a real life example : Building a blog
32
38
33
39
A `Post` has many (hasMany) `Comment` and belongs to many (belongsToMany) `Tag`
34
40
35
41
A `Post` can have a `title` and a `content` fields
36
42
37
43
Let's do this 🙂
38
44
39
-
<small>You need a REST API instead of a CRUD ? [Read this wiki](https://github.com/misterdebug/crud-generator-laravel/wiki/Make-a-complete-REST-API-instead-of-CRUD)</small>
45
+
<sub>If you need a REST API instead of CRUD, [read this wiki](https://github.com/misterdebug/crud-generator-laravel/wiki/Make-a-complete-REST-API-instead-of-CRUD)</sub>
You can `edit` and `delete`too your new post. And a `show` page is created too 🙂
100
+
You can `edit` and `delete` your new post. And a `show` page is created too 🙂
95
101
96
102
### Request
97
103
@@ -100,7 +106,7 @@ A request file is created in your **app/Http/Requests** directory. By default, a
100
106
### Views
101
107
102
108
A views directory is created in your **resources/views** directory.
103
-
<sub>You want to customize generated views ?[https://github.com/misterdebug/crud-generator-laravel/wiki/Custom-your-views](https://github.com/misterdebug/crud-generator-laravel/wiki/Custom-your-views)</sub>
109
+
<sub>If you want to customize generated views :[https://github.com/misterdebug/crud-generator-laravel/wiki/Custom-your-views](https://github.com/misterdebug/crud-generator-laravel/wiki/Custom-your-views)</sub>
104
110
105
111
You can create views independently of the CRUD generator with :
0 commit comments