<?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: Mike-Carolan</title>
    <description>The latest articles on DEV Community by Mike-Carolan (@mikecarolan).</description>
    <link>https://dev.to/mikecarolan</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%2F776792%2F7e8ab0ab-975c-43c5-9aee-94c8ca27b358.jpeg</url>
      <title>DEV Community: Mike-Carolan</title>
      <link>https://dev.to/mikecarolan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mikecarolan"/>
    <language>en</language>
    <item>
      <title>NPM vs. Composer/Laravel 8.x, and Heroku</title>
      <dc:creator>Mike-Carolan</dc:creator>
      <pubDate>Sat, 18 Dec 2021 18:52:55 +0000</pubDate>
      <link>https://dev.to/mikecarolan/npm-vs-composerlaravel-8x-and-heroku-56o9</link>
      <guid>https://dev.to/mikecarolan/npm-vs-composerlaravel-8x-and-heroku-56o9</guid>
      <description>&lt;p&gt;Hi, I hope this will help some people! My newest project has been giving me some headaches - but hey! Who doesn't love a challenge?&lt;br&gt;
Challenges are great but when you end up getting tripped up in the details, a challenge can become a nuisance in a hurry.&lt;br&gt;
For context, I am using Laravel 8.x, PostgreSQL, and PHP 7.3.  I am deploying my application to Heroku and all is great until you run into some pesky issues with the composer.json file.  Historically, I have used NPM as my default package manager and haven't run into any troubles... until now. I utilized the Laravel/UI along with the vue auth model. I used NPM as my package manager and all went well until I went to deploy the application on Heroku.  I received the following error:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;In order to use the Auth::routes() method, please install the laravel/ui package. &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I was puzzled by this and did some digging. I didn't find any "specific" info dealing with this issue - but after some trial and error (i.e. making sure that the bootstrap/cache/gitignore file was included in my repo - which did NOT work), I backed out of my latest push to Git and did the following:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;composer require laravel/ui&lt;/li&gt;
&lt;li&gt;composer install&lt;/li&gt;
&lt;li&gt;composer dump-autoload&lt;/li&gt;
&lt;li&gt;php artisan config:cache (eliminates cached values)&lt;/li&gt;
&lt;li&gt;commit and push to git&lt;/li&gt;
&lt;li&gt;deploy to heroku&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This worked! Hallelujah! So with the combination of tech that I am using for this project - it looks like that you must use composer vs npm for the laravel/ui dependencies to work properly.&lt;/p&gt;

&lt;p&gt;Hope this helps some people!!!&lt;/p&gt;

</description>
      <category>npm</category>
      <category>heroku</category>
      <category>composer</category>
      <category>laravel</category>
    </item>
  </channel>
</rss>
