Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 710 Bytes

UPGRADING.md

File metadata and controls

8 lines (6 loc) · 710 Bytes

Upgrading

From 1.x to 2.x

  • Run the following command to fetch the latets version of the package: composer require f9webltd/laravel-meta:^2.0
  • The package now requires PHP ^8.0 and Laravel ^8.12 / ^9.0, ^10.0 or ^11.0
  • The meta() helper function now only returns an instance of the Meta class, this is breaking change. Previously the helper acted as a short cut to fetch a specific tag. For example, meta('title') was previously the same as meta()->get('title'). This behaviour was removed for simplicity and to help with autocompletion. If using this function calls in the format meta('title') shoulod be adjusted to meta()->get('title')
  • No further changes are required