Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2b48d5d

Browse files
authored
feat: allow customization of styles by publishing vendor files
The vendor files are published to `resources/views/vendor/<package>` by default, following Laravel conventions (for example, Laravel pulse does that already).If the file exist in that location, Laravel automatically sources the customized file instead of the default package one.If users do not want to override any vendor files, they can simply add `resources/views/vendor/` or `vendor/**` to gitignore.
1 parent71ca700 commit2b48d5d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎src/ServiceProvider.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public function boot()
4141

4242
$this->publishes([
4343
$this->fullPath('config/pretty-routes.php') =>$this->app->configPath('pretty-routes.php'),
44+
$this->fullPath('resources/views/styles.blade.php') =>resource_path('views/vendor/pretty-routes/styles.blade.php'),
4445
]);
4546

4647
$this->loadRoutesFrom(

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp