ip/meat-up
ip/meat-up is a small Laravel/PHP package from the ip namespace. Public documentation and adoption are limited (1 GitHub star), so review the source and tests carefully before adding it to a production project.
"vendor/package": "0.6.0") because this is still pre-1.0.Croppable annotation, then open the attribute class in the package source (often under src/Attributes). That is the fastest way to learn the accepted arguments, targets, and namespace.#[Croppable(...)] to declare crop dimensions or ratios, then call the package’s crop/resolve method from an upload controller. This replaces hard-coded crop arrays with declarative metadata.php artisan vendor:publish) before customizing defaults so future upgrades do not overwrite your settings.#[Croppable] on fields such as avatar or cover, then resolve them through the package’s resolver in a service class. Keep controllers thin and test the resolved presets directly.Storage::fake() and assert resulting image dimensions with getimagesize() or Intervention Image. Add a reflection-based test that reads the attribute so typos in preset names fail in CI.afterCommit() so jobs do not run before the model or file record exists. This matters when the crop preset depends on a newly created record.#[Croppable] only allows properties, placing it on a method or class will not be read. A missing use statement for the attribute class is a common silent failure.How can I help you explore Laravel packages today?