File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change
1
+ language : php
2
+
3
+ php :
4
+ - ' 7.1'
5
+ - ' 7.2'
6
+ - ' 7.3'
7
+
8
+ before_script :
9
+ - composer install
10
+
11
+ script : phpunit
Original file line number Diff line number Diff line change 1
1
# Laravel RespondTo
2
2
3
+ ![ Travis] ( https://api.travis-ci.org/paulhenri-l/laravel-respond-to.svg?branch=master )
4
+
3
5
This library will provide you with rails like ` respond_to ` functionality. This
4
6
feature allows a controller action to return different responses according to
5
7
the request ` Accept ` header (the format).
@@ -34,8 +36,8 @@ class MyController
34
36
}
35
37
```
36
38
37
- This controller is now able to respond to ` html ` , ` json ` and ` txt ` requests with
38
- different responses.
39
+ This controller is now able to respond to different formats with different
40
+ responses.
39
41
40
42
* Each call to the ` to ` function must be followed by a ` with ` or ` withView `
41
43
call.*
Original file line number Diff line number Diff line change 10
10
}
11
11
],
12
12
"require" : {
13
+ "php" : " ^7.1" ,
13
14
"laravel/framework" : " ^5.8"
14
15
},
15
16
"require-dev" : {
You can’t perform that action at this time.
0 commit comments