Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.

Be able to publish error views with vendor:publish #1382

Closed
vdhicts opened this issue Nov 7, 2018 · 2 comments
Closed

Be able to publish error views with vendor:publish #1382

vdhicts opened this issue Nov 7, 2018 · 2 comments

Comments

@vdhicts
Copy link

vdhicts commented Nov 7, 2018

To make it easier to perform some (small) customization to the error pages (especially because they are so beautiful at the moment), I would like to be able to publish the error views through the vendor:publish command. This would result in a copy of /Illuminate/Foundation/Exceptions/views in the /resources/views/errors folder.

This would be a small change, we just need to add the publish command to a service provider. For example the FoundationServiceProvider:

    /**
     * Boot the service provider.
     */
    public function boot()
    {
        if ($this->app->runningInConsole()) {
            $this->publishes([
                __DIR__.'/../Exceptions/views' => $this->app->resourcePath('views/errors/'),
            ], 'laravel-errors');
        }
    }

I'm willing to create a PR for this if this change makes sense for others as well.

@thannaske
Copy link

Makes perfectly sense for me. Looked for this functionality just a few days ago. Please go for the PR.

@vdhicts
Copy link
Author

vdhicts commented Nov 9, 2018

Thank you. PR created: laravel/framework#26460

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant