implemented first version of a fallback for Laravel, not tested yet