mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-13 17:14:10 -08:00
33 lines
719 B
PHP
33 lines
719 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Livewire\Livewire;
|
|
|
|
class LivewireServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Bootstrap services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
Livewire::setUpdateRoute(function ($handle) {
|
|
return Route::post('/' . config('livewire.url_prefix') . '/livewire/update', $handle);
|
|
});
|
|
|
|
Livewire::setScriptRoute(function ($handle) {
|
|
return Route::get('/' . config('livewire.url_prefix') . '/livewire/livewire.js', $handle);
|
|
});
|
|
}
|
|
}
|