mixdinternet/laravel-stapler-extra

This package add some features that laravel-stapler doesn't have
2,245
Install
composer require mixdinternet/laravel-stapler-extra
Latest Version:0.1.1
Laravel:4 · 5
License:MIT
Last Updated:Jan 29, 2016
Links: GitHub  ·  Packagist
Maintainer: agenciafmd

Laravel Stapler Extra

This package add some features that laravel-stapler doesn't have

Requirements

This package currently requires Laravel >= 5.1.

Installation

Laravel-Stapler-Extra is distributed as a composer package, which is how it should be used in your app.

Install the package using Composer. Edit your project's composer.json file to require mixdinternet/laravel-stapler-extra.

  "require": {
    "mixdinternet/laravel-stapler-extra": "0.1.*"
  }

or

  composer require mixdinternet/laravel-stapler-extra

Once this operation completes, the final step is to change to your custom class

Open /config/laravel-stapler/bindings.php

Change:

  'interpolator' => '\Codesleeve\Stapler\Interpolator',

to

  'interpolator' => '\Mixdinternet\LaravelStaplerExtra\Interpolator',

Custom Interpolations

  • :filename_slugify - Apply str_slug() on file attachment name, e.g atenção.jpg -> atencao.jpg.
  • :class_lower - The class name (lowercase) of the model containing the file attachment, e.g user. This will include the class namespace.
  • :class_name_lower - The class name (lowercase) of the model, without its namespace.
  • :namespace_lower - The namespace (lowercase) of the model containing the file attachment, e.g mixdinternet/user.

Related Packages

sahusoftcom/eloquent-image-mutator

One solution for image uploads.

16,439 119
benallfree/laravel-stapler-images

Extend laravel-stapler with an Image model.

491 11
6reduk/eloquent-image-mutator

One solution for image uploads. Fork for https://github.com/sahusoftcom/eloquent...

57 1
sopamo/laravel-filepond

Laravel backend module for filepond uploads

350,740 214
krydos/cloudder

Cloudinary API wrapper for Laravel.

6,066 0

Version History

Version Released License
0.1.1 MIT
0.1.0 MIT