Laravel Model Attributes package for Atom targets a Laravel+MySQL projects to assist developers with autocomplete functionality to auto-complete a given Model by taking its name to guess the mysql related table.
to get the results in the autocomplete, just type
-> after your variable, like
$article->, and you should get the autocomplete suggestions.
Note: Right now it works only if you define you variables like:
$item = new User(), the package will look for table
users in your database and get back the columns. if it fails it will look for a table called
items. so if the variable is not defined like before, you may still use it like
NOTE 2: the package says laravel, but in theory it should work with any php+mysql project.
First Release, This is a beta
This package is a provider for
autocomplete-plus package (bundled with Atom)
autocomplete-pluspackage (bundled with Atom)
apm install laravel-model-attributes
use App\Classstatement (to break free from pluralize model name to get table name)
autocomplete-tailwind, great package, I went through its code and learned how to make a provider for
autocomplete-php, which I copied his README file layout.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.