Publishing a Package's Views to Your Application

Problem

You want to copy a third party's views to your application.

Solution

Use the php artisan view:publish command.

$ php artisan view:publish cool-package

This creates all needed configuration files in your app/views/cool-package directory.

Discussion

For non-Laravel packages you may need to specify the path.

$ php artisan view:publish cool-package --path=/package/view/dir
comments powered by Disqus