Documentation

ImagePicker extends Component

ImagePicker Laravel Blade Component

An image picker component that allows users to select or capture images. Features customizable rotation, controls, and aspect ratio options for enhanced user experience.

Features:

  • Image selection from file system or camera capture
  • Customizable rotation angle
  • Optional controls for rotation and capture
  • Aspect ratio configuration
  • Form validation integration
  • Livewire real-time updates
  • Bulma CSS framework integration
  • Mobile-friendly responsive design
Tags
author

V360

version
1.0.0
since
2024-07-15
example

Table of Contents

$aspectRatio  : float|null
$controls  : bool
$id  : string
$isCapture  : bool
$name  : string
$rotate  : int
$src  : string|null
__construct()  : mixed
Create a new component instance
render()  : View|Closure|string
Get the view / contents that represent the component.

Properties

Methods

__construct()

Create a new component instance

public __construct(string $name[, int $rotate = 10 ][, bool $controls = true ][, bool $isCapture = false ][, string|null $src = null ][, float|null $aspectRatio = null ]) : mixed
Parameters
$name : string
$rotate : int = 10
  • rotation in degrees, default is 10
$controls : bool = true
  • show controls for rotation and capture, default is true
$isCapture : bool = false
  • if true, allows capturing image from camera, default is false
$src : string|null = null
  • source URL for the image, default is null
$aspectRatio : float|null = null
  • aspect ratio of the image, default is null
Return values
mixed

render()

Get the view / contents that represent the component.

public render() : View|Closure|string
Return values
View|Closure|string

Search results