Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use paths from object property, not local variable #95

Merged

Commits on Mar 4, 2024

  1. Use paths from object property, not local variable

    Volt is already doing the work to save multiple component paths, we just need to use those saved paths when setting up the namespace.
    
    This provides support for easily adding paths to components in custom packages like:
    
    ```php
    use Illuminate\Support\ServiceProvider;
    use Livewire\Volt\Volt;
    
    class PackageServiceProvider extends ServiceProvider
    {
        /**
         * Bootstrap the application services.
         */
        public function boot()
        {
            $this->app->booted( function() {
                Volt::mount( __DIR__.'/../resources/views/livewire' );
            } );
        }
    }
    ```
    bookwyrm committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    3013de9 View commit details
    Browse the repository at this point in the history