<?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 Jason Varga on Medium]]></title>
        <description><![CDATA[Stories by Jason Varga on Medium]]></description>
        <link>https://medium.com/@jasonvarga?source=rss-6b989e8b7d90------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*-2thU60fVWnGBZBr.jpg</url>
            <title>Stories by Jason Varga on Medium</title>
            <link>https://medium.com/@jasonvarga?source=rss-6b989e8b7d90------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 14 Nov 2026 09:56:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jasonvarga/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[Custom Per-Site Drivers for Laravel Valet]]></title>
            <link>https://medium.com/@jasonvarga/custom-per-site-drivers-for-laravel-valet-958387384dd?source=rss-6b989e8b7d90------2</link>
            <guid isPermaLink="false">https://medium.com/p/958387384dd</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[laravel]]></category>
            <dc:creator><![CDATA[Jason Varga]]></dc:creator>
            <pubDate>Fri, 05 May 2017 15:42:01 GMT</pubDate>
            <atom:updated>2017-05-05T15:43:11.399Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://laravel.com/docs/5.4/valet">Laravel Valet</a> is an incredible tool for getting a local development environment running in no time at all.</p><p>It’s driver based, and each driver adds support for a different type of application, framework, CMS, etc.</p><p>If you’d like to add support for something that doesn’t yet exist, it’s pretty simple to <a href="https://laravel.com/docs/5.4/valet#custom-valet-drivers">create your own driver</a>, and share it with the community.</p><p>While there are a <a href="https://github.com/laravel/valet/tree/master/cli/drivers">number different drivers out of the box</a>, and <a href="https://github.com/search?q=valet+driver">even more that exist out there</a>, some of them can make assumptions about how your project will be set up.</p><p>For example, the Laravel driver assumes your web root is located in a public directory. If you’ve renamed it to public_html, Valet simply won’t recognize that it’s Laravel.</p><p>To remedy this, you can create your own <em>local </em>driver that applies for a single project.</p><p>Just follow the steps to create a driver, but name it LocalValetDriver.php and place it in your project’s root directory.</p><pre>&lt;?php<br><br>class LocalValetDriver extends LaravelValetDriver<br>{<br>    public function serves()<br>    {<br>        return true;<br>    }</pre><pre>    public function frontControllerPath($sitePath, $siteName, $uri)<br>    {<br>        return $sitePath.&#39;/public_html/index.php&#39;;<br>    }<br>}</pre><p>You can either extend the base ValetDriver class to write the whole driver from scratch, or extend an existing driver and just override what you need.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=958387384dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>