Skip to content

Releases: ahmedesa/laravel-api-tool-kit

2.2.0 - Laravel 12 Support

25 Mar 14:40
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 2.1.6...2.2.0

2.1.6

24 Jun 19:52
Compare
Choose a tag to compare

Features

  • Add support for publishing stubs.

Full Changelog: 2.1.5...2.1.6

2.1.5 - Laravel 11 support

15 Mar 07:05
34048ab
Compare
Choose a tag to compare
Support Laravel 11.json (#45)

2.1.4

01 Dec 08:13
Compare
Choose a tag to compare

Features

  • add status code to success responses.

Full Changelog: 2.1.3...2.1.4

2.1.3

19 Nov 10:18
Compare
Choose a tag to compare

New Feature: Custom File Locations for API Generator

Introducing a powerful addition to the API Toolkit: create custom file locations for API groups easily. This feature allows you to structure your codebase precisely as your project demands.

How It Works

When generating a new group with the API Generator, specify custom locations for models, controllers, and more. Enjoy a flexible and well-organized codebase tailored to your project needs.

Documentation

For details on using this feature, refer to the documentation. Here

Quick Guide

Open config/api-tool-kit.php.
Under groups_files_paths, define custom file locations for each file type in your new group.
Example Configuration:

'groups_files_paths' => [
    'v1' => [
        GeneratorFilesType::MODEL => [
            'folder_path' => app_path('Models'),
            'file_name' => '{ModelName}.php',
            'namespace' => 'App\Models',
        ],
        // Add locations for other file types here
    ],
],
'groups_url_prefixes' => [
    'v1' => '/api/v1',
],

Run the command to generate files for the new group:

php artisan api:generate ModelName --all --group=v1

2.1.2

04 Sep 12:23
Compare
Choose a tag to compare

What's Changed

  • phpDoc, Adjustment, Standard and Documentation by @rmunate in #34
  • Add the possibility to upload the file(s), to any disk by @rpsimao in #36

New Contributors

Full Changelog: 2.1.1...2.1.2

2.1.1

04 Sep 11:42
Compare
Choose a tag to compare

Full Changelog: 2.1.0...2.1.1

2.1.0

27 Aug 14:41
Compare
Choose a tag to compare

What's Changed

Fixed Enum Type Support in Migration Files
In previous versions, there was an issue with using the enum type in migration files. We've now successfully resolved this limitation. With version 2.1.1, you can use the enum type in migration files as demonstrated below:

$table->enum('status', ['Draft', 'Published']);

To take advantage of the improved enum support, use the following command when generating migrations:

php artisan api:generate Model "status:enum(Draft,Published)"

2.0.0

22 Aug 07:19
Compare
Choose a tag to compare

Removing PHP 7.4 Support, Introducing PHP 8 Compatibility

In this release we removed PHP 7.4 support and embracing PHP ^8.0|^8.1, so we can able to take advantage of PHP 8 features

1.1.9

18 Aug 14:39
Compare
Choose a tag to compare
  • Expanded test suite for comprehensive unit testing coverage.
  • Improved code quality and overall package stability.
  • Added new documentation sections to provide clearer usage instructions.
  • improve MediaHelpers to enable the upload of images with custom names Media Helpers