public function boot()
 {
     // Define the path for the view files
     $this->loadViewsFrom(__DIR__ . '/../resources/views', cd_jsplugins_tag());
     $this->publishes([__DIR__ . '/../resources/assets' => public_path('assets/jsplugins')], 'public');
     $this->publishes([__DIR__ . '/../resources/views' => base_path('resources/views/claremontdesign/jsplugins')], 'views');
     // Loading the routes file
     require __DIR__ . '/Http/routes.php';
 }
示例#2
0
 /**
  * Return the public path to an asset.
  * 	path to return is relative to package template folder.
  * 	If you want to return an asset relative to the public folder,
  * 	use larvel's asset() instead
  * @param string $asset The asset
  * @return string
  */
 function cd_jsplugins_asset($asset = null)
 {
     return asset('assets') . '/' . fixDoubleSlash(cd_jsplugins_tag() . '/templates/' . cd_template() . '/' . $asset);
 }