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

sylvain92's avatar

vendor issue on forge deploy

hi not sure about section in forum. I have change RegistersUsers.php in /vendor/laravel/ui/auth_backend

 public function register(Request $request)
    {
        // ...

        $user = $this->create($request->all());

        event(new Registered($user));
        $user->channel()->create([
            'name' => $request->channel_name,
            'slug' => Str::slug($request->channel_name, '-'),
            'uid' => uniqid(true),
        ]);
       
        // ...
    }

but vendor is set inside git ignore file. that why It never update on push and deploy on forge laravel.

how to fix this issue ?

regards

0 likes
2 replies
neilstee's avatar

@sylvain92 why you would change that? You NEVER change files inside vendor folder that is why it is ignored in git by default.

sylvain92's avatar

I just follow tutorial on udemy , building-youtube-clone-using-laravel-and-livewire and it show this, but it's seems not clear for tutor too

Please or to participate in this conversation.