https://github.com/enescakir/laravel-helper
My Laravel Helpers for New Projects
https://github.com/enescakir/laravel-helper
Last synced: 2 months ago
JSON representation
My Laravel Helpers for New Projects
- Host: GitHub
- URL: https://github.com/enescakir/laravel-helper
- Owner: enescakir
- License: mit
- Created: 2019-01-27T22:30:26.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-27T18:55:06.000Z (over 5 years ago)
- Last Synced: 2025-02-01T20:29:41.118Z (4 months ago)
- Language: PHP
- Size: 26.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Laravel Helper
| Feature | Purpose |
|:-------:|:--------:|
| `Base\Enum` Class | It has basic `Enum` functionality |
| `Base\Filter` Class | It is parent filter |
| `Base\Approvable` Trait | It add methods and scopes to model like `approved()`, `isApproved()` |
| `Base\BaseActions` Trait | It handles `created_by`, `updated_by`, `deleted_by` |
| `$table->baseActions()` | It adds `created_by`, `updated_by`, `deleted_by`, `timestamps()`, and `softDeletes()` to table |
| `$table->approval()` | It adds `approved_by` and `approved_at` columns to table |
| `Route::approve('user', 'UserController')` | It adds `PUT user/{user}/approved` route |## TODO: Add all features