Check out example codes for "toast in laravel". It will help you in understanding the concepts better.

Code Example 1

Toast::message('message', 'level', 'title');
toast()->message('message', 'level', 'title');
toast('message', 'title');

Learn ReactJs, React Native from akashmittal.com