TASSILI PRO Docs
Version 1.x
search
search
menu
TASSILI PRO Docs
search
search
File Upload
How to declare a File Upload.
use Tassili\Premium\Fields\FileUpload;

FileUpload::make('file')
  ->label('New label') // optional
  ->readOnly() // optional, if you want the field only readable when you update
  ->folder('posts/images') // optional, if you want to change the folder storage 
  ->notInDatabase() // optional, if you don't want this field in database