Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel blade php variable concatenate javascript variable

// Imagine the `api.page` route value is `/controller/{page}`:
ajax: "{{ route(api.page) }}".replace("{page}", page);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #blade #php #variable #concatenate #javascript #variable
ADD COMMENT
Topic
Name
2+5 =