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

Allow setting a prefix for Livewire's update and asset urls #15073

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

marcusmoore
Copy link
Collaborator

Description

This PR allows adding a url prefix to Livewire's update endpoint and javascript asset endpoint.

Fixes #15039

Type of change

  • New feature (non-breaking change which adds functionality)

Copy link

what-the-diff bot commented Jul 11, 2024

PR Summary

  • Added Configuration Parameter Configuration to the prject setup file
    A new parameter LIVEWIRE_URL_PREFIX has been added to the setup file (.env.example). This allows users to predefine some settings during the set-up phase.

  • Inclusion of new Service Provider
    A new file named LivewireServiceProvider.php has been added to the app/Providers directory of the project. This service provider is designed to register specific web routes (Livewire routes) to handle updates and serving of the Livewire JavaScript, a part of the functionality within the project.

  • Registration of new Service Provider
    The newly added LivewireServiceProvider has also been registered in a configuration file (config/app.php). This lets the application acknowledge this service provider and put it to use.

  • Addition of Configuration Parameter to Livewire Configuration
    The LIVEWIRE_URL_PREFIX configuration parameter is further extended to the Livewire configuration file (config/livewire.php) to permit users to modify the part of the URL used for Livewire related network requests and JavaScript assets.

@marcusmoore marcusmoore mentioned this pull request Jul 11, 2024
2 tasks
@snipe snipe merged commit fb7d533 into snipe:develop Jul 11, 2024
9 checks passed
@marcusmoore marcusmoore deleted the feature/livewire-url-prefix branch July 11, 2024 20:05
@marcusmoore marcusmoore mentioned this pull request Sep 3, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants