This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.
This package is abandoned and no longer maintained. The author suggests using the artisanry/picible package instead.

Picture attachment and management for your Eloquent models.

2.2.0 2019-08-28 13:05 UTC

This package is auto-updated.

Last update: 2019-08-28 13:15:47 UTC


Build Status PHP from Packagist Latest Version License


Require this package, with Composer, in the root directory of your project.

$ composer require artisanry/picible

The package configuration will now be located at app/config/picible.php and the migration at database/migrations/2015_01_30_000000_create_picible_table.php.

To finish the installation you need to migrate the picible table by executing:

php artisan migrate


Including the Trait


namespace App;

use Artisanry\Picible\Contracts\Picible as PicibleContract;
use Artisanry\Picible\Traits\PicibleTrait;

class User extends Model implements PicibleContract {

    use PicibleTrait;




namespace App\Http\Controllers;

use App\User;
use Artisanry\Picible\PicibleService as Picible;
use Illuminate\Http\Request;

class PicibleController extends Controller {

    public function index(Request $request, Picible $picible)
        // Load the model the picture will be attached to
        $user = User::find(1);

        // The picture that should be uploaded
        $file = $request->files->all()['picture'];

        // Upload the picture and create a database record
        $picture = $picible->withFile($file)
                         ->withAttributes(['slot' => 'trailer'])

        // Get the shareable url of the created picture
        $picture = $picible->withFilters(['watermark'])

        // Display the shareable url



$ phpunit


If you discover a security vulnerability within this package, please send an e-mail to hello@basecode.sh. All security vulnerabilities will be promptly addressed.


This project exists thanks to all the people who contribute.


Mozilla Public License Version 2.0 (MPL-2.0).