<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by I&#39;m Luis! \(^-^)/ on Medium]]></title>
        <description><![CDATA[Stories by I&#39;m Luis! \(^-^)/ on Medium]]></description>
        <link>https://medium.com/@Zerquix18?source=rss-b82448e54bcd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QINVXSSccD6yS7A7Em-fJA.png</url>
            <title>Stories by I&amp;#39;m Luis! \(^-^)/ on Medium</title>
            <link>https://medium.com/@Zerquix18?source=rss-b82448e54bcd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 21:37:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Zerquix18/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Full guide to install and set up Laravel Telescope]]></title>
            <link>https://medium.com/@Zerquix18/full-guide-to-install-and-set-up-laravel-telescope-daf558f734f2?source=rss-b82448e54bcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/daf558f734f2</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[laravel-telescope]]></category>
            <category><![CDATA[laravel]]></category>
            <dc:creator><![CDATA[I'm Luis! \(^-^)/]]></dc:creator>
            <pubDate>Wed, 31 Oct 2018 00:25:17 GMT</pubDate>
            <atom:updated>2018-10-31T00:25:53.575Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/388/1*edtnG4peK3sfLO45nHeB3Q.png" /></figure><p>Laravel Telescope is a new debug assistant for the Laravel framework, created by the same people who created Laravel. It was first announced at Laracon AU, and its beta was released shortly after. It’s free and open source, licensed under the MIT license.</p><p>You can use Laravel Telescope to debug your requests, exceptions, databases, cache, and much more in real time by accessing a specific route in your local environment.</p><h4>Installing Laravel Telescope</h4><p>Before installing Laravel telescope, you need to have Laravel installed. More specifically, you need <strong>Laravel 5.7.7</strong>. If you want a fresh install, you can check out the <a href="https://laravel.com/docs/5.7/#installing-laravel">Laravel 5.7’s installation guide</a>, or you can <a href="https://laravel.com/docs/5.7/upgrade">upgrade</a> if you had Laravel installed already.</p><p>To install Laravel telescope, run:</p><pre>composer require laravel/telescope --dev</pre><p>You might get this error if you don’t have the bcmath extension installed:</p><pre>Problem 1<br>    - moontoast/math 1.1.2 requires ext-bcmath * -&gt; the requested PHP extension bcmath is missing from your system.<br>    - moontoast/math 1.1.1 requires ext-bcmath * -&gt; the requested PHP extension bcmath is missing from your system.<br>    - moontoast/math 1.1.0 requires ext-bcmath * -&gt; the requested PHP extension bcmath is missing from your system.<br>    - laravel/telescope v0.1.5 requires moontoast/math ^1.1 -&gt; satisfiable by moontoast/math[1.1.0, 1.1.1, 1.1.2].<br>    - Installation request for laravel/telescope ^0.1.5 -&gt; satisfiable by laravel/telescope[v0.1.5].</pre><p>You can quickly fix this by running:</p><pre>sudo apt install php7.2-bcmath<br>sudo service apache2 restart</pre><p>Use php7.1-bcmath if you have PHP 7.1.</p><p>Now you can run composer require laravel/telescope --dev again.</p><p>After the installation is set and done, you can move prepare the assets, config files and database by running:</p><pre>php artisan telescope:install<br>php artisan migrate</pre><h4>Configuring Laravel Telescope</h4><p>Right after the installation, you can open the route /telescope in your browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-8DS9XAEtKjYWnnJDoD7Pw.png" /><figcaption>It will only work if your environment is “local”.</figcaption></figure><p>You can change this route in the config/telescope.php file. This file allows you to configure Telescope. The most important options are:</p><p><strong>path</strong></p><p>This is the path in your app in which Telescope will be accessible. Don’t include slashes. The default value is telescope .</p><p><strong>driver</strong></p><p>This is where Telescope will store the data. To date, <strong>you can’t change this value</strong>. database is the only value supported.</p><p><strong>storage</strong></p><p>This will determine which database connection to use. It’ll use your default database connection.</p><p><strong>limit</strong></p><p>This will determine how much data Telescope will store for everything you will debug. The default value is 100 .</p><h4>Determining who has access to Telescope</h4><p>In your local environment, any user can access Telescope. In other environments, only selected users can access Telescope. To configure the access in, let’s say, production, you need to go to app/Providers/TelescopeServiceProvider.php and find the gate function.</p><pre>protected function gate()<br>    {<br>        Gate::define(&#39;viewTelescope&#39;, function ($user) {<br>            return in_array($user-&gt;email, [<br>                //<br>            ]);<br>        });<br>    }</pre><p>You can add a list of emails. Users with this email will have access to Telescope. However, my recommended approach for this is to use <strong>environment variables and IDs</strong>, because:</p><ul><li>You can have different emails locally / in production.</li><li>You can change your email and then you’ll have to change your code.</li><li>This feels like storing access tokens in your code, especially if you’re using version control.</li></ul><p>To use IDs, you can modify the function and make it look like this:</p><pre>protected function gate()<br>    {<br>        Gate::define(&#39;viewTelescope&#39;, function ($user) {<br>            $ids = env(&#39;TELESCOPE_USERS&#39;, &#39;&#39;);<br>            $ids = explode(&#39;,&#39;, $ids);<br>            return in_array($user-&gt;id, $ids);<br>        });<br>    }</pre><p>Now you can set your environment variable, separating them with a comma:</p><pre>TELESCOPE_USERS=1,2</pre><p>Remember not to add spaces between your IDs.</p><p>Now you can explore Laravel Telescope!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=daf558f734f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>