Help On Website - Programming - Nairaland
Nairaland Forum › Science/Technology › Programming › Help On Website (314 Views)
| Help On Website by RadioMOUTH(op): 2:01pm On Mar 07, 2025 |
I've had this displaying on all pages of my website, what do i do please
|
| Re: Help On Website by Alphabyte3: 2:05pm On Mar 07, 2025 |
Read about laravel telescope |
| Re: Help On Website by Alphabyte3: 2:08pm On Mar 07, 2025*. Modified: 2:23pm On Mar 07, 2025 |
It looks like your hosted Laravel website is displaying a debugging interface, likely from Laravel Telescope, which is a tool designed to monitor and debug Laravel applications. This interface shows detailed metrics like requests, exceptions, database queries, and performance data (e.g., a 9.51-second request time). While Telescope is great for development, it’s not meant to be active in a production environment because it can expose sensitive information and slow down your site. Why is this happening? Telescope is probably enabled in your production environment by default or due to a configuration oversight. When you see this dashboard on your live site, it means the tool hasn’t been disabled for production, which is why you’re seeing it when you don’t want to. How to fix it To stop this interface from showing on your hosted website, you need to disable Telescope in production. Here’s how you can do it: Update your .env file Open the .env file in your Laravel project and look for the TELESCOPE_ENABLED variable. If it’s set to true, change it to false. If it’s not there, add this line: TELESCOPE_ENABLED=false This tells Telescope to turn off. Check config/app.php If Telescope is still showing up, it might be registered in your application’s service providers. Open config/app.php and ensure the Telescope service provider is only loaded in development (e.g., local environment). You can wrap it like this: php 'providers' => [ // Other providers... // Only register Telescope in local environment ...((app()->environment('local')) ? [\Laravel\Telescope\TelescopeServiceProvider::class] : []), ], This ensures Telescope only runs when you’re working locally, not on your hosted site. Clear your configuration cache After making these changes, run this command to refresh your app’s configuration: bash php artisan config:cache This applies the updates and ensures Telescope stops running in production. What if you need monitoring in production? If you want to keep an eye on your live site’s performance or errors, Telescope isn’t the right tool for production. Instead, consider alternatives like: Laravel Horizon : Great for monitoring queues if you use Laravel’s queue system. Third-party services: Tools like New Relic, Datadog, or Sentry are secure, optimized for production, and won’t expose sensitive data publicly. Next steps You can double-check the Laravel Telescope documentation for more details on configuring it properly. |
| Re: Help On Website by RadioMOUTH(op): 2:09pm On Mar 07, 2025 |
Alphabyte3:Bro how do i remove it? |
| Re: Help On Website by Alphabyte3: 2:22pm On Mar 07, 2025 |
RadioMOUTH:In .env file let it be false or if it isn't there add it TELESCOPE_ENABLED=false |
| Re: Help On Website by RadioMOUTH(op): 2:30pm On Mar 07, 2025 |
Alphabyte3:I really don't know how to do that, i didn't build this site.. someone did, and I've been unable to contact the person, can i do this from the script admin panel or i must login to control panel to find the .env file |
| Re: Help On Website by Alphabyte3: 2:33pm On Mar 07, 2025 |
RadioMOUTH:You can do on Cpanel or an IDE |
| Re: Help On Website by Shedrick: 2:35pm On Mar 07, 2025 |
RadioMOUTH:send me a chat zero nine one 37595518 to remove that. |
| Re: Help On Website by Alphabyte3: 2:42pm On Mar 07, 2025 |
you can remove Telescope from a CPanel Laravel hosting. Here's how: Method 1: Using Composer 1. Connect to your server via SSH or access your CPanel's terminal. 2. Navigate to your Laravel project's root directory. 3. Run the following command: ``` bash composer remove laravel/telescope ``` This will remove Telescope and its dependencies from your project. Method 2: Manual Removal 1. Connect to your server via SSH or access your CPanel's file manager. 2. Navigate to your Laravel project's root directory. 3. Delete the following files and directories: ``` bash vendor/laravel/telescope config/telescope.php ``` 4. Remove the Telescope service provider from the `config/app.php` file: ``` // config/app.php 'providers' => [ // ... // Remove the following line // Laravel\Telescope\TelescopeServiceProvider::class, ], ``` 5. Run the following command to clear the cache: ``` bash php artisan cache:clear php artisan config:clear ``` This will manually remove Telescope from your project. Important Notes : - Before removing Telescope, make sure you don't have any dependencies that rely on it. - If you're using a shared hosting environment, ensure that you have the necessary permissions to remove files and directories. - After removing Telescope, you may need to run `composer dump-autoload` to regenerate the autoload files. By following these steps, you should be able to successfully remove Telescope from your CPanel Laravel hosting. |
| Re: Help On Website by ashiraf(m): 3:15pm On Mar 09, 2025 |
That seems to be laravel, edit .env file and turn debug mode from true to false (as simple as that) |
I Need Help On How To Avoid Burnout • I Need Help In Integrating Biometric System On Website(javascript Or PHP) • Thread For 15 Days Tutorial On Website Styling Using CSS • 2 • 3 • 4
First Completed Project In 2026 • Developers For Hire.. We Are A Problem Solving Team.. Try Us • Joining Two Tables In Php