PHP Tools 1.56 came out with a lot of additional features to make Laravel developers' life easier, thank you for this awesome extension.

I'd like to make some suggestions,

Laravel validation keys from php files: i noticed the extension only gives you autocompletion for json translation files, it would be really nice if it discovered translation keys from the php files as well. The example below would suggest keys from 'lang/*/auth.php' or 'resources/lang/*/auth.php'.

Laravel validation rules: this is a big one, suggest validation rules when typing in form requests or using the Validator object. Laravel has a list of available rules in their docs (https://laravel.com/docs/11.x/validation#available-validation-rules). Also, it would be nice to make this work for both string syntax and array syntax like the screenshots below:

Have a nice day :)

Thank you for the feedback! That's a great suggestion.

    Write a Reply...