<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nabil Anam</title>
    <description>The latest articles on DEV Community by Nabil Anam (@nabilanam).</description>
    <link>https://dev.to/nabilanam</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F185647%2F9031ebf8-2e39-4fdc-8c98-b9deaa51c480.jpeg</url>
      <title>DEV Community: Nabil Anam</title>
      <link>https://dev.to/nabilanam</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nabilanam"/>
    <language>en</language>
    <item>
      <title>Laravel ziggy route completion for vscode</title>
      <dc:creator>Nabil Anam</dc:creator>
      <pubDate>Mon, 02 Aug 2021 23:11:52 +0000</pubDate>
      <link>https://dev.to/nabilanam/laravel-ziggy-route-autocompletion-for-vscode-5nk</link>
      <guid>https://dev.to/nabilanam/laravel-ziggy-route-autocompletion-for-vscode-5nk</guid>
      <description>&lt;p&gt;I always felt there was a lacking for route completions when I was using &lt;code&gt;tighten/ziggy&lt;/code&gt;. It became almost necessity when I decided to use inertia js. Inertia, what not to like!&lt;/p&gt;

&lt;p&gt;Anyway, I was searching ziggy in vs code marketplace every now and then and finally decided to build my own extension.&lt;/p&gt;

&lt;p&gt;At first this extension loads route names from &lt;code&gt;resources/js/ziggy.js&lt;/code&gt;. When it finds &lt;code&gt;route()&lt;/code&gt; or &lt;code&gt;$route()&lt;/code&gt; in js code it shows matched suggestions from extension's cached list. My main hiccup was importing the route list. I had to transform es6 code on the fly because of ziggy's export not being supported by node js.&lt;/p&gt;

&lt;p&gt;Another problem I was facing is &lt;code&gt;artisan ziggy:generate&lt;/code&gt; command. I had to run this command every time I made a new route or changed something. This extension solves this problem too. It watches &lt;code&gt;web.php&lt;/code&gt; for changes and runs the artisan command automatically. Of course this can be disabled too.&lt;/p&gt;

&lt;p&gt;Let me know what do you think :)&lt;/p&gt;

&lt;p&gt;Links: &lt;a href="https://marketplace.visualstudio.com/items?itemName=nabil.ziggy-routes"&gt;Extension&lt;/a&gt;, &lt;a href="https://github.com/nabilanam/ziggy-routes"&gt;Repository&lt;/a&gt;&lt;/p&gt;

</description>
      <category>vscode</category>
      <category>ziggy</category>
      <category>laravel</category>
      <category>vue</category>
    </item>
  </channel>
</rss>
