Comments (1)
You can absolutely define and perform these manipulations within the controller or a service class, if performing the manipulations synchronously.
Note that variants definitions need to be defined somewhere constant if you are using async jobs (since they will be executed in a separate process), hence the suggestion for service provider. That said, there is nothing stopping you from from pulling state from other sources (DB, cache, etc.) within the callback to customize the output
from laravel-mediable.
Related Issues (20)
- How do I show image in filament ImageColumn? HOT 2
- How can I create svg variants for a given media HOT 2
- Uploading to S3 from remote url directly HOT 3
- [Error] Attempted to lazy load [variants] on model [Plank\Mediable\Media] but lazy loading is disabled. HOT 1
- Unable to install on laravel 10.10 HOT 2
- Slow syncing HOT 2
- Getting Issue in laravel 10 while install plank / laravel-mediable version 5.9 HOT 1
- Documentation is not clear how to use the package HOT 4
- SourceAdapter\UploadedFileAdapter bad mime_type from client HOT 2
- PHPStan - Add template to MediableCollection HOT 3
- How to build filament component as plank does not exposes any interface like HasMedia HOT 3
- Move media to root directory HOT 2
- File gets renamed upon upload? HOT 1
- Call to undefined method Plank\Mediable\ImageManipulation::toPngFormat() HOT 4
- Files are not removed from disk on deleting the variants HOT 3
- The Chinese file name is automatically changed to pinyin,I want a Chinese name HOT 2
- Import changes visility on original file HOT 4
- Support `intervention/image` ^3.0 HOT 10
- Upload Media on AWS S3 private Bucket HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-mediable.