It sounds like very bad idea. Generation of any code to be executed is considered dangerous and just clumsy approach in most cases. Why don't you return raw data (like JSON) and then combine it to jQuery code in proper JavaScript file?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community