Shift with red gradient lettering
Loading navigation...

Namespace Models

The Namespace Models scans your Laravel application for Models and moves them under the app/Models folder.

Screenshot of a pull request with automated changes from the Namespace Models Shift

Requirements

A Laravel application running Laravel 5.1 or higher.

Automated Changes

  • Moving Models from top-level under app/Models folder.
  • Updating model references within application code.
  • Applying your code style.
  • Modernizing PHP syntax, such as short arrays.
  • Converting string based class references to ::class references.

Manual Changes

While the Namespace Models Shift automates changes within your application code, there may be additional model references outside your code - such as database relationships and environmental configuration.