I’ve had a hard time finding an example of making a post request on Laravel through fetch API as most examples are using jQuery only to make it shorter.
The last few years I have been working with Drupal so I’ve been using a lot more the provided tools for support than medium, but as I hope to save some of the snippets for myself anyway…
Not overly complicated, but not so obvious…
Of course, you need to be comparing integers and you need to have a range in which the comparison would make sense.
Often times clients want to change the PDF document filename created by entity_print module.
One of the ways to make this happens is to create a service extending ServiceProviderBase and alter the class that will process this…