fire an event when getting a new Smarty object
add a new Smarty Resource type for laravel files