Level 33
That is mighty strange, a JS file replaced by a PHP class.
Can't you delete it and run php artisan ui vue again?
I believe that command should generate a new "app.js" file as it now needs to reference vue.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I created a new project: laravel new vue-app
And installed laravel/ui, after that I executed command: php artisan ui vue.
And app. js has this content:
namespace Illuminate\Auth\Events;
use Illuminate\Queue\SerializesModels;
class Verified
{
use SerializesModels;
/**
* The verified user.
*
* @var \Illuminate\Contracts\Auth\MustVerifyEmail
*/
public $user;
/**
* Create a new event instance.
*
* @param \Illuminate\Contracts\Auth\MustVerifyEmail $user
* @return void
*/
public function __construct($user)
{
$this->user = $user;
}
}
That is mighty strange, a JS file replaced by a PHP class.
Can't you delete it and run php artisan ui vue again?
I believe that command should generate a new "app.js" file as it now needs to reference vue.
Please or to participate in this conversation.