Comments (3)
I am not getting why Plank does not expose any interface HasMedia now it's so hard to type hint the code e.g.
function (SpatieMediaLibraryFileUpload $component, HasMedia $record)
from laravel-mediable.
Hello @khanakia,
This library does not follow the same method signatures as Spatie's media library, so we cannot adhere to the same interface, if that is what you are implying. The library that you linked looks like an adaptor, so you might want to create your own which adapts Mediable instead.
There definitely could be an interface for the methods exposed by the Mediable
trait. This is the first time this has been requested. Pull requests always welcome! That said, there is also nothing stopping you from implementing such an interface in your own userland code and applying it to the same models that you are applying the Mediable
trait.
from laravel-mediable.
thanks, i will check
from laravel-mediable.
Related Issues (20)
- 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
- Resize image files insize controller 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
- 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
- detach relations does not work on delete HOT 1
- base64 uploading HOT 5
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.