Search code examples
laravelconsolelaravel-5storagelaravel-artisan

Error when creating symbolic link in laravel 5.2?


I have a problem occured when creating a symbolic link in laravel 5.2

[Symfony\Component\Console\Exception\CommandNotFoundException] There are no commands defined in the "storage" namespace.

Here I haven't make any consoles in the laravel project folder . What I need is to make a symbolic link to public disk that publicly accessible . Laravel offical documentation said that "storage:link" artisan command is available.


Solution

  • The storage:link artisan command is a 5.3 feature. Since you're using Laravel 5.2, you need to upgrade in order to use the command.