Saturday, March 4, 2017

Laravel: Place for controller echo in blade view

First Laravel Project.

How to define a place in the view for the echo in controller?

I have sometimes "echoes" in my controller. For example if a MySQL statement has null output it echoes "MySQL select is empty" or after succesfull fileupload: "File upload is succesfull".

Right now it appears outside of the body tag at the top left corner of the screen. I want to place it inside the main section or a modall.



via Feralheart

Advertisement