PHPackages                             prolaxu/fast-api-crud - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. prolaxu/fast-api-crud

ActiveLibrary[API Development](/categories/api)

prolaxu/fast-api-crud
=====================

Laravel Fast API CRUD with ease controller

v2.4(2y ago)085MITPHP

Since May 28Pushed 1y agoCompare

[ Source](https://github.com/prolaxu/Fast-Api-Crud)[ Packagist](https://packagist.org/packages/prolaxu/fast-api-crud)[ RSS](/packages/prolaxu-fast-api-crud/feed)WikiDiscussions 2.x Synced 3w ago

READMEChangelog (5)Dependencies (6)Versions (7)Used By (0)

About FastApiCrud
=================

[](#about-fastapicrud)

It provides basic to advanced CRUD (Create, Read, Update, Delete) functionality for a given model.

Composer
--------

[](#composer)

Installation
------------

[](#installation)

```
composer require anil/fast-api-crud
```

### Child Constructor method

[](#child-constructor-method)

- $model: The name of the model that this controller is responsible for.
- $storeRequest: The name of the request class to use when storing data.
- $updateRequest: The name of the request class to use when updating data.
- $resource: The name of the resource class to use when returning data.

### This package has auto-discovery for laravel 6 and higher and for below you can add this in your providers array

[](#this-package-has-auto-discovery-for-laravel-6-and-higher-and-for-below-you-can-add-this-in-your-providers-array)

```

    'providers' => [
        ...
        \Anil\FastApiCrud\Providers\ApiCrudServiceProvider::class
    ]

```

### This package is build on Top of Spatie role and permission Register in Kernel.php if you want to apply permission as well

[](#this-package-is-build-on-top-of-spatie-role-and-permission-register-in-kernelphp-if-you-want-to-apply-permission-as-well)

```

// Laravel 9 uses $routeMiddleware = [
//protected $routeMiddleware = [
// Laravel 10+ uses $middlewareAliases = [
protected $middlewareAliases = [
// ...
'role' => \Spatie\Permission\Middlewares\RoleMiddleware::class,
'permission' => \Spatie\Permission\Middlewares\PermissionMiddleware::class,
'role_or_permission' => \Spatie\Permission\Middlewares\RoleOrPermissionMiddleware::class,
];

```

### Eample

[](#eample)

```
