File tree Expand file tree Collapse file tree 5 files changed +19
-12
lines changed
Expand file tree Collapse file tree 5 files changed +19
-12
lines changed Original file line number Diff line number Diff line change @@ -22,16 +22,6 @@ public function __construct()
2222 $ this ->meta ['url ' ] = url (config ('larapress.path ' ));
2323 }
2424
25- /**
26- * Get the URI path prefix.
27- *
28- * @return string
29- */
30- public static function path ()
31- {
32- return config ('larapress.path ' , '/blog ' );
33- }
34-
3525 /**
3626 * Check if config file has been set.
3727 *
@@ -82,6 +72,16 @@ public static function trending($limit = null)
8272 return ($ limit ) ? $ trending ->take ($ limit ) : $ trending ;
8373 }
8474
75+ /**
76+ * Get the URI path prefix.
77+ *
78+ * @return string
79+ */
80+ public function path ()
81+ {
82+ return config ('larapress.path ' , '/blog ' );
83+ }
84+
8585 /**
8686 * Accepts three types of parameters. If an array is passed in, it will merge it with the
8787 * existing meta array. If a string is passed in, then it will return the value stored
Original file line number Diff line number Diff line change 44
55use Illuminate \Support \Facades \Route ;
66use Illuminate \Support \ServiceProvider ;
7+ use vicgonvt \LaraPress \Facades \LaraPress ;
78
89class LaraPressBaseServiceProvider extends ServiceProvider
910{
@@ -31,9 +32,9 @@ protected function registerResources()
3132 $ this ->loadViewsFrom (__DIR__ .'/../resources/views ' , 'larapress ' );
3233 $ this ->loadMigrationsFrom (__DIR__ .'/../database/migrations ' );
3334
34- $ this ->registerRoutes ();
3535 $ this ->registerHelpers ();
3636 $ this ->registerFacades ();
37+ $ this ->registerRoutes ();
3738 }
3839
3940 /**
@@ -79,7 +80,7 @@ protected function registerHelpers()
7980 protected function registerFacades ()
8081 {
8182 $ this ->app ->singleton ('LaraPress ' , function ($ app ) {
82- return new LaraPress ();
83+ return new \ vicgonvt \ LaraPress \ LaraPress ();
8384 });
8485 }
8586
Original file line number Diff line number Diff line change 22
33namespace vicgonvt \LaraPress ;
44
5+ use vicgonvt \LaraPress \Facades \LaraPress ;
6+
57class Post extends Model
68{
79 /**
Original file line number Diff line number Diff line change 22
33namespace vicgonvt \LaraPress ;
44
5+ use vicgonvt \LaraPress \Facades \LaraPress ;
6+
57class Series extends Model
68{
79 /**
Original file line number Diff line number Diff line change 22
33namespace vicgonvt \LaraPress ;
44
5+ use vicgonvt \LaraPress \Facades \LaraPress ;
6+
57class Tag extends Model
68{
79 /**
You can’t perform that action at this time.
0 commit comments