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: elixir.md
+48-48
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ Next, you'll want to pull in [Gulp](http://gulpjs.com) as a global NPM package l
37
37
38
38
The only remaining step is to install Elixir! With a new install of Laravel, you'll find a `package.json` file in the root. Think of this like your `composer.json` file, except it defines Node dependencies instead of PHP. You may install the dependencies it references by running:
39
39
40
-
npm install
40
+
npm install
41
41
42
42
<aname="usage"></a>
43
43
## Usage
@@ -48,7 +48,7 @@ Now that you've installed Elixir, you'll be compiling and concatenating in no ti
48
48
49
49
```javascript
50
50
elixir(function(mix) {
51
-
mix.less("app.less");
51
+
mix.less("app.less");
52
52
});
53
53
```
54
54
@@ -58,18 +58,18 @@ In the example above, Elixir assumes that your Less files are stored in `resourc
58
58
59
59
```javascript
60
60
elixir(function(mix) {
61
-
mix.less([
62
-
'app.less',
63
-
'something-else.less'
64
-
]);
61
+
mix.less([
62
+
'app.less',
63
+
'something-else.less'
64
+
]);
65
65
});
66
66
```
67
67
68
68
#### Compile Sass
69
69
70
70
```javascript
71
71
elixir(function(mix) {
72
-
mix.sass("app.sass");
72
+
mix.sass("app.sass");
73
73
});
74
74
```
75
75
@@ -79,7 +79,7 @@ By default, Elixir, underneath the hood, uses the LibSass library for compilatio
79
79
80
80
```javascript
81
81
elixir(function(mix) {
82
-
mix.rubySass("app.sass");
82
+
mix.rubySass("app.sass");
83
83
});
84
84
```
85
85
@@ -89,7 +89,7 @@ elixir(function(mix) {
89
89
elixir.config.sourcemaps=false;
90
90
91
91
elixir(function(mix) {
92
-
mix.sass("app.scss");
92
+
mix.sass("app.scss");
93
93
});
94
94
```
95
95
@@ -99,7 +99,7 @@ Source maps are enabled out of the box. As such, for each file that is compiled,
99
99
100
100
```javascript
101
101
elixir(function(mix) {
102
-
mix.coffee();
102
+
mix.coffee();
103
103
});
104
104
```
105
105
@@ -118,26 +118,26 @@ elixir(function(mix) {
118
118
119
119
```javascript
120
120
elixir(function(mix) {
121
-
mix.phpUnit();
121
+
mix.phpUnit();
122
122
});
123
123
```
124
124
125
125
#### Trigger PHPSpec Tests
126
126
127
127
```javascript
128
128
elixir(function(mix) {
129
-
mix.phpSpec();
129
+
mix.phpSpec();
130
130
});
131
131
```
132
132
133
133
#### Combine Stylesheets
134
134
135
135
```javascript
136
136
elixir(function(mix) {
137
-
mix.styles([
138
-
"normalize.css",
139
-
"main.css"
140
-
]);
137
+
mix.styles([
138
+
"normalize.css",
139
+
"main.css"
140
+
]);
141
141
});
142
142
```
143
143
@@ -147,21 +147,21 @@ Paths passed to this method are relative to the `resources/css` directory.
147
147
148
148
```javascript
149
149
elixir(function(mix) {
150
-
mix.styles([
151
-
"normalize.css",
152
-
"main.css"
153
-
], 'public/build/css/everything.css');
150
+
mix.styles([
151
+
"normalize.css",
152
+
"main.css"
153
+
], 'public/build/css/everything.css');
154
154
});
155
155
```
156
156
157
157
#### Combine Stylesheets From A Custom Base Directory
Copy file name to clipboardExpand all lines: eloquent.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -1304,10 +1304,10 @@ When you pass a model to the `route` or `action` methods, it's primary key is in
1304
1304
1305
1305
In this example the `$user->id` property will be inserted into the `{user}` place-holder of the generated URL. However, if you would like to use another property instead of the ID, you may override the `getRouteKey` method on your model:
0 commit comments