1.1.36 • Published 7 days ago
laravel-request v1.1.36
Install
npm install laravel-request
Connected package
https://github.com/olegstan/laravel-rest
Usage get data
Api.get('active-trade', 'index')
.where('active_id', 115)
.with('currency')
.with('to_account', 'to_account.currency')
.with('from_account', 'from_account.currency')
.orderBy('trade_at', 'DESC')
.all((response) => {
//success
}, () => {
//error
})
}}
or
Api.get('active-trade', 'index')
.where('id', 115)
.with('currency')
.with('to_account', 'to_account.currency')
.with('from_account', 'from_account.currency')
.orderBy('trade_at', 'DESC')
.first((response) => {
//success
}, () => {
//error
})
}}
You can use
all or first or paginate
usage POST data
Api.post('active', 'store', {
user_id: this.props.client.id,
type: 2,
type_id: item.type_id
})
.call((response) => {
//success
}, (response) => {
//error
});
response must be like below, for 200 status should contains key "result" with text "success"
{ "meta": [], "result": "success", "data": [], }
1.1.36
7 days ago
1.1.29
16 days ago
1.1.28
16 days ago
1.1.30
16 days ago
1.1.34
16 days ago
1.1.33
16 days ago
1.1.32
16 days ago
1.1.31
16 days ago
1.1.35
16 days ago
1.1.27
1 month ago
1.1.26
1 month ago
1.1.25
1 month ago
1.1.24
2 months ago
1.1.23
2 months ago
1.1.22
2 months ago
1.1.21
2 months ago
1.1.20
2 months ago
1.1.19
3 months ago
1.1.18
3 months ago
1.1.17
3 months ago
1.1.16
5 months ago
1.1.15
5 months ago
1.1.14
6 months ago
1.1.13
7 months ago
1.1.12
7 months ago
1.1.11
7 months ago
1.1.10
7 months ago
1.1.9
7 months ago
1.1.8
7 months ago
1.1.6
7 months ago
1.1.5
7 months ago
1.1.4
7 months ago
1.1.3
7 months ago
1.1.2
7 months ago
1.1.1
7 months ago
1.0.0
7 months ago