Publisher, add ability to create destination-folders |
Hei!
Ref: https://codeigniter4.github.io/userguide...isher.html Is it possible to add ability to create destination-folders? protected $destination = FCPATH . 'assets/vendor/bootstrap-icons'; Currently the Publisher class validates if the directory is valid on __construct, which make it hard to do anything before the publish. Workaround: Add custom __contruct to your Publisher-class. BootstrapPublisher.php PHP Code: public function __construct(?string $source = null, ?string $destination = null) { Regards Haugli92 |
Welcome Guest, Not a member yet? Register Sign In |