#Do something after run command.

11 messages · Page 1 of 1 (latest)

leaden field
#

Do something after run command.

karmic pilot
#

This sounds a bit like an XY problem, what's the use-case here?

leaden field
#

I'm creating a composer package, however, to show my assets I'm linking them inside the storage/app/public folder.
So far so good, except that when I run storage:link I want it to link my assets within the public storage.

karmic pilot
#

That's basically how Laravel's first party packages do that as well

leaden field
#

I don't want to have to create a symbolic folder, for example public/modules, and ask the user to ignore it in versioning. As storage is already being ignored, I wanted to take advantage of it.

karmic pilot
#

Yeah, and it's honestly a horrible approach

#

Like I said, there are existing solutions

#

A multitude of packages take the approach I mentioned, since it's the default on how to do that sort of stuff. People using your package are probably familiar with that, since most packages take that approach. You're overcomplicating it waaaaay too much

#

And that approach doesn't deal with symlinks at all