gsferro / resource-crud-easy
Generic resource method for crud using SPA
Installs: 152
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:HTML
Requires
- php: ^8.0
- barryvdh/laravel-debugbar: ^3.2
- barryvdh/laravel-ide-helper: ^2.13
- freshbitsweb/laratables: ^2.5|^3.0
- genealabs/laravel-model-caching: 0.*|1.*
- gsferro/database-schema-easy: ^1
- gsferro/filtereasy: ^1.1
- gsferro/powermodel: ^1.3
- gsferro/responseview: ^1.2
- gsferro/select2easy: ^1.2.1
- laravel/framework: ^8.0|^9.0|^10.0
- owen-it/laravel-auditing: ^12.0|^13.5.1
- pestphp/pest: ^1.22|^2.8.1
- pestphp/pest-plugin-laravel: ^1.4|^2.0
- phpunit/phpunit: ^9.5.10|^10.1
- protonemedia/laravel-form-components: ^3.5.1
- spatie/laravel-permission: ^5.8
- your-app-rocks/eloquent-uuid: ^2.5
This package is auto-updated.
Last update: 2024-10-24 10:58:23 UTC
README
Instalação:
composer require gsferro/resource-crud-easy -W
Pacotes Dependências:
Publish (TODO :install)
php artisan vendor:publish --provider="Gsferro\ResourceCrudEasy\Providers\ResourceCrudEasyServiceProvider" --force
php artisan vendor:publish --provider "OwenIt\Auditing\AuditingServiceProvider"
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider"
php artisan vendor:publish --provider="Gsferro\Select2Easy\Providers\Select2EasyServiceProvider" --force
Config front-end:
- No Header html principal:
{{-- jquery v3.6.4 (2023-03-08) --}}
@ResourceCrudEasyJquery()
{{-- opcional fontawesome v4 --}}
@FontAwesomeV4()
{{-- style ui css datatables --}}
@ResourceCrudEasyDatatablesExtraCss()
{{-- style ui css --}}
@ResourceCrudEasyStylesCss()
{{-- select2easy --}}
@select2easyCss()
- No Final Body html principal:
{{-- plugin datatables js --}}
@ResourceCrudEasyDatatablesPlugin()
{{-- plugins js --}}
@ResourceCrudEasyPlugins()
{{-- select2easy --}}
@select2easyJs()
{{-- para o datatables poder utilizar via post --}}
<script type="text/javascript">
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
async: true
});
$(function(){
{{-- select2easy run --}}
$('.select2easy:not(".select2-hidden-accessible")').select2easy();
});
</script>
{{-- index utiliza --}}
@yield('js')
Uso:
- Criar Crud Completo
php artisan gsferro:resource-crud <Nome-Entidade> {--table=} {--connection=} {--factory} {--seeder} {--migrate}
- Criar Model
php artisan gsferro:resource-crud-model <Nome-Entidade> {--table=} {--connection=} {--factory} {--seeder} {--migrate}