问题
Has the php artisan key:generate
command been removed in Laravel 4?
Running it returns;
[InvalidArgumentException]
There are no commands defined in the "key" namespace.
How should you generate keys now? Or do you need to create one manually?
回答1:
At the time the question was asked, this feature had not yet been implemented for Laravel. It has now.
This is one of the dangers of asking questions about software that's not yet been released. The answers will change.
来源:https://stackoverflow.com/questions/14231916/generating-an-application-key-in-laravel-4