You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: views.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -108,7 +108,7 @@ Let's organize our view composers within a [service provider](/docs/5.0/provider
108
108
109
109
});
110
110
}
111
-
111
+
112
112
/**
113
113
* Register
114
114
*
@@ -123,7 +123,7 @@ Let's organize our view composers within a [service provider](/docs/5.0/provider
123
123
124
124
> **Note:** Laravel does not include a default directory for view composers. You are free to organize them however you wish. For example, you could create an `App\Http\ViewComposers` directory.
125
125
126
-
Rememberto add the service provider in the `config/app.php` configuration file. This file contains a providers array where you can list the names of your service providers.
126
+
Remember, you will need to add the service provider to the `providers` array in the `config/app.php` configuration file.
127
127
128
128
Now that we have registered the composer, the `ProfileComposer@compose` method will be executed each time the `profile` view is being rendered. So, let's define the composer class:
0 commit comments