Support the ongoing development of Laravel.io →
Configuration Views Laravel.io

How to load JS and CSS file inside laravel method I have to convert the below code to laravel

class vpl_editor_util{
	static function generate_jquery(){
		global $PAGE;
			$PAGE->requires->css(new moodle_url('/mod/vpl/editor/jquery/themes/smoothness/jquery-ui.css'));
			$PAGE->requires->js(new moodle_url('/mod/vpl/editor/jquery/jquery-1.9.1.js'),true);
			$PAGE->requires->js(new moodle_url('/mod/vpl/editor/jquery/jquery-ui-1.10.3.custom.js'),true);
			$PAGE->requires->js(new moodle_url('/mod/vpl/editor/VPL_jquery_no_conflict.js'),true);
		}
	}
Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

nijesh17 nijesh17 Joined 18 Jul 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.