Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

evmusonov's avatar

Damaged app.js after php artisan ui vue

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;
    }
}
0 likes
3 replies
guybrush_threepwood's avatar
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.

evmusonov's avatar

Yeah, it works, silly question :) But it's weird that this problem was from scratch. Thank you

1 like

Please or to participate in this conversation.