Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

nsvetozarevic's avatar

Js code in blade files

I'm using datatables for my project, and I'm wondering how bad is it if I leave datatables configuration js code in blade file (I'm using server side processing so access to named routes would be significant). I know there are libraries that can export routes to js files, but this is really simple project and I have datatables on maybe 3 places, so I think it would be an overhead. I'm interested to hear your opinions?

0 likes
0 replies

Please or to participate in this conversation.