[Vuejs]-Laravel package return js

0👍

You can use your route as follows:

Route::get('js', 'AssetController@js')->name('underconstruction.js');

Also, I see that $content variable is only assigned to the file path.
You will need to do something like…

$content = file_get_contents(__DIR__ . '/../views/main.vue');

Leave a comment