Install Larvel telescope for dev env

$ composer require laravel/telescope –dev

Problem 1
– phpoffice/phpspreadsheet 1.5.2 requires ext-zip *

$ sudo port install php72-zip

 

Problem 1
– dompdf/dompdf v0.8.2 requires ext-gd *

$ sudo port install php72-gd

php artisan telescope:install

php artisan migrate
php artisan telescope:publish


After running telescope:install, you should remove the TelescopeServiceProvider service provider registration from your app configuration file. Instead, manually register the service provider in the register method of your AppServiceProvider:

use Laravel\Telescope\TelescopeServiceProvider;

/**
 * Register any application services.
 *
 * @return void
 */
public function register()
{
    if ($this->app->isLocal()) {
        $this->app->register(TelescopeServiceProvider::class);
    }
}

Leave a Reply

Your email address will not be published. Required fields are marked *