Skip to content

Commit 5bf420f

Browse files
authored
Merge pull request #15 from Evdigi-INA/dev
Dev
2 parents fb12db0 + 48f9aea commit 5bf420f

74 files changed

Lines changed: 653 additions & 342 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 94 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,151 +1,174 @@
11

2+
23
https://user-images.githubusercontent.com/62506582/200510814-9b2ca922-bd35-4e02-a236-047c4b7b118d.mp4
34

4-
<p align="center">Laravel starter app and CRUD generator.</p>
5-
6-
<div align="center">
7-
8-
[![All Contributors](https://img.shields.io/github/contributors/Zzzul/generator-src?style=flat-square)](https://github.com/Zzzul/generator/graphs/contributors)
9-
![GitHub last commit](https://img.shields.io/github/last-commit/Zzzul/generator-src.svg?style=flat-square)
10-
[![License](https://img.shields.io/github/license/Zzzul/generator-src.svg?style=flat-square)](LICENSE)
11-
[![Issues](https://img.shields.io/github/issues/Zzzul/generator-src?style=flat-square)](Issues)
12-
[![Forks](https://img.shields.io/github/forks/Zzzul/generator-src?style=flat-square)](Forks)
13-
[![Stars](https://img.shields.io/github/stars/Zzzul/generator-src?style=flat-square)](Stars)
14-
5+
<p align="center">Laravel starter app and CRUD generator.</p>
6+
7+
<div align="center">
8+
9+
[![All Contributors](https://img.shields.io/github/contributors/Evdigi-INA/generator?style=flat-square)](https://github.com/Evdigi-INA/generator/graphs/contributors)
10+
![GitHub last commit](https://img.shields.io/github/last-commit/Evdigi-INA/generator.svg?style=flat-square)
11+
[![License](https://img.shields.io/github/license/Evdigi-INA/generator.svg?style=flat-square)](LICENSE)
12+
[![Issues](https://img.shields.io/github/issues/Evdigi-INA/generator?style=flat-square)](Issues)
13+
[![Forks](https://img.shields.io/github/forks/Evdigi-INA/generator?style=flat-square)](Forks)
14+
[![Stars](https://img.shields.io/github/stars/Evdigi-INA/generator?style=flat-square)](Stars)
15+
1516
</div>
1617

1718
## Table of Contents
19+
1820
1. [Requirements](#requirements)
1921
2. [Setup](#setup)
20-
3. [What's inside?](#what-inside)
22+
3. [What's inside?](#what-inside)
2123
4. [Features](#features)
2224
5. [License](#license)
23-
6. [Support](#support)
25+
6. [Contributors](#contributors)
2426

2527
## Requirements
28+
2629
- [PHP ^8.1](https://www.php.net/releases/8.1/en.php)
2730
- [Laravel ^9.x](https://laravel.com/)
2831

32+
2933
## Setup
34+
3035
Installation
36+
3137
```sh
32-
composer require zzzul/generator --dev
38+
39+
composer require evdigiina/generator --dev
40+
3341
```
3442

3543
#### For this package, there are two variations: [Simpe Version](#simple-version) and [Full Version](#full-version)
36-
<h3 id="simple-version">Simple Version</h3>
3744

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>
4146

47+
![image](https://user-images.githubusercontent.com/62506582/219941448-94c46fca-6a9f-422b-bdd1-29f642c3ccf6.png)
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+
4254
#### Usage
55+
4356
Publish assets
44-
```sh
45-
php artisan generator:publish simple
57+
58+
```sh
59+
php artisan generator:install simple
4660
```
4761

48-
Register the provider in `config/app.php`
62+
Register the provider in `config/app.php`
4963
```php
50-
/*
51-
* Package Service Providers...
52-
*/
53-
App\Providers\ViewComposerServiceProvider::class,
64+
/*
65+
* Package Service Providers...
66+
*/
67+
App\Providers\ViewComposerServiceProvider::class,
5468
```
55-
69+
5670
Then goes to ```/simple-generators/create/```
57-
71+
5872
<hr>
5973

60-
<h3 id="full-version">Full Version</h3>
74+
<h3 id="full-version">Full Version</h3>
75+
76+
![image](https://user-images.githubusercontent.com/62506582/219942571-63c42764-1702-4df3-b165-4217e5558713.png)
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).
6179

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)
6880
##### [View all features](#full-features).
6981

82+
7083
> 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.
7184
85+
7286
#### Install [Laravel Fortify](https://laravel.com/docs/9.x/fortify) & [Spatie Permission](https://spatie.be/docs/laravel-permission/v5/installation-laravel)
87+
7388
```sh
7489
composer require laravel/fortify spatie/laravel-permission
7590
```
91+
7692
#### Usage
93+
7794
Publish assets
95+
7896
```sh
79-
php artisan generator:publish all
97+
php artisan generator:install full
8098
```
99+
81100
> Warning! Be careful with this command, it will overwrite several files, don't run it multiple times.
101+
82102

83103
Register the provider in `config/app.php`
84104
```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,
91111
```
112+
92113

93114
Run migration and seeder
115+
94116
```sh
95117
php artisan migrate --seed
96-
```
118+
```
119+
97120
Then goes to ```/generators/create```
98121

99122
Account
100123
- Email: admin@example.com
101124
- Password: password
102-
103-
<h2 id="what-inside">What's inside?</h2>
125+
126+
<h2 id="what-inside">What's inside?</h2>
104127

105128
#### Simple Version
129+
106130
- [Yajra datatable - ^10.x](https://yajrabox.com/docs/laravel-datatables/master/installation)
107131
- [Intervention Image - ^2.x](https://image.intervention.io/v2)
108132
- [Bootstrap - ^5.x](https://getbootstrap.com/)
109-
133+
110134
#### Full Version
135+
111136
- [Yajra datatable - ^10.x](https://yajrabox.com/docs/laravel-datatables/master/installation)
112137
- [Intervention Image - ^2.x](https://image.intervention.io/v2)
113138
- [Laravel Forify - ^1.x](https://laravel.com/docs/9.x/fortify)
114139
- [Spatie permission - ^5.x](https://github.com/spatie/laravel-permission)
115140
- [Mazer template - ^2.x](https://github.com/zuramai/mazer/)
116141

117142
## 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+
121157
- [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
134158
- [x] CRUD User
135159
- [x] Roles and permissions ([Spatie Permission](https://spatie.be/docs/laravel-permission/v5/introduction))
136160
- [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
142166

143167
## License
144168
[MIT License](./LICENSE)
169+
145170

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>

composer.json

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
{
2-
"name": "zzzul/generator",
2+
"name": "evdigiina/generator",
33
"description": "Laravel starter app & simple crud generator",
44
"type": "library",
55
"license": "MIT",
6-
"keywords": ["package", "laravel", "starter-app", "crud-generator"],
6+
"keywords": [
7+
"package",
8+
"laravel",
9+
"starter-app",
10+
"crud-generator"
11+
],
712
"autoload": {
813
"psr-4": {
9-
"Zzzul\\Generator\\": "src/",
14+
"EvdigiIna\\Generator\\": "src/",
1015
"Tests\\": "tests/"
1116
},
1217
"files": [
@@ -17,7 +22,7 @@
1722
{
1823
"name": "Mohammad Zulfahmi",
1924
"email": "mohammad.zulfahmi03@gmail.com",
20-
"homepage" : "https://github.com/Zzzul/generator-src"
25+
"homepage": "https://github.com/Evdigi-INA/generator"
2126
}
2227
],
2328
"require": {
@@ -38,14 +43,14 @@
3843
"extra": {
3944
"laravel": {
4045
"providers": [
41-
"Zzzul\\Generator\\Providers\\GeneratorServiceProvider",
46+
"EvdigiIna\\Generator\\Providers\\GeneratorServiceProvider",
4247
"Yajra\\DataTables\\DataTablesServiceProvider",
4348
"Intervention\\Image\\ImageServiceProvider"
4449
],
4550
"aliases": {
46-
"DataTables": "Yajra\\DataTables\\Facades\\DataTables",
47-
"Image": "Intervention\\Image\\Facades\\Image"
51+
"DataTables": "Yajra\\DataTables\\Facades\\DataTables",
52+
"Image": "Intervention\\Image\\Facades\\Image"
4853
}
4954
}
5055
}
51-
}
56+
}

0 commit comments

Comments
 (0)