Penambahn P1 Dev
This commit is contained in:
@@ -8,6 +8,7 @@ use Illuminate\Database\Eloquent\Relations\Relation;
|
||||
use Illuminate\Routing\Route;
|
||||
use Illuminate\Routing\Router;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Illuminate\Support\Facades\Vite;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
@@ -25,6 +26,11 @@ class AppServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function boot(): void
|
||||
{
|
||||
if ($this->app->environment('local') && ! config('app.vite_dev_server')
|
||||
&& is_file(public_path('build/manifest.json'))) {
|
||||
Vite::useHotFile(storage_path('framework/vite-disabled.hot'));
|
||||
}
|
||||
|
||||
Scramble::configure()->expose(
|
||||
ui: fn (Router $router, $action) => $router->get('docs', $action)->name('scramble.docs.ui'),
|
||||
document: fn (Router $router, $action) => $router->get('docs/api.json', $action)->name('scramble.docs.document'),
|
||||
|
||||
Reference in New Issue
Block a user