PHPackages                             viralsbackpack/backpackapi - 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. viralsbackpack/backpackapi

ActiveLibrary[API Development](/categories/api)

viralsbackpack/backpackapi
==========================

CRUD Api in Backpack

1.0(7y ago)41101MITPHP

Since Apr 25Pushed 7y agoCompare

[ Source](https://github.com/viralsoft/virals.package.api_on_backpack)[ Packagist](https://packagist.org/packages/viralsbackpack/backpackapi)[ Docs](https://github.com/viralsbackpack/backpackapi)[ RSS](/packages/viralsbackpack-backpackapi/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (5)Versions (2)Used By (0)

BackPackAPI
===========

[](#backpackapi)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f6450301f001979c09a565aebb38dbac300e40026904564a388a2d39ef248228/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f766972616c736261636b7061636b2f6261636b7061636b6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/viralsbackpack/backpackapi)[![Total Downloads](https://camo.githubusercontent.com/eeaa4bf4939ac5400f4bf8be088eb4e9371f4923d7765b0e417d3b151fd1c470/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f766972616c736261636b7061636b2f6261636b7061636b6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/viralsbackpack/backpackapi)[![Build Status](https://camo.githubusercontent.com/f5f64906eac09c7756ec308b77bb5ed30c9af6c720dec517f71915dd46906811/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f766972616c736261636b7061636b2f6261636b7061636b6170692f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/viralsbackpack/backpackapi)[![StyleCI](https://camo.githubusercontent.com/cb13a877afd1dbe223c631789c3f922d3ace958fdb334a9cce9b26afefbc2ebd/68747470733a2f2f7374796c6563692e696f2f7265706f732f31323334353637382f736869656c64)](https://styleci.io/repos/12345678)

Quickly build an api interface for your Eloquent models, using Laravel 5. Erect a complete CMS at 10 minutes/model, max.

Features:

- Crud and search call api
- Back-end validation using Requests
- Easily overwrite functionality (customising how the create/update/delete process works is as easy as creating a new function with the proper name in your EntityCrudAPICrontroller)

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

[](#installation)

```
composer require viralsbackpack/backpackapi
```

Setup
-----

[](#setup)

**1. Command**

*\_Create controller and add route for api:*

```
php artisan backpack:crud-api name
```

This command will create NameAPICrudController in folder app/Http/Api and add route api route resource in routes/backpack/api.php

or particular command

*\_Create controller:*

```
php artisan backpack:crud-api-controller Name
```

*\_Add route for api:*

```
php artisan backpack-api:add-custom-route "BackPackAPI::resource('name', 'NameCrudAPIController');"
```

**2. Setup api**

All the settings below can be added to any method in the controller.

*\_Add validate request:*

```
