Dynamically Generate and Replace HTML5 canvas Elements With img Elements

Overnight, Chrome was updated and broke an application feature we’ve deployed. The application was dynamically drawing a signature into an HTML5 canvas element and the user would print the page, which contained the canvas. The printed (physical) document would contain the canvas containing the signature. With the Chrome update, canvas elements are no longer being […]

Overload a Laravel Model’s __construct and save Methods

Here are a couple of quick snippets if you need the ability to overload a Model’s constructor or save methods.

Serve Javascript/CSS with a Laravel Route

For a quick solution to serving up a Javascript or CSS file using Laravel routes, i.e. http://www.example.com/js-file, take a look at the following snippet.