41

GitHub - lara-plus/app-name: Adds the app:name command back to Laravel

 4 years ago
source link: https://github.com/lara-plus/app-name
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

App Name Command

Latest Stable Version Total Downloads Latest Unstable Version License

This package is super simple, it adds the app:name command back to laravel 6.0. This package should be installed as a dev requirement.

What?

The app:name command replaces the default App namespace that Laravel ships with. It widely used by developers that like to give each project its own namespace.

Why was it removed?

Honestly, I don't know. Taylor has publicly said that he doesn't think people should be changing the namespace so I assume it's off the back of that.

Why not just do a find and replace?

Sure, if you're confident that'll get everything and not mess anything up, do so.

Installation

Super simple:

composer require lara-plus/app-name --dev

Using

To use this simply run the following command:

php artisan app:name MyNewNamespace

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK