window.location.href = '/plant_types/'+this.plant.id;
How would I set the session variable so the page '/plant_types/'+this.plant.id' displays a flash('message'). In laravel controller I would normally use
Yes but my component posts to laravel and on response redirects to window.location.href = '/plant_types/'+this.plant.id; to ensure the data has been updated.
Not really explained this very well. I have built the Vue Flash message component in Episode 29 of Lets build a forum with Laravel.
I am redirecting from my component after the response from the back end. This ensures my data is updated before I display it. I want to redirect to '/plant_types/'+this.plant.id and then display a the success message. As I'm redirecting from the component I used