Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Missing check for existence of configuration file during publishing #19

@Imran-imtiaz48

Description

@Imran-imtiaz48

In the boot() method, the code attempts to publish the config file:

$this->publishes([
    __DIR__.'/../config/awesio-repository.php' => config_path('awesio-repository.php'),
], 'config');

However, this assumes that the source config file awesio-repository.php exists in the ../config/ directory. If the file is missing, this will cause errors during publishing. There is no fallback or check for its presence, which can lead to issues during package installation or publishing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions