πŸ‘»
VILT Stack Generator
CtrlK
  • Get Started
    • πŸ‘»Overview
    • πŸ’»Environment Setup
    • πŸš€Install
  • Generate
    • 🧠Resource
    • πŸ”₯Action
    • 🧩Modal
    • πŸ“ˆWidget
    • πŸ“Route
    • πŸ–₯️Views
    • πŸ”’Roles
  • Resource
    • πŸ”¦Using
    • πŸͺHooks
    • πŸ“€Import & Export
  • Builders
    • πŸ”‘Form
    • πŸ“ΊTable
    • πŸ“„Page
  • Components
    • πŸ’«Using
    • πŸ†ŽText
    • πŸ”€Textarea
    • πŸ” Rich
    • πŸ”’Number
    • πŸ“žTel
    • βœ‰οΈEmail
    • πŸ”„Toggle
    • πŸ–ŒοΈColor
    • πŸ“…Date
    • βŒ›Time
    • ⏲️DateTime
    • ⚑Select
    • πŸ”Repeater
    • πŸ“‘Schema
    • ✨Section
    • πŸ–ΌοΈMedia
    • πŸ’ŸHasOne
    • 🎁Relation
  • Managers
    • πŸ”€Translation
    • πŸ“–Menu
    • ♠️Share
  • Helpers
    • ⚠️Alert
    • πŸ’»Render
    • 🌠Actions
    • 🌟Modal
  • Plugins
    • πŸ”€Translations
    • πŸ“€Settings
    • πŸ“–Menus
    • πŸ””Notifications
    • πŸ’³Payment
    • πŸ—οΈBuild Plugins
  • Learning
    • πŸ™Task To Get Start
    • 🚨CI/CD
    • πŸ¦„Awesome TailwindCSS
Powered by GitBook
On this page
  1. Components

πŸ–ΌοΈMedia

you can use Media::class to build a file input like this

Media::make('name');

this class works with vue ViltMedia.vue

it has some more methods for setting options

->max(int)
->multi(bool)
->type(string) // 'image', 'file'

you can use a media lib on update "1.0.14" by use this method

->type('lib')

I will gave you access to media lib and you can select any image [working on single image only for now], or get image for URL as option

PreviousSectionNextHasOne

Last updated 2 years ago