diff --git a/src/MaterializeCSS.php b/src/MaterializeCSS.php index 2408bc8..8401618 100644 --- a/src/MaterializeCSS.php +++ b/src/MaterializeCSS.php @@ -1,13 +1,15 @@ \ No newline at end of file diff --git a/src/MaterializeCSSBuilder.php b/src/MaterializeCSSBuilder.php index d58ab5e..150a5bc 100755 --- a/src/MaterializeCSSBuilder.php +++ b/src/MaterializeCSSBuilder.php @@ -1,73 +1,73 @@ '; + public static function get_url_js($full=false, $secure=false) { + if($full == true && $secure == true) { + return secure_asset(self::$file_js_min); } - - private static function tag_js($path) { - return ''; + if($full == true && $secure == false) { + return asset(self::$file_js_min); } + return self::$file_js_min; + } + + private static function tag_css($path) { + return ''; + } + private static function tag_js($path) { + return ''; } +} + ?> diff --git a/src/MaterializeCSSServiceProvider.php b/src/MaterializeCSSServiceProvider.php index 8a06c3f..1763c1d 100644 --- a/src/MaterializeCSSServiceProvider.php +++ b/src/MaterializeCSSServiceProvider.php @@ -1,31 +1,31 @@ publishes([ - __DIR__.'/../assets' => public_path('materialize-css'), - ], 'materializecss'); - $this->registerMaterializeCSSBuilder(); - $this->app->alias('materialize-css', 'Skydiver\LaravelMaterializeCSS\MaterializeCSSBuilder'); - } - - protected function registerMaterializeCSSBuilder() { - $this->app->singleton('materialize-css', function($app) { - return new MaterializeCSSBuilder($app['url']); - }); - } + public function register() { + $this->publishes([ + __DIR__.'/../assets' => public_path('materialize-css'), + ], 'materializecss'); + $this->registerMaterializeCSSBuilder(); + $this->app->alias('materialize-css', 'Skydiver\LaravelMaterializeCSS\MaterializeCSSBuilder'); + } - public function provides() { - return array('materialize-css'); - } + protected function registerMaterializeCSSBuilder() { + $this->app->singleton('materialize-css', function ($app) { + return new MaterializeCSSBuilder($app['url']); + }); + } + public function provides() { + return array('materialize-css'); } +} + ?> \ No newline at end of file