<?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: Rajen Trivedi</title>
    <description>The latest articles on DEV Community by Rajen Trivedi (@rajtri_1710).</description>
    <link>https://dev.to/rajtri_1710</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%2F839689%2Fc35e8849-47a5-4424-9141-c2210e8c2fc4.jpg</url>
      <title>DEV Community: Rajen Trivedi</title>
      <link>https://dev.to/rajtri_1710</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rajtri_1710"/>
    <language>en</language>
    <item>
      <title>Convert your normal Laravel Application in to SPA</title>
      <dc:creator>Rajen Trivedi</dc:creator>
      <pubDate>Mon, 04 Apr 2022 09:07:19 +0000</pubDate>
      <link>https://dev.to/rajtri_1710/convert-your-normal-laravel-application-in-to-spa-1c6c</link>
      <guid>https://dev.to/rajtri_1710/convert-your-normal-laravel-application-in-to-spa-1c6c</guid>
      <description>&lt;p&gt;I have recently published my first laravel package named laravel-spa, which is developed using javascript library turbolinks.&lt;/p&gt;

&lt;p&gt;You can use this package in any normal laravel application, the installation &amp;amp; configuration process is very easy, you just have to run below artisan command on the root of your project.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;composer require rajentrivedi/laravel-spa&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;After successful installation, you need to use below blade directive in your master blade, normally where we load all the assets.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;@spa&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Your javascript code or jQuery code should be between these blade directives.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;@spascrit&lt;/code&gt; &amp;amp; &lt;code&gt;@endspascript&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;If you want to disable this package for certain route, you can use &lt;/p&gt;

&lt;p&gt;&lt;code&gt;@disablespa&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Example&lt;br&gt;
&lt;code&gt;&amp;lt;a href="{{route('excel.download')}}" class="btn btn-primary btn-md m-5" @disablespa&amp;gt;Excel&amp;lt;/a&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Now, page load speed of your application is faster compare to normal application.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/rajentrivedi/laravel-spa"&gt;Github link&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>turbolinks</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
