PHPackages                             deepcube/handoff-image-upload - 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. [Image &amp; Media](/categories/media)
4. /
5. deepcube/handoff-image-upload

ActiveLibrary[Image &amp; Media](/categories/media)

deepcube/handoff-image-upload
=============================

A powerful Filament component for image uploads with camera capture, QR code sharing, and temporary file management for Laravel applications

v1.0.2(7mo ago)03[4 PRs](https://github.com/deepcube-srl/handoff-image-upload/pulls)MITBladePHP ^8.1CI passing

Since Sep 23Pushed 1mo agoCompare

[ Source](https://github.com/deepcube-srl/handoff-image-upload)[ Packagist](https://packagist.org/packages/deepcube/handoff-image-upload)[ Docs](https://github.com/deepcube-srl/handoff-image-upload)[ GitHub Sponsors](https://github.com/sponsors/deepcube-srl)[ RSS](/packages/deepcube-handoff-image-upload/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (14)Versions (7)Used By (0)

Handoff Image Upload
====================

[](#handoff-image-upload)

[![Static Badge](https://camo.githubusercontent.com/cdd2df7ace9b4a9eff15f369856c94f84d6cc9495ae4f8a07cb1d757b0de8018/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d72656c65617365642d79656c6c6f773f7374796c653d666f722d7468652d6261646765266c6f676f3d7061636b6167697374266c6f676f436f6c6f723d776869746526636f6c6f723d677265656e266c696e6b3d68747470732533412532462532467061636b61676973742e6f72672532467061636b61676573253246646565706375626525324668616e646f66662d696d6167652d75706c6f6164)](https://camo.githubusercontent.com/cdd2df7ace9b4a9eff15f369856c94f84d6cc9495ae4f8a07cb1d757b0de8018/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d72656c65617365642d79656c6c6f773f7374796c653d666f722d7468652d6261646765266c6f676f3d7061636b6167697374266c6f676f436f6c6f723d776869746526636f6c6f723d677265656e266c696e6b3d68747470732533412532462532467061636b61676973742e6f72672532467061636b61676573253246646565706375626525324668616e646f66662d696d6167652d75706c6f6164)[![Static Badge](https://camo.githubusercontent.com/d78f5360bb48a1b4c66ed5587ba1338dc1060a14d0e36cb87b2f4293238da530/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f66696c616d656e747068702d332e782d79656c6c6f773f7374796c653d666f722d7468652d6261646765266c6f676f3d66696c616d656e74266c696e6b3d687474707325334125324625324666696c616d656e747068702e636f6d253246646f6373253246332e7825324670616e656c73253246696e7374616c6c6174696f6e)](https://camo.githubusercontent.com/d78f5360bb48a1b4c66ed5587ba1338dc1060a14d0e36cb87b2f4293238da530/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f66696c616d656e747068702d332e782d79656c6c6f773f7374796c653d666f722d7468652d6261646765266c6f676f3d66696c616d656e74266c696e6b3d687474707325334125324625324666696c616d656e747068702e636f6d253246646f6373253246332e7825324670616e656c73253246696e7374616c6c6174696f6e)

A Filament component for image uploads with support for camera, QR Code, and direct upload. Allows users to upload images directly from the current device or using a QR Code to upload from a mobile device.

Features
--------

[](#features)

- **Filament Integration**: Native component for Filament Forms
- **Multiple Upload Methods**: Direct upload, camera capture, or via QR Code
- **Temporary Management**: Automatic handling of temporary images
- **Multilingual**: Support for customizable translations
- **Cleanup Command**: Automatic command to clean temporary images

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

[](#installation)

Install the package via Composer:

```
composer require deepcube/handoff-image-upload
```

Run the migrations:

```
php artisan migrate
```

Publish the configuration files (optional):

```
php artisan vendor:publish --tag="handoff-image-upload-config"
```

Publish the views (optional):

```
php artisan vendor:publish --tag="handoff-image-upload-views"
```

Filament Forms Integration
--------------------------

[](#filament-forms-integration)

To use the component in a Filament form, add the field to your Form Schema:

```
use Deepcube\HandoffImageUpload\HandoffImageUpload;

public static function form(Form $form): Form
{
    return $form
        ->schema([
            HandoffImageUpload::make('profile_image')
                ->label('Profile Image'),

            HandoffImageUpload::make('document_scan')
                ->label('Document Scan'),

            // Other fields...
        ]);
}
```

### Complete Resource Example:

[](#complete-resource-example)

```
