Updating laravel requirement to be more general