#unable to redirect in nested component's mount

1 messages · Page 1 of 1 (latest)

dry arch
supple ginkgo
#

i'd suggest you redirect in your route method, and only return the view with the livewire component in it if your condition is met, most easy fix

#

    $yourCondition = false;
    if($yourCondition){
        return view('view-with-component');
    }

    return redirect('/up-and-away');
});```