laravel-model-attributes

Laravel Model Attributes package 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.

AliAwwad

3,544

0

0.6.0

MIT

GitHub

This package provides the following services:

Laravel Model Attributes package for Atom Editor

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 $user.

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)

Requirements:

Installation

Settings

To-Do

Thanks to: