PHPackages                             marcot89/laravel-bullet - 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. [Admin Panels](/categories/admin)
4. /
5. marcot89/laravel-bullet

ActiveLibrary[Admin Panels](/categories/admin)

marcot89/laravel-bullet
=======================

Bullet development for Laravel Applications

v1.2.1(6y ago)116.8k1MITPHPPHP ^7.2CI failing

Since Jun 27Pushed 6y ago2 watchersCompare

[ Source](https://github.com/marcoT89/laravel-bullet)[ Packagist](https://packagist.org/packages/marcot89/laravel-bullet)[ Docs](https://github.com/marcot89/laravel-bullet)[ RSS](/packages/marcot89-laravel-bullet/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (5)Versions (16)Used By (0)

[![Laravel Bullet](https://raw.githubusercontent.com/marcoT89/laravel-bullet/master/laravel-bullet.png)](https://raw.githubusercontent.com/marcoT89/laravel-bullet/master/laravel-bullet.png)

Laravel Bullet
==============

[](#laravel-bullet)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e7234d0001e4490fd059c52b36fcf20b3ec8c332b6854873afa8a4912fa02282/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6172636f7438392f6c61726176656c2d62756c6c65742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/marcot89/laravel-bullet)[![Total Downloads](https://camo.githubusercontent.com/2c5cf367a277604af071b99eb32f903fd5d85838d975f3517ce2d2d1e96a3126/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6172636f7438392f6c61726176656c2d62756c6c65742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/marcot89/laravel-bullet)

⚡️ Lightning fast CRUDs and routes registrations for Laravel Applications

This package gives you the power to make API Cruds to eloquent resources very fast, and you can use its dynamic routes registration based on conventions. If you don't like scaffolds, and don't like the repetitive crud operations and route registration for resources, this is the right package for you and your applications.

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#Installation)
- [Basic Usage](#Basic-Usage)
- [Dynamic Routes](#Dynamic-Routes)
- [Middleware Configuration](#Middleware-Configuration)
- [Policy Classes](#Policy-Classes)
- [Validations and Requests](#Validations-and-Requests)
- [Action Hooks](#Action-Hooks)
- [API Resources (Presentation)](#API-Resources-Presentation)
- [Actions in Details](#Actions-in-Details)
    - [Pagination, Filters and Other Magics](#Pagination-Filters-and-Other-Magics)
    - [Custom Query Builder for Actions](#Custom-Query-Builder-for-Actions)
    - [Custom Actions](#Custom-Actions)
- [Advanced Routes](#Advanced-Routes)
    - [Custom HTTP Methods](#Custom-HTTP-Methods)
    - [Route params and dependency injection](#Route-params-and-dependency-injection)
- [Performance and Other Tips](#Performance-and-Other-Tips)
    - [Only use public methods for actions](#Only-use-public-methods-for-actions)
    - [Use `route:cache` command to increase performance](#Use-routecache-command-to-increase-performance)
    - [HTML and JSON responses](#HTML-and-JSON-responses)
- [Changelog](#Changelog)
- [Contributing](#Contributing)
- [Security](#Security)
- [Credits](#Credits)
- [License](#License)
- [Laravel Package Boilerplate](#Laravel-Package-Boilerplate)

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

[](#installation)

You can install the package via composer:

```
composer require marcot89/laravel-bullet
```

> **Recommended:** This package recommends the usage of [Laravel Query Builder](https://github.com/spatie/laravel-query-builder) from [Spatie](https://github.com/spatie) team for index actions.

Basic Usage
-----------

[](#basic-usage)

Simply extend the `ResourceController` in your controller class:

```
