add automatic laravel version detection