PHPackages                             vonsogt/template-operation - 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. vonsogt/template-operation

ActiveLibrary[Admin Panels](/categories/admin)

vonsogt/template-operation
==========================

Backpack interface for soufiene-slimi/laravel-form-template

1.0.1(5y ago)191MITPHP

Since Jun 14Pushed 5y agoCompare

[ Source](https://github.com/vonsogt/template-operation)[ Packagist](https://packagist.org/packages/vonsogt/template-operation)[ Docs](https://github.com/soufiene-slimi/template-operation)[ RSS](/packages/vonsogt-template-operation/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (3)Used By (0)

TemplateOperation for Backpack for Laravel
==========================================

[](#templateoperation-for-backpack-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a72e9ed8363d01b7ee8b828d74360455c289024d90cb6cac55142ff0e721eea1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736f756669656e652d736c696d692f74656d706c6174652d6f7065726174696f6e2e737667)](https://packagist.org/packages/soufiene-slimi/template-operation)[![Build Status](https://camo.githubusercontent.com/d620377aa83a0c2523df4481d85a60382346372347cad275a703a8a00e7c9827/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736f756669656e652d736c696d692f74656d706c6174652d6f7065726174696f6e2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/soufiene-slimi/template-operation/build-status/master)[![Quality Score](https://camo.githubusercontent.com/feeded2523e0fe0777fb83ac61c04d9551f14305a5e1a6997994e7f649ffd72b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f736f756669656e652d736c696d692f74656d706c6174652d6f7065726174696f6e2e737667)](https://scrutinizer-ci.com/g/soufiene-slimi/template-operation)[![Total Downloads](https://camo.githubusercontent.com/616bd08e699184e0561b9f24f267252c12c5071149de114970ab418e6b154136/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f756669656e652d736c696d692f74656d706c6174652d6f7065726174696f6e2e737667)](https://packagist.org/packages/soufiene-slimi/template-operation)

Adds an interface for [`soufiene-slimi/laravel-form-template`](https://github.com/soufiene-slimi/laravel-form-template) to your Backpack CRUDs, so that the admin can:

- save entries forms as a template;
- apply those template while creating new ones;

[`soufiene-slimi/laravel-form-template`](https://github.com/soufiene-slimi/laravel-form-template) allows you to save some form templates to apply them whenever you want. the utility is to avoid filling some inputs again and again, that most of the time have the same values, or maybe to apply some template based on the user choice.

When used, this operation will show another button beside the create button in the listing view. On click, that button opens another page, which will allow an admin to create a template for that entry:

[![screencapture-localhost-Make-My-Business-public-admin-invoice-2020-06-14-12_28_06](https://user-images.githubusercontent.com/10948245/84592054-9b983080-ae3a-11ea-9475-84b523164a69.png)](https://user-images.githubusercontent.com/10948245/84592054-9b983080-ae3a-11ea-9475-84b523164a69.png)

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

[](#installation)

**Step 1.** Require the package:

```
composer require soufiene-slimi/template-operation
```

This will automatically install `soufiene-slimi/laravel-form-template` too, if it's not already installed.

**Step 2.** Migrate the `soufiene-slimi/laravel-form-template` table:

```
php artisan migrate
```

**Step 3.** In your CrudController, use the operation trait:

```
