Файловый менеджер - Редактировать - /home/easybachat/hisabat365.com/4a7891/laravel-datatables-editor.tar
Ðазад
phpstan.neon.dist 0000644 00000000301 15060250012 0010025 0 ustar 00 includes: - ./vendor/larastan/larastan/extension.neon parameters: paths: - src level: max ignoreErrors: excludePaths: checkMissingIterableValueType: false src/Concerns/WithRestoreAction.php 0000644 00000000552 15060250012 0013224 0 ustar 00 <?php declare(strict_types=1); namespace Yajra\DataTables\Concerns; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; trait WithRestoreAction { /** * Process restore action request. */ public function restore(Request $request): JsonResponse { $this->restoring = true; return $this->edit($request); } } src/Concerns/WithForceDeleteAction.php 0000644 00000000636 15060250012 0013765 0 ustar 00 <?php declare(strict_types=1); namespace Yajra\DataTables\Concerns; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; trait WithForceDeleteAction { /** * Process force delete action request. * * @throws \Exception */ public function forceDelete(Request $request): JsonResponse { $this->forceDeleting = true; return $this->remove($request); } } src/Concerns/WithEditAction.php 0000644 00000004311 15060250012 0012463 0 ustar 00 <?php declare(strict_types=1); namespace Yajra\DataTables\Concerns; use Illuminate\Database\Eloquent\Model; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; trait WithEditAction { /** * Process edit action request. */ public function edit(Request $request): JsonResponse { $connection = $this->getBuilder()->getConnection(); $affected = []; $errors = []; $connection->beginTransaction(); foreach ($this->dataFromRequest($request) as $key => $data) { $this->currentData = $data; $model = $this->getBuilder()->findOrFail($key); $validator = $this->getValidationFactory() ->make( $data, $this->editRules($model), $this->messages() + $this->editMessages(), $this->attributes() ); if ($validator->fails()) { foreach ($this->formatErrors($validator) as $error) { $errors[] = $error; } continue; } $data = $this->updating($model, $data); $data = $this->saving($model, $data); if ($this->restoring && method_exists($model, 'restore')) { $model->restore(); } else { $model->fill($data)->save(); } $model = $this->updated($model, $data); $model = $this->saved($model, $data); $model->setAttribute('DT_RowId', $model->getKey()); $affected[] = $model; } if (! $errors) { $connection->commit(); } else { $connection->rollBack(); } return $this->toJson($affected, $errors); } /** * Get edit action validation rules. */ public function editRules(Model $model): array { return []; } /** * Get edit validation messages. */ protected function editMessages(): array { return []; } public function updating(Model $model, array $data): array { return $data; } public function updated(Model $model, array $data): Model { return $model; } } src/Concerns/WithRemoveAction.php 0000644 00000005161 15060250012 0013037 0 ustar 00 <?php declare(strict_types=1); namespace Yajra\DataTables\Concerns; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\QueryException; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; trait WithRemoveAction { /** * Process remove action request. */ public function remove(Request $request): JsonResponse { $connection = $this->getBuilder()->getConnection(); $affected = []; $errors = []; $connection->beginTransaction(); foreach ($this->dataFromRequest($request) as $key => $data) { $this->currentData = $data; $model = $this->getBuilder()->findOrFail($key); $validator = $this->getValidationFactory() ->make( $data, $this->removeRules($model), $this->messages() + $this->removeMessages(), $this->attributes() ); if ($validator->fails()) { foreach ($this->formatErrors($validator) as $error) { $errors[] = $error['status']; } continue; } try { $deleted = clone $model; $data = $this->deleting($model, $data); $this->forceDeleting ? $model->forceDelete() : $model->delete(); $deleted = $this->deleted($deleted, $data); } catch (QueryException $exception) { $error = config('app.debug') ? $exception->getMessage() : $this->removeExceptionMessage($exception, $model); $errors[] = $error; } $affected[] = $deleted; } if (! $errors) { $connection->commit(); } else { $connection->rollBack(); } return $this->toJson($affected, [], $errors); } /** * Get remove action validation rules. */ public function removeRules(Model $model): array { return []; } /** * Get remove validation messages. */ protected function removeMessages(): array { return []; } public function deleting(Model $model, array $data): array { return $data; } public function deleted(Model $model, array $data): Model { return $model; } /** * Get remove query exception message. */ protected function removeExceptionMessage(QueryException $exception, Model $model): string { // @phpstan-ignore-next-line return "Record {$model->getKey()} is protected and cannot be deleted!"; } } src/Concerns/WithUploadAction.php 0000644 00000006525 15060250012 0013033 0 ustar 00 <?php declare(strict_types=1); namespace Yajra\DataTables\Concerns; use Illuminate\Contracts\Filesystem\Filesystem; use Illuminate\Filesystem\FilesystemAdapter; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; use Illuminate\Http\UploadedFile; use Illuminate\Support\Facades\Storage; use Illuminate\Validation\ValidationException; trait WithUploadAction { /** * Handle uploading of file. */ public function upload(Request $request): JsonResponse { $field = $request->input('uploadField'); if (! $field || ! is_string($field)) { $field = 'file'; } try { $storage = $this->getDisk(); $rules = $this->uploadRules(); $fieldRules = ['upload' => $rules[$field] ?? []]; $this->validate($request, $fieldRules, $this->messages(), $this->attributes()); /** @var UploadedFile $uploadedFile */ $uploadedFile = $request->file('upload'); $id = $this->storeUploadedFile($field, $uploadedFile); $id = $this->uploaded($id); return new JsonResponse([ 'action' => $this->action, 'data' => [], 'files' => [ 'files' => [ $id => [ 'filename' => $id, 'original_name' => $uploadedFile->getClientOriginalName(), 'size' => $uploadedFile->getSize(), 'directory' => $this->getUploadDirectory(), 'disk' => $this->disk, 'url' => $storage->url($id), ], ], ], 'upload' => [ 'id' => $id, ], ]); } catch (ValidationException $exception) { return new JsonResponse([ 'action' => $this->action, 'data' => [], 'fieldErrors' => [ [ 'name' => $field, 'status' => str_replace('upload', $field, (string) $exception->errors()['upload'][0]), ], ], ]); } } protected function getDisk(): Filesystem|FilesystemAdapter { return Storage::disk($this->disk); } /** * Upload validation rules. */ public function uploadRules(): array { return []; } protected function storeUploadedFile(string $field, UploadedFile $uploadedFile): string { $filename = $this->getUploadedFilename($field, $uploadedFile); $path = $this->getDisk()->putFileAs($this->getUploadDirectory(), $uploadedFile, $filename); if (! is_string($path)) { throw ValidationException::withMessages([ 'upload' => 'Failed to store uploaded file.', ]); } return $path; } protected function getUploadedFilename(string $field, UploadedFile $uploadedFile): string { return date('Ymd_His').'_'.$uploadedFile->getClientOriginalName(); } protected function getUploadDirectory(): string { return $this->uploadDir; } /** * Upload event hook. */ public function uploaded(string $id): string { return $id; } } src/Concerns/WithCreateAction.php 0000644 00000004174 15060250012 0013010 0 ustar 00 <?php declare(strict_types=1); namespace Yajra\DataTables\Concerns; use Illuminate\Database\Eloquent\Model; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; trait WithCreateAction { /** * Process create action request. * * @throws \Throwable */ public function create(Request $request): JsonResponse { $model = $this->resolveModel(); $connection = $model->getConnection(); $affected = []; $errors = []; $connection->beginTransaction(); foreach ($this->dataFromRequest($request) as $data) { $this->currentData = $data; $instance = $model->newInstance(); $validator = $this->getValidationFactory() ->make( $data, $this->createRules(), $this->messages() + $this->createMessages(), $this->attributes() ); if ($validator->fails()) { foreach ($this->formatErrors($validator) as $error) { $errors[] = $error; } continue; } $data = $this->creating($instance, $data); $data = $this->saving($instance, $data); $instance->fill($data)->save(); $instance = $this->created($instance, $data); $instance = $this->saved($instance, $data); $instance->setAttribute('DT_RowId', $instance->getKey()); $affected[] = $instance; } if (! $errors) { $connection->commit(); } else { $connection->rollBack(); } return $this->toJson($affected, $errors); } /** * Get create action validation rules. */ public function createRules(): array { return []; } /** * Get create validation messages. */ protected function createMessages(): array { return []; } public function creating(Model $model, array $data): array { return $data; } public function created(Model $model, array $data): Model { return $model; } } src/Generators/stubs/editor.stub 0000644 00000003363 15060250012 0012765 0 ustar 00 <?php declare(strict_types=1); namespace DummyNamespace; use DummyModel; use Illuminate\Database\Eloquent\Model; use Illuminate\Validation\Rule; use Yajra\DataTables\DataTablesEditor; class DummyClass extends DataTablesEditor { protected $model = ModelName::class; /** * Get create action validation rules. */ public function createRules(): array { return [ 'email' => 'required|email|max:255|unique:'.$this->resolveModel()->getTable(), 'name' => 'required|max:255', 'password' => 'required||max:255|confirmed', ]; } /** * Get edit action validation rules. */ public function editRules(Model $model): array { return [ 'email' => 'sometimes|required|max:255|email|'.Rule::unique($model->getTable())->ignore($model->getKey()), 'name' => 'sometimes|required|max:255', 'password' => 'sometimes|required|max:255', ]; } /** * Get remove action validation rules. */ public function removeRules(Model $model): array { return []; } /** * Event hook that is fired after `creating` and `updating` hooks, but before * the model is saved to the database. */ public function saving(Model $model, array $data): array { // Before saving the model, hash the password. if (! empty(data_get($data, 'password'))) { data_set($data, 'password', bcrypt($data['password'])); } return $data; } /** * Event hook that is fired after `created` and `updated` events. */ public function saved(Model $model, array $data): Model { // do something after saving the model return $model; } } src/Generators/DataTablesEditorCommand.php 0000644 00000007305 15060250012 0014623 0 ustar 00 <?php namespace Yajra\DataTables\Generators; use Illuminate\Console\GeneratorCommand; use Illuminate\Support\Str; class DataTablesEditorCommand extends GeneratorCommand { /** * The name and signature of the console command. * * @var string */ protected $signature = 'datatables:editor {name : The name of the dataTable editor.} {--model : The name given will be used as the model is singular form.} {--model-namespace= : The namespace of the model to be used.}'; /** * The console command description. * * @var string */ protected $description = 'Create a new DataTables Editor class.'; /** * The type of class being generated. * * @var string */ protected $type = 'DataTableEditor'; /** * Build the class with the given name. * * @param string $name * * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException */ protected function buildClass($name): string { $stub = parent::buildClass($name); return $this->replaceModelImport($stub)->replaceModel($stub); } /** * Replace model name. */ protected function replaceModel(string &$stub): string { $model = explode('\\', $this->getModel()); $model = array_pop($model); $stub = str_replace('ModelName', $model, $stub); return $stub; } /** * Get model name to use. */ protected function getModel(): string { $name = $this->getNameInput(); $rootNamespace = $this->laravel->getNamespace(); $model = $this->option('model') || $this->option('model-namespace'); $modelNamespace = $this->option('model-namespace') ?: config('datatables-buttons.namespace.model'); return $model ? ($modelNamespace ?? $rootNamespace).'\\'.Str::singular($name) : $rootNamespace.'\\Models\\User'; } /** * Replace model import. */ protected function replaceModelImport(string &$stub): DataTablesEditorCommand { $stub = str_replace( 'DummyModel', str_replace('\\\\', '\\', $this->getModel()), $stub ); return $this; } /** * Get the stub file for the generator. */ protected function getStub(): string { $path = config('datatables-buttons.stub'); if ($path && is_string($path)) { return base_path($path).'/editor.stub'; } return __DIR__.'/stubs/editor.stub'; } /** * Replace the filename. */ protected function replaceFilename(string &$stub): string { $stub = str_replace( 'DummyFilename', Str::slug($this->getNameInput()), $stub ); return $stub; } /** * Parse the name and format according to the root namespace. * * @param string $name */ protected function qualifyClass($name): string { $rootNamespace = $this->laravel->getNamespace(); if (Str::startsWith($name, $rootNamespace)) { return $name; } if (Str::contains($name, '/')) { $name = str_replace('/', '\\', $name); } if (! Str::contains(Str::lower($name), 'datatable')) { $name .= $this->type; } return $this->getDefaultNamespace(trim((string) $rootNamespace, '\\')).'\\'.$name; } /** * Get the default namespace for the class. * * @param string $rootNamespace */ protected function getDefaultNamespace($rootNamespace): string { return $rootNamespace.'\\'.config('datatables-buttons.namespace.base', 'DataTables'); } } src/EditorServiceProvider.php 0000644 00000000772 15060250012 0012323 0 ustar 00 <?php namespace Yajra\DataTables; use Illuminate\Support\ServiceProvider; use Yajra\DataTables\Generators\DataTablesEditorCommand; class EditorServiceProvider extends ServiceProvider { /** * Bootstrap the application events. * * @return void */ public function boot() { // } /** * Register the service provider. * * @return void */ public function register() { $this->commands(DataTablesEditorCommand::class); } } src/DataTablesEditor.php 0000644 00000013331 15060250012 0011207 0 ustar 00 <?php declare(strict_types=1); namespace Yajra\DataTables; use Exception; use Illuminate\Contracts\Validation\Validator; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Foundation\Validation\ValidatesRequests; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; /** * @template TModelClass of Model */ abstract class DataTablesEditor { use Concerns\WithCreateAction; use Concerns\WithEditAction; use Concerns\WithForceDeleteAction; use Concerns\WithRemoveAction; use Concerns\WithUploadAction; use ValidatesRequests; /** * Action performed by the editor. */ protected ?string $action = null; /** * Allowed dataTables editor actions. * * @var string[] */ protected array $actions = [ 'create', 'edit', 'remove', 'upload', 'forceDelete', 'restore', ]; /** * List of custom editor actions. * * @var string[] */ protected array $customActions = []; /** * @var null|class-string<\Illuminate\Database\Eloquent\Model>|Model */ protected $model = null; /** * Indicates if all mass assignment is enabled on model. */ protected bool $unguarded = false; /** * Upload directory relative to storage path. */ protected string $uploadDir = 'editor'; /** * Flag to force delete a model. */ protected bool $forceDeleting = false; /** * Flag to restore a model from deleted state. */ protected bool $restoring = false; /** * Filesystem disk config to use for upload. */ protected string $disk = 'public'; /** * Current request data that is being processed. */ protected array $currentData = []; /** * Process dataTables editor action request. * * @return JsonResponse * * @throws DataTablesEditorException */ public function process(Request $request): mixed { if ($request->get('action') && is_string($request->get('action'))) { $this->action = $request->get('action'); } else { throw new DataTablesEditorException('Invalid action requested!'); } if (! in_array($this->action, array_merge($this->actions, $this->customActions))) { throw new DataTablesEditorException(sprintf('Requested action (%s) not supported!', $this->action)); } try { return $this->{$this->action}($request); } catch (Exception $exception) { $error = config('app.debug') ? '<strong>Server Error:</strong> '.$exception->getMessage() : $this->getUseFriendlyErrorMessage(); app('log')->error($exception); return $this->toJson([], [], $error); } } protected function getUseFriendlyErrorMessage(): string { return 'An error occurs while processing your request.'; } /** * Display success data in dataTables editor format. */ protected function toJson(array $data, array $errors = [], string|array $error = ''): JsonResponse { $code = 200; $response = [ 'action' => $this->action, 'data' => $data, ]; if ($error) { $code = 422; $response['error'] = $error; } if ($errors) { $code = 422; $response['fieldErrors'] = $errors; } return new JsonResponse($response, $code); } /** * Get custom attributes for validator errors. */ public function attributes(): array { return []; } /** * Get dataTables model. */ public function getModel(): Model|string|null { return $this->model; } /** * Set the dataTables model on runtime. * * @param class-string<Model>|Model $model */ public function setModel(Model|string $model): static { $this->model = $model; return $this; } /** * Get validation messages. */ protected function messages(): array { return []; } protected function formatErrors(Validator $validator): array { $errors = []; collect($validator->errors())->each(function ($error, $key) use (&$errors) { $errors[] = [ 'name' => $key, 'status' => $error[0], ]; }); return $errors; } /** * Get eloquent builder of the model. * * @return \Illuminate\Database\Eloquent\Builder<TModelClass> */ protected function getBuilder(): Builder { $model = $this->resolveModel(); if (in_array(SoftDeletes::class, class_uses($model))) { // @phpstan-ignore-next-line return $model->newQuery()->withTrashed(); } return $model->newQuery(); } /** * Resolve model to used. */ protected function resolveModel(): Model { if (! $this->model instanceof Model) { $this->model = new $this->model; } $this->model->unguard($this->unguarded); return $this->model; } /** * Set model unguard state. * * @return $this */ public function unguard(bool $state = true): static { $this->unguarded = $state; return $this; } protected function dataFromRequest(Request $request): array { return (array) $request->get('data'); } public function saving(Model $model, array $data): array { return $data; } public function saved(Model $model, array $data): Model { return $model; } } src/DataTablesEditorException.php 0000644 00000000152 15060250012 0013063 0 ustar 00 <?php namespace Yajra\DataTables; use Exception; class DataTablesEditorException extends Exception { } CONTRIBUTING.md 0000644 00000001652 15060250012 0006770 0 ustar 00 # Contributing Contributions are **welcome** and will be fully **credited**. We accept contributions via Pull Requests on [Github](https://github.com/yajra/laravel-datatables-editor). ## Pull Requests - **[PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** - The easiest way to apply the conventions is to install [PHP Code Sniffer](http://pear.php.net/package/PHP_CodeSniffer). - **Document any change in behaviour** - Make sure the `README.md` and any other relevant documentation are kept up-to-date. - **Consider our release cycle** - We try to follow [SemVer v2.0.0](http://semver.org/). Randomly breaking public APIs is not an option. - **Send coherent history** - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please squash them before submitting. **Happy coding**! LICENSE.md 0000644 00000002117 15060250012 0006140 0 ustar 00 (The MIT License) Copyright (c) 2013-2022 Arjay Angeles <aqangeles@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. rector.php 0000644 00000001032 15060250012 0006536 0 ustar 00 <?php declare(strict_types=1); use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector; use Rector\Config\RectorConfig; use Rector\Set\ValueObject\LevelSetList; return static function (RectorConfig $rectorConfig): void { $rectorConfig->paths([ __DIR__.'/src', __DIR__.'/tests', ]); // register a single rule $rectorConfig->rule(InlineConstructorDefaultToPropertyRector::class); // define sets of rules $rectorConfig->sets([ LevelSetList::UP_TO_PHP_82, ]); }; UPGRADE.md 0000644 00000000020 15060250012 0006134 0 ustar 00 # Upgrade Notes CHANGELOG.md 0000644 00000000673 15060250012 0006352 0 ustar 00 # Laravel DataTables Editor CHANGELOG ## [Unreleased](https://github.com/yajra/laravel-datatables-editor/compare/v11.0.0...master) ## [v11.0.0](https://github.com/yajra/laravel-datatables-editor/compare/1,x...v11.0.0) - 2024-03-16 - Laravel 11 support - CRUD Event hooks methods are now added by default. - Added pint for code style - Added phpstan - Added rector - Code updated with PHP8.2 syntax. Type hints might cause a breaking change composer.json 0000644 00000003362 15060250012 0007261 0 ustar 00 { "name": "yajra/laravel-datatables-editor", "description": "Laravel DataTables Editor plugin for Laravel 5.5+.", "keywords": [ "laravel", "dataTables", "editor", "jquery", "html", "js" ], "license": "MIT", "authors": [ { "name": "Arjay Angeles", "email": "aqangeles@gmail.com" } ], "require": { "php": "^8.2", "illuminate/console": "^11", "illuminate/database": "^11", "illuminate/http": "^11", "illuminate/validation": "^11" }, "require-dev": { "larastan/larastan": "^2.9.1", "laravel/pint": "^1.14", "orchestra/testbench": "^9.0", "rector/rector": "^1.0" }, "autoload": { "psr-4": { "Yajra\\DataTables\\": "src/" } }, "autoload-dev": { "psr-4": { "Yajra\\DataTables\\Tests\\": "tests/" } }, "config": { "sort-packages": true, "allow-plugins": { "php-http/discovery": true } }, "scripts": { "test": "./vendor/bin/phpunit", "pint": "./vendor/bin/pint", "rector": "./vendor/bin/rector", "stan": "./vendor/bin/phpstan analyse --memory-limit=2G --ansi --no-progress --no-interaction --configuration=phpstan.neon.dist", "pr": [ "@rector", "@pint", "@stan", "@test" ] }, "extra": { "branch-alias": { "dev-master": "11.x-dev" }, "laravel": { "providers": [ "Yajra\\DataTables\\EditorServiceProvider" ] } }, "minimum-stability": "dev", "prefer-stable": true } pint.json 0000644 00000000034 15060250012 0006375 0 ustar 00 { "preset": "laravel" } README.md 0000644 00000006304 15060250012 0006015 0 ustar 00 # Laravel DataTables Editor Plugin. [](http://laravel.com) [](https://packagist.org/packages/yajra/laravel-datatables-editor) [](https://github.com/yajra/laravel-datatables-editor/actions/workflows/continuous-integration.yml) [](https://github.com/yajra/laravel-datatables-editor/actions/workflows/static-analysis.yml) [](https://scrutinizer-ci.com/g/yajra/laravel-datatables-editor/?branch=master) [](https://packagist.org/packages/yajra/laravel-datatables-editor) [](https://packagist.org/packages/yajra/laravel-datatables-editor) This package is a plugin of [Laravel DataTables](https://github.com/yajra/laravel-datatables) for processing [DataTables Editor](https://editor.datatables.net/) library. > Special thanks to [@bellwood](https://github.com/bellwood) and [@DataTables](https://github.com/datatables) for being [generous](https://github.com/yajra/laravel-datatables/issues/1548) for providing a license to support the development of this package. **NOTE:** A [premium license](https://editor.datatables.net/purchase/index) is required to be able to use [DataTables Editor](https://editor.datatables.net/) library. ## Requirements - [Laravel 11.x](https://github.com/laravel/framework) - [Laravel DataTables 11.x](https://github.com/yajra/laravel-datatables) ## Documentations - [Laravel DataTables Editor Manual](https://yajrabox.com/docs/laravel-datatables/editor-installation) - [jQuery DataTables Editor Manual](https://editor.datatables.net/manual/index) ## Laravel Version Compatibility | Laravel | Package | |:--------|:--------| | 5-10 | 1.x | | 11.x | 11.x | ## Features - DataTables Editor CRUD actions supported. - Inline editing. - Bulk edit & delete function. - CRUD validation. - CRUD pre / post events hooks. - Artisan command for DataTables Editor generation. ## Quick Installation `composer require yajra/laravel-datatables-editor:^11` And that's it! Start building out some awesome DataTables Editor! ## Contributing Please see [CONTRIBUTING](https://github.com/yajra/laravel-datatables-editor/blob/master/.github/CONTRIBUTING.md) for details. ## Security If you discover any security related issues, please email [aqangeles@gmail.com](mailto:aqangeles@gmail.com) instead of using the issue tracker. ## Credits - [Arjay Angeles](https://github.com/yajra) - [All Contributors](https://github.com/yajra/laravel-datatables-editor/graphs/contributors) ## License The MIT License (MIT). Please see [License File](https://github.com/yajra/laravel-datatables-editor/blob/master/LICENSE.md) for more information. CONDUCT.md 0000644 00000011734 15060250012 0006162 0 ustar 00 # Contributor Covenant Code of Conduct ## Our Pledge We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation. We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community. ## Our Standards Examples of behavior that contributes to a positive environment for our community include: * Demonstrating empathy and kindness toward other people * Being respectful of differing opinions, viewpoints, and experiences * Giving and gracefully accepting constructive feedback * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience * Focusing on what is best not just for us as individuals, but for the overall community Examples of unacceptable behavior include: * The use of sexualized language or imagery, and sexual attention or advances of any kind * Trolling, insulting or derogatory comments, and personal or political attacks * Public or private harassment * Publishing others’ private information, such as a physical or email address, without their explicit permission * Other conduct which could reasonably be considered inappropriate in a professional setting ## Enforcement Responsibilities Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful. Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate. ## Scope This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. ## Enforcement Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [INSERT CONTACT METHOD]. All complaints will be reviewed and investigated promptly and fairly. All community leaders are obligated to respect the privacy and security of the reporter of any incident. ## Enforcement Guidelines Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct: ### 1. Correction Community Impact: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community. Consequence: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested. ### 2. Warning Community Impact: A violation through a single incident or series of actions. Consequence: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban. ### 3. Temporary Ban Community Impact: A serious violation of community standards, including sustained inappropriate behavior. Consequence: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban. ### 4. Permanent Ban Community Impact: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals. Consequence: A permanent ban from any sort of public interaction within the community. ## Attribution This Code of Conduct is adapted from the Contributor Covenant, version 2.1, available at https://www.contributor-covenant.org/version/2/1/code_of_conduct.html. Community Impact Guidelines were inspired by Mozilla’s code of conduct enforcement ladder. For answers to common questions about this code of conduct, see the FAQ at https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
| ver. 1.4 |
Github
|
.
| PHP 8.2.29 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка