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