Portal UI

File Upload

A input to upload file or image

<x-portal::file-upload icon="file-type-pdf" required maxsize="2" name="pdf"  accept="application/pdf" description="Only PDF file are accepted"/>

Publishing Component

If you want to customize the components, you can publish them by running the following command :

php artisan vendor:publish --tag=portal-ui:file-upload --force


Image

<x-portal::file-upload.image required maxsize="2" name="image"/>