From ff0346ad7bf8fa32d7a139111e5daf708195440a Mon Sep 17 00:00:00 2001 From: Suliman Benhalim Date: Fri, 25 Apr 2025 16:33:56 +0200 Subject: [PATCH] Update README with proper asset publication steps --- README.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2c4dd33..20cf68e 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,29 @@ A simple Chrome extension to iframe a PHP console. This package utilizes [Spatie 2. Navigate to `chrome://extensions/` in your browser. 3. Enable "Developer mode" in the top right corner (if not already enabled). 4. Click "Load unpacked" and select the `php-ext` folder. -5. Within any Laravel project, install the Spatie Laravel Web Tinker package: `composer require spatie/laravel-web-tinker` + +## Laravel Package Installation + +In your Laravel project: + +1. Install the Spatie Laravel Web Tinker package: + ```bash + composer require spatie/laravel-web-tinker + ``` + +2. Publish the Web Tinker assets: + ```bash + php artisan vendor:publish --provider="Spatie\WebTinker\WebTinkerServiceProvider" --tag="web-tinker-assets" + ``` + +3. Compile the assets (if using Laravel Mix): + ```bash + npm install && npm run dev + ``` + +## Troubleshooting + +If you encounter an error like `Mix manifest not found at: /path/to/public/vendor/web-tinker/mix-manifest.json`, make sure you've completed steps 2 and 3 of the Laravel package installation. ## Run Tinker in DevTools