|
1 | 1 |
|
| 2 | + |
2 | 3 | https://user-images.githubusercontent.com/62506582/200510814-9b2ca922-bd35-4e02-a236-047c4b7b118d.mp4 |
3 | 4 |
|
4 | | -<p align="center">Laravel starter app and CRUD generator.</p> |
5 | | - |
6 | | -<div align="center"> |
7 | | - |
8 | | -[](https://github.com/Zzzul/generator/graphs/contributors) |
9 | | - |
10 | | -[](LICENSE) |
11 | | -[](Issues) |
12 | | -[](Forks) |
13 | | -[](Stars) |
14 | | - |
| 5 | +<p align="center">Laravel starter app and CRUD generator.</p> |
| 6 | + |
| 7 | +<div align="center"> |
| 8 | + |
| 9 | +[](https://github.com/Evdigi-INA/generator/graphs/contributors) |
| 10 | + |
| 11 | +[](LICENSE) |
| 12 | +[](Issues) |
| 13 | +[](Forks) |
| 14 | +[](Stars) |
| 15 | + |
15 | 16 | </div> |
16 | 17 |
|
17 | 18 | ## Table of Contents |
| 19 | + |
18 | 20 | 1. [Requirements](#requirements) |
19 | 21 | 2. [Setup](#setup) |
20 | | -3. [What's inside?](#what-inside) |
| 22 | +3. [What's inside?](#what-inside) |
21 | 23 | 4. [Features](#features) |
22 | 24 | 5. [License](#license) |
23 | | -6. [Support](#support) |
| 25 | +6. [Contributors](#contributors) |
24 | 26 |
|
25 | 27 | ## Requirements |
| 28 | + |
26 | 29 | - [PHP ^8.1](https://www.php.net/releases/8.1/en.php) |
27 | 30 | - [Laravel ^9.x](https://laravel.com/) |
28 | 31 |
|
| 32 | + |
29 | 33 | ## Setup |
| 34 | + |
30 | 35 | Installation |
| 36 | + |
31 | 37 | ```sh |
32 | | -composer require zzzul/generator --dev |
| 38 | + |
| 39 | +composer require evdigiina/generator --dev |
| 40 | + |
33 | 41 | ``` |
34 | 42 |
|
35 | 43 | #### For this package, there are two variations: [Simpe Version](#simple-version) and [Full Version](#full-version) |
36 | | -<h3 id="simple-version">Simple Version</h3> |
37 | 44 |
|
38 | | -Only the generator, included: [Yajra Datatables](https://yajrabox.com/docs/laravel-datatables/master/installation), |
39 | | -[Intervention Image](https://image.intervention.io/v2), and [Bootstrap 5](https://getbootstrap.com/) |
40 | | -##### [View all features](#simple-features) |
| 45 | +<h3 id="simple-version">Simple Version</h3> |
41 | 46 |
|
| 47 | +  |
| 48 | + |
| 49 | + |
| 50 | +Only the generator, includes: [Yajra Datatables](https://yajrabox.com/docs/laravel-datatables/master/installation), [Intervention Image](https://image.intervention.io/v2), and [Bootstrap 5](https://getbootstrap.com/). |
| 51 | + |
| 52 | +##### [View all features](#simple-features) |
| 53 | + |
42 | 54 | #### Usage |
| 55 | + |
43 | 56 | Publish assets |
44 | | - ```sh |
45 | | -php artisan generator:publish simple |
| 57 | + |
| 58 | +```sh |
| 59 | +php artisan generator:install simple |
46 | 60 | ``` |
47 | 61 |
|
48 | | -Register the provider in `config/app.php` |
| 62 | + Register the provider in `config/app.php` |
49 | 63 | ```php |
50 | | - /* |
51 | | - * Package Service Providers... |
52 | | - */ |
53 | | - App\Providers\ViewComposerServiceProvider::class, |
| 64 | +/* |
| 65 | +* Package Service Providers... |
| 66 | +*/ |
| 67 | +App\Providers\ViewComposerServiceProvider::class, |
54 | 68 | ``` |
55 | | - |
| 69 | + |
56 | 70 | Then goes to ```/simple-generators/create/``` |
57 | | - |
| 71 | + |
58 | 72 | <hr> |
59 | 73 |
|
60 | | -<h3 id="full-version">Full Version</h3> |
| 74 | +<h3 id="full-version">Full Version</h3> |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | +The generator + starter app, includes: [Yajra Datatables](https://yajrabox.com/docs/laravel-datatables/master/installation), [Intervention Image](https://image.intervention.io/v2), [Laravel Fortify](https://laravel.com/docs/9.x/fortify), [Spatie Permission](https://spatie.be/docs/laravel-permission/v5/installation-laravel), and [Mazer Template](https://github.com/zuramai/mazer). |
61 | 79 |
|
62 | | -The generator + starter app. included: |
63 | | -[Yajra Datatables](https://yajrabox.com/docs/laravel-datatables/master/installation), |
64 | | -[Intervention Image](https://image.intervention.io/v2), |
65 | | -[Laravel Fortify](https://laravel.com/docs/9.x/fortify), |
66 | | -[Spatie Permission](https://spatie.be/docs/laravel-permission/v5/installation-laravel), and |
67 | | -[Mazer Template](https://github.com/zuramai/mazer) |
68 | 80 | ##### [View all features](#full-features). |
69 | 81 |
|
| 82 | + |
70 | 83 | > Installing this package after a brand-new Laravel installation is necessary if you want to use the full version of it. because several files will be overwritten. |
71 | 84 |
|
| 85 | + |
72 | 86 | #### Install [Laravel Fortify](https://laravel.com/docs/9.x/fortify) & [Spatie Permission](https://spatie.be/docs/laravel-permission/v5/installation-laravel) |
| 87 | + |
73 | 88 | ```sh |
74 | 89 | composer require laravel/fortify spatie/laravel-permission |
75 | 90 | ``` |
| 91 | + |
76 | 92 | #### Usage |
| 93 | + |
77 | 94 | Publish assets |
| 95 | + |
78 | 96 | ```sh |
79 | | -php artisan generator:publish all |
| 97 | +php artisan generator:install full |
80 | 98 | ``` |
| 99 | + |
81 | 100 | > Warning! Be careful with this command, it will overwrite several files, don't run it multiple times. |
| 101 | + |
82 | 102 |
|
83 | 103 | Register the provider in `config/app.php` |
84 | 104 | ```php |
85 | | - /* |
86 | | - * Package Service Providers... |
87 | | - */ |
88 | | - App\Providers\FortifyServiceProvider::class, |
89 | | - Spatie\Permission\PermissionServiceProvider::class, |
90 | | - App\Providers\ViewComposerServiceProvider::class, |
| 105 | +/* |
| 106 | +* Package Service Providers... |
| 107 | +*/ |
| 108 | +App\Providers\FortifyServiceProvider::class, |
| 109 | +Spatie\Permission\PermissionServiceProvider::class, |
| 110 | +App\Providers\ViewComposerServiceProvider::class, |
91 | 111 | ``` |
| 112 | + |
92 | 113 |
|
93 | 114 | Run migration and seeder |
| 115 | + |
94 | 116 | ```sh |
95 | 117 | php artisan migrate --seed |
96 | | -``` |
| 118 | +``` |
| 119 | + |
97 | 120 | Then goes to ```/generators/create``` |
98 | 121 |
|
99 | 122 | Account |
100 | 123 | - Email: admin@example.com |
101 | 124 | - Password: password |
102 | | - |
103 | | -<h2 id="what-inside">What's inside?</h2> |
| 125 | + |
| 126 | +<h2 id="what-inside">What's inside?</h2> |
104 | 127 |
|
105 | 128 | #### Simple Version |
| 129 | + |
106 | 130 | - [Yajra datatable - ^10.x](https://yajrabox.com/docs/laravel-datatables/master/installation) |
107 | 131 | - [Intervention Image - ^2.x](https://image.intervention.io/v2) |
108 | 132 | - [Bootstrap - ^5.x](https://getbootstrap.com/) |
109 | | - |
| 133 | + |
110 | 134 | #### Full Version |
| 135 | + |
111 | 136 | - [Yajra datatable - ^10.x](https://yajrabox.com/docs/laravel-datatables/master/installation) |
112 | 137 | - [Intervention Image - ^2.x](https://image.intervention.io/v2) |
113 | 138 | - [Laravel Forify - ^1.x](https://laravel.com/docs/9.x/fortify) |
114 | 139 | - [Spatie permission - ^5.x](https://github.com/spatie/laravel-permission) |
115 | 140 | - [Mazer template - ^2.x](https://github.com/zuramai/mazer/) |
116 | 141 |
|
117 | 142 | ## Features |
118 | | - |
119 | | -<h3 id="simple-features">Simple Version</h3> |
120 | | - |
| 143 | + |
| 144 | +<h3 id="simple-features">Simple Version</h3> |
| 145 | + |
| 146 | +- [x] CRUD Generator |
| 147 | + - Support more than 15 [column types of migrations](https://laravel.com/docs/9.x/migrations#available-column-types), like string, char, date, year, etc. |
| 148 | + - Datatables ([Yajra Datatables](https://github.com/yajra/laravel-datatables)) |
| 149 | + - BelongsTo relation |
| 150 | + - Model casting |
| 151 | + - Image upload ([Intervention Image](https://image.intervention.io/v2)) |
| 152 | + - Support [HTML 5 Input](https://developer.mozilla.org/en-US/docs/Learn/Forms/HTML5_input_types) |
| 153 | + - Request validations supported: required, in, image, min, max, string, email, number, date, exists, nullable, unique, comfirmed |
| 154 | + |
| 155 | +<h3 id="full-features">Full Version</h3> |
| 156 | + |
121 | 157 | - [x] CRUD Generator |
122 | | - - Support more than 15 [column types of migrations](https://laravel.com/docs/9.x/migrations#available-column-types), like string, char, date, year, etc. |
123 | | - - Datatables ([Yajra Datatables](https://github.com/yajra/laravel-datatables)) |
124 | | - - BelongsTo relation |
125 | | - - Model casting |
126 | | - - Image upload ([Intervention Image](https://image.intervention.io/v2)) |
127 | | - - Support [HTML 5 Input](https://developer.mozilla.org/en-US/docs/Learn/Forms/HTML5_input_types) |
128 | | - - Request validations supported: |
129 | | - - required, in, image, min, max, string, email, number, date, exists, nullable, unique, comfirmed |
130 | | - |
131 | | -<h3 id="full-features">Full Version</h3> |
132 | | - |
133 | | -- [x] CRUD Generator |
134 | 158 | - [x] CRUD User |
135 | 159 | - [x] Roles and permissions ([Spatie Permission](https://spatie.be/docs/laravel-permission/v5/introduction)) |
136 | 160 | - [x] Authentication ([Laravel Fortify](https://laravel.com/docs/9.x/fortify)) |
137 | | - - Login |
138 | | - - Register |
139 | | - - Forgot Password |
140 | | - - 2FA Authentication |
141 | | - - Update profile information |
| 161 | + - Login |
| 162 | + - Register |
| 163 | + - Forgot Password |
| 164 | + - 2FA Authentication |
| 165 | + - Update profile information |
142 | 166 |
|
143 | 167 | ## License |
144 | 168 | [MIT License](./LICENSE) |
| 169 | + |
145 | 170 |
|
146 | | -## Support |
147 | | -You can support me at [Github Sponsors](https://github.com/sponsors/Zzzul), [Ko-fi](https://ko-fi.com/mzulfahmi) or [Saweria](https://saweria.co/zzzul) |
148 | | - |
149 | | -<a href="https://www.buymeacoffee.com/mzulfahmi" target="_blank"> |
150 | | -<img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;"> |
151 | | -</a> |
| 171 | +## Contributors |
| 172 | +<a href="https://github.com/Evdigi-INA/generator/graphs/contributors"> |
| 173 | +<img src="https://contrib.rocks/image?repo=Evdigi-INA/generator&anon=1&columns=10" /> |
| 174 | +</a> |
0 commit comments