NAV -image
bash javascript

Introduction

This documentation aims to provide all the information you need to work with our API.

Base URL

http://localhost

Authenticating requests

This API is not authenticated.

Authentication

APIs for Authentication

Social auth

Example request:

curl -X POST \
    "http://localhost/api/v1/social-auth/iusto" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"device_token":"veniam","login_by":"sunt","oauth_token":"voluptatibus"}'
const url = new URL(
    "http://localhost/api/v1/social-auth/iusto"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "device_token": "veniam",
    "login_by": "sunt",
    "oauth_token": "voluptatibus"
}

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):

{
    "token_type": "Bearer",
    "expires_in": 1296000,
    "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjM4ZTE2N2YyNzlkM2UzZWEzODM5ZGNlMmY4YjdiNDQxYjMwZDQ0YmVlYjAzOWNmZjMzMmE2ZTc0ZDY1MDRiNmE3NjhhZWQzYWU5ZjE5MGUwIn0.eyJhdWQiOiIyIiwiacaP8zkCWTpzh8ZtWBUYVrPkYRWbwz-L5x6dx2d901Aq_7-LwlzPMtP0N93kVfFuLwK2RCzlVtcCTxZaUW9S7x3Y",
    "refresh_token": "def5020045b028faaca5890136e3a8d7c850fb6b95cf2f78698b2356e544ee567cef1efa4099eaea3e3738ba11c9baabb1188a3d49de316e4451f32cdaa6017ebb9ff748fdf43d84b4e796a0456c4125ebaeca7930491fe315e4b86adf7879992509667dd68eacc488bddb2cc005357cdab1da5f0582659eef11e06bf2447c1209f6c17c83453cd6fa6dd6d5d98ff7129a6d3f3509c6c99fba379ea4aee85c0eb89b5f648682484452219d1c592d80c3165657a519f790ba19ad347774c0a199"
}

Request      

POST api/v1/social-auth/{provider}

URL Parameters

provider  string  

Body Parameters

device_token  string optional  
optional fcm_token for push notification

login_by  string  
i.e android,ios

oauth_token  string  
from social provider

Braintree Payment Gateway

Payment-Related Apis

Get Client token for brain tree

Example request:

curl -X GET \
    -G "http://localhost/api/v1/payment/braintree/client/token" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/payment/braintree/client/token"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):

{
    "success": true,
    "message": "success",
    "data": {
        "client_token": "eyJ2ZXJzaW9uIjoyLCJhdXRob3JpemF0aW9uRmluZ2VycHJpbnQiOiJleUowZVhBaU9pSktWMVFpTENKaGJHY2lPaUpGVXpJMU5pSXNJbXRwWkNJNklqSXdNVGd3TkRJMk1UWXRjMkZ1WkdKdmVDSXNJbWx6Y3lJNklrRjFkR2g1SW4wLmV5SmxlSEFpT2pFMU9URTBOalE1TnpZc0ltcDBhU0k2SWpGbFpUZG1aREExTFRJNU1qRXRORGt4TWkxaFlXSmpMVEJtTTJVMVpUVXlPVEkzWVNJc0luTjFZaUk2SW5CM1l6Sm9aRFEyWnpremN6UjZlVElpTENKcGMzTWlPaUpCZFhSb2VTSXNJb"
    }
}

Request      

GET api/v1/payment/braintree/client/token

Add money to wallet

Example request:

curl -X POST \
    "http://localhost/api/v1/payment/braintree/add/money" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"amount":2991.704162083,"payment_nonce":"perferendis"}'
const url = new URL(
    "http://localhost/api/v1/payment/braintree/add/money"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "amount": 2991.704162083,
    "payment_nonce": "perferendis"
}

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):

{
    "success": true,
    "message": "money_added_successfully",
    "data": {
        "id": "1195a787-ba13-4a74-b56c-c48ba4ca0ca0",
        "user_id": 15,
        "amount_added": 2500,
        "amount_balance": 2500,
        "amount_spent": 0,
        "currency_code": "INR",
        "created_at": "1st Sep 10:45 PM",
        "updated_at": "1st Sep 10:51 PM"
    }
}

Request      

POST api/v1/payment/braintree/add/money

Body Parameters

amount  number  
amount entered by user

payment_nonce  string  
payment nonce added by by user

Cancellation Management

APIs for User & cancellations

List Cancellation Reasons

Example request:

curl -X GET \
    -G "http://localhost/api/v1/common/cancallation/reasons" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/common/cancallation/reasons"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):

{
    "success": true,
    "message": "cancellation_reasons_listed",
    "data": [
        {
            "id": "e5cf4a77-93ee-48fd-b889-6dcf4b7041e3",
            "user_type": "user",
            "payment_type": "free",
            "arrival_status": "before",
            "reason": "test-reason",
            "active": 1,
            "created_at": "2020-08-31 18:13:18",
            "updated_at": "2020-08-31 18:13:18",
            "deleted_at": null
        }
    ]
}

Request      

GET api/v1/common/cancallation/reasons

URL Parameters

arrived  string  
arrived status of the trip request. the value must be after/before

Complaints apis

APIs for Complaints

List complaint titles

Example request:

curl -X GET \
    -G "http://localhost/api/v1/common/complaint-titles?complaint_type=inventore" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/common/complaint-titles"
);

let params = {
    "complaint_type": "inventore",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):

{
    "success": true,
    "message": "complaint_titles_listed",
    "data": [
        {
            "id": "e5cf4a77-93ee-48fd-b889-6dcf4b7041e3",
            "user_type": "user",
            "title": "test-title",
            "complaint_type": "general",
            "active": 1,
            "created_at": "2020-08-31 18:13:18",
            "updated_at": "2020-08-31 18:13:18",
            "deleted_at": null
        }
    ]
}

Request      

GET api/v1/common/complaint-titles

Query Parameters

complaint_type  string  
complaint type for the complaint request

Make Complaints

Example request:

curl -X POST \
    "http://localhost/api/v1/common/make-complaint" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"complaint_title_id":10,"description":"exercitationem","request_id":"fugit"}'
const url = new URL(
    "http://localhost/api/v1/common/make-complaint"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "complaint_title_id": 10,
    "description": "exercitationem",
    "request_id": "fugit"
}

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
"success": true,
"message": "complaint_posted_successfully",
}

Request      

POST api/v1/common/make-complaint

Body Parameters

complaint_title_id  integer  
id of complaint titles

description  string  
description of complaints

request_id  uuid optional  
optional request id for complaint against the request

Countries

Get countries

Get all the countries.

Example request:

curl -X GET \
    -G "http://localhost/api/v1/countries" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/countries"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):

{
    "success": true,
    "data": [
        {
            "id": 1,
            "dial_code": "+93",
            "name": "Afghanistan",
            "code": "AF",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/AF.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 2,
            "dial_code": "+355",
            "name": "Albania",
            "code": "AL",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/AL.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 3,
            "dial_code": "+672",
            "name": "Antarctica",
            "code": "AQ",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/AQ.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 4,
            "dial_code": "+213",
            "name": "Algeria",
            "code": "DZ",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/DZ.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 5,
            "dial_code": "+1",
            "name": "American Samoa",
            "code": "AS",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/AS.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 6,
            "dial_code": "+376",
            "name": "Andorra",
            "code": "AD",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/AD.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 7,
            "dial_code": "+244",
            "name": "Angola",
            "code": "AO",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/AO.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 8,
            "dial_code": "+1",
            "name": "Antigua and Barbuda",
            "code": "AG",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/AG.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 9,
            "dial_code": "+994",
            "name": "Azerbaijan",
            "code": "AZ",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/AZ.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 10,
            "dial_code": "+54",
            "name": "Argentina",
            "code": "AR",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/AR.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 11,
            "dial_code": "+61",
            "name": "Australia",
            "code": "AU",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/AU.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 12,
            "dial_code": "+43",
            "name": "Austria",
            "code": "AT",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/AT.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 13,
            "dial_code": "+1",
            "name": "Bahamas",
            "code": "BS",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/BS.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 14,
            "dial_code": "+973",
            "name": "Bahrain",
            "code": "BH",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/BH.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 15,
            "dial_code": "+880",
            "name": "Bangladesh",
            "code": "BD",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/BD.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 16,
            "dial_code": "+374",
            "name": "Armenia",
            "code": "AM",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/AM.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 17,
            "dial_code": "+1",
            "name": "Barbados",
            "code": "BB",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/BB.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 18,
            "dial_code": "+32",
            "name": "Belgium",
            "code": "BE",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/BE.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 19,
            "dial_code": "+1",
            "name": "Bermuda",
            "code": "BM",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/BM.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 20,
            "dial_code": "+975",
            "name": "Bhutan",
            "code": "BT",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/BT.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 21,
            "dial_code": "+591",
            "name": "Bolivia, Plurinational State of",
            "code": "BO",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/BO.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 22,
            "dial_code": "+387",
            "name": "Bosnia and Herzegovina",
            "code": "BA",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/BA.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 23,
            "dial_code": "+267",
            "name": "Botswana",
            "code": "BW",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/BW.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 24,
            "dial_code": "+47",
            "name": "Bouvet Island",
            "code": "BV",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/BV.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 25,
            "dial_code": "+55",
            "name": "Brazil",
            "code": "BR",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/BR.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 26,
            "dial_code": "+501",
            "name": "Belize",
            "code": "BZ",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/BZ.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 27,
            "dial_code": "+246",
            "name": "British Indian Ocean Territory",
            "code": "IO",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/IO.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 28,
            "dial_code": "+677",
            "name": "Solomon Islands",
            "code": "SB",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/SB.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 29,
            "dial_code": "+1",
            "name": "Virgin Islands, British",
            "code": "VG",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/VG.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 30,
            "dial_code": "+673",
            "name": "Brunei Darussalam",
            "code": "BN",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/BN.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 31,
            "dial_code": "+359",
            "name": "Bulgaria",
            "code": "BG",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/BG.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 32,
            "dial_code": "+95",
            "name": "Myanmar",
            "code": "MM",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/MM.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 33,
            "dial_code": "+257",
            "name": "Burundi",
            "code": "BI",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/BI.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 34,
            "dial_code": "+375",
            "name": "Belarus",
            "code": "BY",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/BY.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 35,
            "dial_code": "+855",
            "name": "Cambodia",
            "code": "KH",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/KH.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 36,
            "dial_code": "+237",
            "name": "Cameroon",
            "code": "CM",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/CM.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 37,
            "dial_code": "+1",
            "name": "Canada",
            "code": "CA",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/CA.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 38,
            "dial_code": "+238",
            "name": "Cape Verde",
            "code": "CV",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/CV.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 39,
            "dial_code": "+1",
            "name": "Cayman Islands",
            "code": "KY",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/KY.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 40,
            "dial_code": "+236",
            "name": "Central African Republic",
            "code": "CF",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/CF.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 41,
            "dial_code": "+94",
            "name": "Sri Lanka",
            "code": "LK",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/LK.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 42,
            "dial_code": "+235",
            "name": "Chad",
            "code": "TD",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/TD.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 43,
            "dial_code": "+56",
            "name": "Chile",
            "code": "CL",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/CL.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 44,
            "dial_code": "+86",
            "name": "China",
            "code": "CN",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/CN.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 45,
            "dial_code": "+886",
            "name": "Taiwan, Province of China",
            "code": "TW",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/TW.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 46,
            "dial_code": "+61",
            "name": "Christmas Island",
            "code": "CX",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/CX.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 47,
            "dial_code": "+61",
            "name": "Cocos (Keeling) Islands",
            "code": "CC",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/CC.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 48,
            "dial_code": "+57",
            "name": "Colombia",
            "code": "CO",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/CO.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 49,
            "dial_code": "+269",
            "name": "Comoros",
            "code": "KM",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/KM.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 50,
            "dial_code": "+262",
            "name": "Mayotte",
            "code": "YT",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/YT.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 51,
            "dial_code": "+242",
            "name": "Congo",
            "code": "CG",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/CG.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 52,
            "dial_code": "+243",
            "name": "Congo, the Democratic Republic of the",
            "code": "CD",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/CD.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 53,
            "dial_code": "+682",
            "name": "Cook Islands",
            "code": "CK",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/CK.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 54,
            "dial_code": "+506",
            "name": "Costa Rica",
            "code": "CR",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/CR.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 55,
            "dial_code": "+385",
            "name": "Croatia",
            "code": "HR",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/HR.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 56,
            "dial_code": "+53",
            "name": "Cuba",
            "code": "CU",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/CU.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 57,
            "dial_code": "+357",
            "name": "Cyprus",
            "code": "CY",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/CY.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 58,
            "dial_code": "+420",
            "name": "Czech Republic",
            "code": "CZ",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/CZ.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 59,
            "dial_code": "+229",
            "name": "Benin",
            "code": "BJ",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/BJ.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 60,
            "dial_code": "+45",
            "name": "Denmark",
            "code": "DK",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/DK.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 61,
            "dial_code": "+1",
            "name": "Dominica",
            "code": "DM",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/DM.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 62,
            "dial_code": "+1",
            "name": "Dominican Republic",
            "code": "DO",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/DO.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 63,
            "dial_code": "+593",
            "name": "Ecuador",
            "code": "EC",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/EC.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 64,
            "dial_code": "+503",
            "name": "El Salvador",
            "code": "SV",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/SV.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 65,
            "dial_code": "+240",
            "name": "Equatorial Guinea",
            "code": "GQ",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/GQ.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 66,
            "dial_code": "+251",
            "name": "Ethiopia",
            "code": "ET",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/ET.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 67,
            "dial_code": "+291",
            "name": "Eritrea",
            "code": "ER",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/ER.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 68,
            "dial_code": "+372",
            "name": "Estonia",
            "code": "EE",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/EE.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 69,
            "dial_code": "+298",
            "name": "Faroe Islands",
            "code": "FO",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/FO.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 70,
            "dial_code": "+500",
            "name": "Falkland Islands (Malvinas)",
            "code": "FK",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/FK.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 71,
            "dial_code": "+44",
            "name": "South Georgia and the South Sandwich Islands",
            "code": "GS",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/GS.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 72,
            "dial_code": "+679",
            "name": "Fiji",
            "code": "FJ",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/FJ.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 73,
            "dial_code": "+358",
            "name": "Finland",
            "code": "FI",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/FI.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 74,
            "dial_code": "+358",
            "name": "Γ…land Islands",
            "code": "AX",
            "flag": null,
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 75,
            "dial_code": "+33",
            "name": "France",
            "code": "FR",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/FR.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 76,
            "dial_code": "+594",
            "name": "French Guiana",
            "code": "GF",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/GF.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 77,
            "dial_code": "+689",
            "name": "French Polynesia",
            "code": "PF",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/PF.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 78,
            "dial_code": "+33",
            "name": "French Southern Territories",
            "code": "TF",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/TF.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 79,
            "dial_code": "+253",
            "name": "Djibouti",
            "code": "DJ",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/DJ.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 80,
            "dial_code": "+241",
            "name": "Gabon",
            "code": "GA",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/GA.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 81,
            "dial_code": "+995",
            "name": "Georgia",
            "code": "GE",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/GE.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 82,
            "dial_code": "+220",
            "name": "Gambia",
            "code": "GM",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/GM.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 83,
            "dial_code": "+970",
            "name": "Palestinian Territory, Occupied",
            "code": "PS",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/PS.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 84,
            "dial_code": "+49",
            "name": "Germany",
            "code": "DE",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/DE.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 85,
            "dial_code": "+233",
            "name": "Ghana",
            "code": "GH",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/GH.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 86,
            "dial_code": "+350",
            "name": "Gibraltar",
            "code": "GI",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/GI.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 87,
            "dial_code": "+686",
            "name": "Kiribati",
            "code": "KI",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/KI.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 88,
            "dial_code": "+30",
            "name": "Greece",
            "code": "GR",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/GR.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 89,
            "dial_code": "+299",
            "name": "Greenland",
            "code": "GL",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/GL.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 90,
            "dial_code": "+1",
            "name": "Grenada",
            "code": "GD",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/GD.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 91,
            "dial_code": "+590",
            "name": "Guadeloupe",
            "code": "GP",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/GP.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 92,
            "dial_code": "+1",
            "name": "Guam",
            "code": "GU",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/GU.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 93,
            "dial_code": "+502",
            "name": "Guatemala",
            "code": "GT",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/GT.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 94,
            "dial_code": "+224",
            "name": "Guinea",
            "code": "GN",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/GN.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 95,
            "dial_code": "+592",
            "name": "Guyana",
            "code": "GY",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/GY.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 96,
            "dial_code": "+509",
            "name": "Haiti",
            "code": "HT",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/HT.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 97,
            "dial_code": "+61",
            "name": "Heard Island and McDonald Islands",
            "code": "HM",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/HM.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 98,
            "dial_code": "+39",
            "name": "Holy See (Vatican City State)",
            "code": "VA",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/VA.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 99,
            "dial_code": "+504",
            "name": "Honduras",
            "code": "HN",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/HN.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 100,
            "dial_code": "+852",
            "name": "Hong Kong",
            "code": "HK",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/HK.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 101,
            "dial_code": "+36",
            "name": "Hungary",
            "code": "HU",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/HU.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 102,
            "dial_code": "+354",
            "name": "Iceland",
            "code": "IS",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/IS.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 103,
            "dial_code": "+91",
            "name": "India",
            "code": "IN",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/IN.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 104,
            "dial_code": "+62",
            "name": "Indonesia",
            "code": "ID",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/ID.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 105,
            "dial_code": "+98",
            "name": "Iran, Islamic Republic of",
            "code": "IR",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/IR.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 106,
            "dial_code": "+964",
            "name": "Iraq",
            "code": "IQ",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/IQ.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 107,
            "dial_code": "+353",
            "name": "Ireland",
            "code": "IE",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/IE.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 108,
            "dial_code": "+972",
            "name": "Israel",
            "code": "IL",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/IL.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 109,
            "dial_code": "+39",
            "name": "Italy",
            "code": "IT",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/IT.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 110,
            "dial_code": "+225",
            "name": "CΓ΄te d'Ivoire",
            "code": "CI",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/CI.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 111,
            "dial_code": "+1",
            "name": "Jamaica",
            "code": "JM",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/JM.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 112,
            "dial_code": "+81",
            "name": "Japan",
            "code": "JP",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/JP.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 113,
            "dial_code": "+7",
            "name": "Kazakhstan",
            "code": "KZ",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/KZ.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 114,
            "dial_code": "+962",
            "name": "Jordan",
            "code": "JO",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/JO.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 115,
            "dial_code": "+254",
            "name": "Kenya",
            "code": "KE",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/KE.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 116,
            "dial_code": "+850",
            "name": "Korea, Democratic People's Republic of",
            "code": "KP",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/KP.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 117,
            "dial_code": "+82",
            "name": "Korea, Republic of",
            "code": "KR",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/KR.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 118,
            "dial_code": "+965",
            "name": "Kuwait",
            "code": "KW",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/KW.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 119,
            "dial_code": "+996",
            "name": "Kyrgyzstan",
            "code": "KG",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/KG.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 120,
            "dial_code": "+856",
            "name": "Lao People's Democratic Republic",
            "code": "LA",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/LA.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 121,
            "dial_code": "+961",
            "name": "Lebanon",
            "code": "LB",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/LB.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 122,
            "dial_code": "+266",
            "name": "Lesotho",
            "code": "LS",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/LS.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 123,
            "dial_code": "+371",
            "name": "Latvia",
            "code": "LV",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/LV.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 124,
            "dial_code": "+231",
            "name": "Liberia",
            "code": "LR",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/LR.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 125,
            "dial_code": "+218",
            "name": "Libya",
            "code": "LY",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/LY.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 126,
            "dial_code": "+423",
            "name": "Liechtenstein",
            "code": "LI",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/LI.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 127,
            "dial_code": "+370",
            "name": "Lithuania",
            "code": "LT",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/LT.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 128,
            "dial_code": "+352",
            "name": "Luxembourg",
            "code": "LU",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/LU.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 129,
            "dial_code": "+853",
            "name": "Macao",
            "code": "MO",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/MO.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 130,
            "dial_code": "+261",
            "name": "Madagascar",
            "code": "MG",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/MG.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 131,
            "dial_code": "+265",
            "name": "Malawi",
            "code": "MW",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/MW.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 132,
            "dial_code": "+60",
            "name": "Malaysia",
            "code": "MY",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/MY.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 133,
            "dial_code": "+960",
            "name": "Maldives",
            "code": "MV",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/MV.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 134,
            "dial_code": "+223",
            "name": "Mali",
            "code": "ML",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/ML.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 135,
            "dial_code": "+356",
            "name": "Malta",
            "code": "MT",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/MT.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 136,
            "dial_code": "+596",
            "name": "Martinique",
            "code": "MQ",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/MQ.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 137,
            "dial_code": "+222",
            "name": "Mauritania",
            "code": "MR",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/MR.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 138,
            "dial_code": "+230",
            "name": "Mauritius",
            "code": "MU",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/MU.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 139,
            "dial_code": "+52",
            "name": "Mexico",
            "code": "MX",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/MX.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 140,
            "dial_code": "+377",
            "name": "Monaco",
            "code": "MC",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/MC.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 141,
            "dial_code": "+976",
            "name": "Mongolia",
            "code": "MN",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/MN.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 142,
            "dial_code": "+373",
            "name": "Moldova, Republic of",
            "code": "MD",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/MD.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 143,
            "dial_code": "+382",
            "name": "Montenegro",
            "code": "ME",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/ME.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 144,
            "dial_code": "+1",
            "name": "Montserrat",
            "code": "MS",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/MS.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 145,
            "dial_code": "+212",
            "name": "Morocco",
            "code": "MA",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/MA.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 146,
            "dial_code": "+258",
            "name": "Mozambique",
            "code": "MZ",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/MZ.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 147,
            "dial_code": "+968",
            "name": "Oman",
            "code": "OM",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/OM.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 148,
            "dial_code": "+264",
            "name": "Namibia",
            "code": "NA",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/NA.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 149,
            "dial_code": "+674",
            "name": "Nauru",
            "code": "NR",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/NR.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 150,
            "dial_code": "+977",
            "name": "Nepal",
            "code": "NP",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/NP.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 151,
            "dial_code": "+31",
            "name": "Netherlands",
            "code": "NL",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/NL.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 152,
            "dial_code": "+599",
            "name": "Curaçao",
            "code": "CW",
            "flag": null,
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 153,
            "dial_code": "+297",
            "name": "Aruba",
            "code": "AW",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/AW.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 154,
            "dial_code": "+721",
            "name": "Sint Maarten (Dutch part)",
            "code": "SX",
            "flag": null,
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 155,
            "dial_code": "+599",
            "name": "Bonaire, Sint Eustatius and Saba",
            "code": "BQ",
            "flag": null,
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 156,
            "dial_code": "+687",
            "name": "New Caledonia",
            "code": "NC",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/NC.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 157,
            "dial_code": "+678",
            "name": "Vanuatu",
            "code": "VU",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/VU.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 158,
            "dial_code": "+64",
            "name": "New Zealand",
            "code": "NZ",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/NZ.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 159,
            "dial_code": "+505",
            "name": "Nicaragua",
            "code": "NI",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/NI.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 160,
            "dial_code": "+227",
            "name": "Niger",
            "code": "NE",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/NE.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 161,
            "dial_code": "+234",
            "name": "Nigeria",
            "code": "NG",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/NG.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 162,
            "dial_code": "+683",
            "name": "Niue",
            "code": "NU",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/NU.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 163,
            "dial_code": "+672",
            "name": "Norfolk Island",
            "code": "NF",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/NF.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 164,
            "dial_code": "+47",
            "name": "Norway",
            "code": "NO",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/NO.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 165,
            "dial_code": "+1",
            "name": "Northern Mariana Islands",
            "code": "MP",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/MP.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 166,
            "dial_code": "+1",
            "name": "United States Minor Outlying Islands",
            "code": "UM",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/UM.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 167,
            "dial_code": "+691",
            "name": "Micronesia, Federated States of",
            "code": "FM",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/FM.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 168,
            "dial_code": "+692",
            "name": "Marshall Islands",
            "code": "MH",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/MH.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 169,
            "dial_code": "+680",
            "name": "Palau",
            "code": "PW",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/PW.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 170,
            "dial_code": "+92",
            "name": "Pakistan",
            "code": "PK",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/PK.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 171,
            "dial_code": "+507",
            "name": "Panama",
            "code": "PA",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/PA.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 172,
            "dial_code": "+675",
            "name": "Papua New Guinea",
            "code": "PG",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/PG.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 173,
            "dial_code": "+595",
            "name": "Paraguay",
            "code": "PY",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/PY.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 174,
            "dial_code": "+51",
            "name": "Peru",
            "code": "PE",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/PE.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 175,
            "dial_code": "+63",
            "name": "Philippines",
            "code": "PH",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/PH.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 176,
            "dial_code": "+649",
            "name": "Pitcairn",
            "code": "PN",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/PN.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 177,
            "dial_code": "+48",
            "name": "Poland",
            "code": "PL",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/PL.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 178,
            "dial_code": "+351",
            "name": "Portugal",
            "code": "PT",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/PT.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 179,
            "dial_code": "+245",
            "name": "Guinea-Bissau",
            "code": "GW",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/GW.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 180,
            "dial_code": "+670",
            "name": "Timor-Leste",
            "code": "TL",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/TL.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 181,
            "dial_code": "+1",
            "name": "Puerto Rico",
            "code": "PR",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/PR.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 182,
            "dial_code": "+974",
            "name": "Qatar",
            "code": "QA",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/QA.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 183,
            "dial_code": "+262",
            "name": "RΓ©union",
            "code": "RE",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/RE.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 184,
            "dial_code": "+40",
            "name": "Romania",
            "code": "RO",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/RO.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 185,
            "dial_code": "+7",
            "name": "Russian Federation",
            "code": "RU",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/RU.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 186,
            "dial_code": "+250",
            "name": "Rwanda",
            "code": "RW",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/RW.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 187,
            "dial_code": "+590",
            "name": "Saint BarthΓ©lemy",
            "code": "BL",
            "flag": null,
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 188,
            "dial_code": "+290",
            "name": "Saint Helena, Ascension and Tristan da Cunha",
            "code": "SH",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/SH.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 189,
            "dial_code": "+1",
            "name": "Saint Kitts and Nevis",
            "code": "KN",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/KN.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 190,
            "dial_code": "+1",
            "name": "Anguilla",
            "code": "AI",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/AI.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 191,
            "dial_code": "+1",
            "name": "Saint Lucia",
            "code": "LC",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/LC.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 192,
            "dial_code": "+590",
            "name": "Saint Martin (French part)",
            "code": "MF",
            "flag": null,
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 193,
            "dial_code": "+508",
            "name": "Saint Pierre and Miquelon",
            "code": "PM",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/PM.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 194,
            "dial_code": "+1",
            "name": "Saint Vincent and the Grenadines",
            "code": "VC",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/VC.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 195,
            "dial_code": "+378",
            "name": "San Marino",
            "code": "SM",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/SM.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 196,
            "dial_code": "+239",
            "name": "Sao Tome and Principe",
            "code": "ST",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/ST.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 197,
            "dial_code": "+966",
            "name": "Saudi Arabia",
            "code": "SA",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/SA.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 198,
            "dial_code": "+221",
            "name": "Senegal",
            "code": "SN",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/SN.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 199,
            "dial_code": "+381",
            "name": "Serbia",
            "code": "RS",
            "flag": null,
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 200,
            "dial_code": "+248",
            "name": "Seychelles",
            "code": "SC",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/SC.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 201,
            "dial_code": "+232",
            "name": "Sierra Leone",
            "code": "SL",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/SL.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 202,
            "dial_code": "+65",
            "name": "Singapore",
            "code": "SG",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/SG.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 203,
            "dial_code": "+421",
            "name": "Slovakia",
            "code": "SK",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/SK.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 204,
            "dial_code": "+84",
            "name": "Viet Nam",
            "code": "VN",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/VN.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 205,
            "dial_code": "+386",
            "name": "Slovenia",
            "code": "SI",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/SI.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 206,
            "dial_code": "+252",
            "name": "Somalia",
            "code": "SO",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/SO.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 207,
            "dial_code": "+27",
            "name": "South Africa",
            "code": "ZA",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/ZA.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 208,
            "dial_code": "+263",
            "name": "Zimbabwe",
            "code": "ZW",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/ZW.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 209,
            "dial_code": "+34",
            "name": "Spain",
            "code": "ES",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/ES.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 210,
            "dial_code": "+211",
            "name": "South Sudan",
            "code": "SS",
            "flag": null,
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 211,
            "dial_code": "+249",
            "name": "Sudan",
            "code": "SD",
            "flag": null,
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 212,
            "dial_code": "+212",
            "name": "Western Sahara",
            "code": "EH",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/EH.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 213,
            "dial_code": "+597",
            "name": "Suriname",
            "code": "SR",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/SR.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 214,
            "dial_code": "+47",
            "name": "Svalbard and Jan Mayen",
            "code": "SJ",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/SJ.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 215,
            "dial_code": "+268",
            "name": "Swaziland",
            "code": "SZ",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/SZ.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 216,
            "dial_code": "+46",
            "name": "Sweden",
            "code": "SE",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/SE.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 217,
            "dial_code": "+41",
            "name": "Switzerland",
            "code": "CH",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/CH.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 218,
            "dial_code": "+963",
            "name": "Syrian Arab Republic",
            "code": "SY",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/SY.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 219,
            "dial_code": "+992",
            "name": "Tajikistan",
            "code": "TJ",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/TJ.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 220,
            "dial_code": "+66",
            "name": "Thailand",
            "code": "TH",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/TH.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 221,
            "dial_code": "+228",
            "name": "Togo",
            "code": "TG",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/TG.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 222,
            "dial_code": "+690",
            "name": "Tokelau",
            "code": "TK",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/TK.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 223,
            "dial_code": "+676",
            "name": "Tonga",
            "code": "TO",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/TO.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 224,
            "dial_code": "+1",
            "name": "Trinidad and Tobago",
            "code": "TT",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/TT.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 225,
            "dial_code": "+971",
            "name": "United Arab Emirates",
            "code": "AE",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/AE.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 226,
            "dial_code": "+216",
            "name": "Tunisia",
            "code": "TN",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/TN.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 227,
            "dial_code": "+90",
            "name": "Turkey",
            "code": "TR",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/TR.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 228,
            "dial_code": "+993",
            "name": "Turkmenistan",
            "code": "TM",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/TM.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 229,
            "dial_code": "+1",
            "name": "Turks and Caicos Islands",
            "code": "TC",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/TC.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 230,
            "dial_code": "+688",
            "name": "Tuvalu",
            "code": "TV",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/TV.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 231,
            "dial_code": "+256",
            "name": "Uganda",
            "code": "UG",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/UG.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 232,
            "dial_code": "+380",
            "name": "Ukraine",
            "code": "UA",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/UA.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 233,
            "dial_code": "+389",
            "name": "Macedonia, the former Yugoslav Republic of",
            "code": "MK",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/MK.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 234,
            "dial_code": "+20",
            "name": "Egypt",
            "code": "EG",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/EG.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 235,
            "dial_code": "+44",
            "name": "United Kingdom",
            "code": "GB",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/GB.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 236,
            "dial_code": "+44",
            "name": "Guernsey",
            "code": "GG",
            "flag": null,
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 237,
            "dial_code": "+44",
            "name": "Jersey",
            "code": "JE",
            "flag": null,
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 238,
            "dial_code": "+44",
            "name": "Isle of Man",
            "code": "IM",
            "flag": null,
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 239,
            "dial_code": "+255",
            "name": "Tanzania, United Republic of",
            "code": "TZ",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/TZ.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 240,
            "dial_code": "+1",
            "name": "United States",
            "code": "US",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/US.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 241,
            "dial_code": "+1",
            "name": "Virgin Islands, U.S.",
            "code": "VI",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/VI.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 242,
            "dial_code": "+226",
            "name": "Burkina Faso",
            "code": "BF",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/BF.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 243,
            "dial_code": "+598",
            "name": "Uruguay",
            "code": "UY",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/UY.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 244,
            "dial_code": "+998",
            "name": "Uzbekistan",
            "code": "UZ",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/UZ.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 245,
            "dial_code": "+58",
            "name": "Venezuela, Bolivarian Republic of",
            "code": "VE",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/VE.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 246,
            "dial_code": "+681",
            "name": "Wallis and Futuna",
            "code": "WF",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/WF.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 247,
            "dial_code": "+685",
            "name": "Samoa",
            "code": "WS",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/WS.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 248,
            "dial_code": "+967",
            "name": "Yemen",
            "code": "YE",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/YE.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        },
        {
            "id": 249,
            "dial_code": "+260",
            "name": "Zambia",
            "code": "ZM",
            "flag": "http:\/\/localhost\/storage\/uploads\/country\/flags\/ZM.png",
            "dial_min_length": 0,
            "dial_max_length": 0,
            "active": true
        }
    ]
}

Request      

GET api/v1/countries

Demo Request

APIs for vehilce management apis. i.e types,car makes,models apis

Demo Request Api

@bodyParam name string optional name of customer

Example request:

curl -X POST \
    "http://localhost/api/v1/common/demo-request" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"mobile":"repellat"}'
const url = new URL(
    "http://localhost/api/v1/common/demo-request"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "mobile": "repellat"
}

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/common/demo-request

Body Parameters

mobile  string  
mobile of customer @bodyParam email string required email of customer @bodyParam country string required country of customer @bodyParam message string optional message of customer

Dispatcher-trips-apis

APIs for Dispatcher-trips apis

Create Request

Example request:

curl -X POST \
    "http://localhost/api/v1/dispatcher/request/create" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"pick_lat":6371.4,"pick_lng":874.5666041,"drop_lat":1333108.70495,"drop_lng":7438147.89466,"vehicle_type":"debitis","payment_opt":"sunt","pick_address":"est","drop_address":"labore","drivers":"maxime","is_later":"1","trip_start_time":"2022-02-23 06:06:19","promocode_id":"natus"}'
const url = new URL(
    "http://localhost/api/v1/dispatcher/request/create"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "pick_lat": 6371.4,
    "pick_lng": 874.5666041,
    "drop_lat": 1333108.70495,
    "drop_lng": 7438147.89466,
    "vehicle_type": "debitis",
    "payment_opt": "sunt",
    "pick_address": "est",
    "drop_address": "labore",
    "drivers": "maxime",
    "is_later": "1",
    "trip_start_time": "2022-02-23 06:06:19",
    "promocode_id": "natus"
}

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/dispatcher/request/create

Body Parameters

pick_lat  number  
pikup lat of the user

pick_lng  number  
pikup lng of the user

drop_lat  number  
drop lat of the user

drop_lng  number  
drop lng of the user

vehicle_type  string  
id of zone_type_id

payment_opt  tinyInteger  
type of ride whther cash or card, wallet('0 => card,1 => cash,2 => wallet)

pick_address  string  
pickup address of the trip request

drop_address  string  
drop address of the trip request

drivers  string  

is_later  string  
The value must be one of 1.

trip_start_time  string  
The value must be a valid date in the format Y-m-d H:i:s.

promocode_id  string  

Create Request

Example request:

curl -X POST \
    "http://localhost/request/create" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"pick_lat":3493969.674,"pick_lng":38.8,"drop_lat":856.6466617,"drop_lng":433803.4972393,"vehicle_type":"dolores","payment_opt":"eum","pick_address":"numquam","drop_address":"at","drivers":"est","is_later":"1","trip_start_time":"2022-02-23 06:06:22","promocode_id":"assumenda","pickup_poc_name":"amet","pickup_poc_mobile":"consequatur"}'
const url = new URL(
    "http://localhost/request/create"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "pick_lat": 3493969.674,
    "pick_lng": 38.8,
    "drop_lat": 856.6466617,
    "drop_lng": 433803.4972393,
    "vehicle_type": "dolores",
    "payment_opt": "eum",
    "pick_address": "numquam",
    "drop_address": "at",
    "drivers": "est",
    "is_later": "1",
    "trip_start_time": "2022-02-23 06:06:22",
    "promocode_id": "assumenda",
    "pickup_poc_name": "amet",
    "pickup_poc_mobile": "consequatur"
}

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST request/create

Body Parameters

pick_lat  number  
pikup lat of the user

pick_lng  number  
pikup lng of the user

drop_lat  number  
drop lat of the user

drop_lng  number  
drop lng of the user

vehicle_type  string  
id of zone_type_id

payment_opt  tinyInteger  
type of ride whther cash or card, wallet('0 => card,1 => cash,2 => wallet)

pick_address  string  
pickup address of the trip request

drop_address  string  
drop address of the trip request

drivers  string  

is_later  string  
The value must be one of 1.

trip_start_time  string  
The value must be a valid date in the format Y-m-d H:i:s.

promocode_id  string  

pickup_poc_name  string  
customer name for the request

pickup_poc_mobile  string  
customer name for the request

Driver Document Management

APIs for DriverNeededDocument's

Get All documents needed to be uploaded

Example request:

curl -X GET \
    -G "http://localhost/api/v1/driver/documents/needed" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/driver/documents/needed"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/driver/documents/needed

Driver Earnings

APIs for Driver's Earnings

Today-Earnings

Example request:

curl -X GET \
    -G "http://localhost/api/v1/driver/today-earnings" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/driver/today-earnings"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/driver/today-earnings

Weekly Earnings

Example request:

curl -X GET \
    -G "http://localhost/api/v1/driver/weekly-earnings" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/driver/weekly-earnings"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/driver/weekly-earnings

URL Parameters

week_number  integer optional  
week number of year

Earnings Report

Example request:

curl -X GET \
    -G "http://localhost/api/v1/driver/earnings-report/non/sint" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/driver/earnings-report/non/sint"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/driver/earnings-report/{from_date}/{to_date}

URL Parameters

from_date  string optional  
date date string

to_date  string optional  
date date string

Driver-trips-apis

APIs for Driver-trips apis

Create Instant Ride

Example request:

curl -X POST \
    "http://localhost/api/v1/request/create-instant-ride" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"pick_lat":5301.0782,"pick_lng":61.487105,"drop_lat":31.8813921,"drop_lng":52189161.093609,"vehicle_type":"tempore","payment_opt":"1","pick_address":"est","drop_address":"quo","drivers":"qui","is_later":"1","trip_start_time":"2022-02-23 06:06:19","promocode_id":"et","pickup_poc_name":"non","pickup_poc_mobile":"et"}'
const url = new URL(
    "http://localhost/api/v1/request/create-instant-ride"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "pick_lat": 5301.0782,
    "pick_lng": 61.487105,
    "drop_lat": 31.8813921,
    "drop_lng": 52189161.093609,
    "vehicle_type": "tempore",
    "payment_opt": "1",
    "pick_address": "est",
    "drop_address": "quo",
    "drivers": "qui",
    "is_later": "1",
    "trip_start_time": "2022-02-23 06:06:19",
    "promocode_id": "et",
    "pickup_poc_name": "non",
    "pickup_poc_mobile": "et"
}

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/request/create-instant-ride

Body Parameters

pick_lat  number  
pikup lat of the user

pick_lng  number  
pikup lng of the user

drop_lat  number  
drop lat of the user

drop_lng  number  
drop lng of the user

vehicle_type  string  

payment_opt  string  
The value must be one of 0, 1, or 2.

pick_address  string  
pickup address of the trip request

drop_address  string  
drop address of the trip request

drivers  string  

is_later  string  
The value must be one of 1.

trip_start_time  string  
The value must be a valid date in the format Y-m-d H:i:s.

promocode_id  string  

pickup_poc_name  string  
customer name for the request

pickup_poc_mobile  string  
customer name for the request

Driver Response for Trip Request

Example request:

curl -X POST \
    "http://localhost/api/v1/request/respond" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"request_id":"vel","is_accept":false}'
const url = new URL(
    "http://localhost/api/v1/request/respond"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "request_id": "vel",
    "is_accept": false
}

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):

{
    "success": true,
    "message": "success"
}

Request      

POST api/v1/request/respond

Body Parameters

request_id  uuid  
id request

is_accept  boolean  
response of request i.e accept or reject. input should be 0 or 1.

Driver Arrived

Example request:

curl -X POST \
    "http://localhost/api/v1/request/arrived" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"request_id":"ex"}'
const url = new URL(
    "http://localhost/api/v1/request/arrived"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "request_id": "ex"
}

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):

{
    "success": true,
    "message": "driver_arrived"
}

Request      

POST api/v1/request/arrived

Body Parameters

request_id  uuid  
id request

Driver Trip started

Example request:

curl -X POST \
    "http://localhost/api/v1/request/started" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"request_id":"voluptatem","pick_lat":0.83179,"pick_lng":175788.4,"pick_address":"saepe"}'
const url = new URL(
    "http://localhost/api/v1/request/started"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "request_id": "voluptatem",
    "pick_lat": 0.83179,
    "pick_lng": 175788.4,
    "pick_address": "saepe"
}

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):

{
    "success": true,
    "message": "driver_trip_started"
}

Request      

POST api/v1/request/started

Body Parameters

request_id  uuid  
id of request

pick_lat  number  
pikup lat of the user

pick_lng  number  
pikup lng of the user

pick_address  string optional  
optional pickup address of the trip request

Driver Cancel Trip Request

Example request:

curl -X POST \
    "http://localhost/api/v1/request/cancel/by-driver" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"request_id":"ut","reason":"et","custom_reason":"ut"}'
const url = new URL(
    "http://localhost/api/v1/request/cancel/by-driver"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "request_id": "ut",
    "reason": "et",
    "custom_reason": "ut"
}

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):

{
    "success": true,
    "message": "driver_cancelled_trip"
}

Request      

POST api/v1/request/cancel/by-driver

Body Parameters

request_id  uuid  
id of request

reason  string optional  
optional reason provided by user

custom_reason  string optional  
optional custom reason provided by user

Driver End Request

Example request:

curl -X POST \
    "http://localhost/api/v1/request/end" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"request_id":"amet","distance":2.15393,"before_arrival_waiting_time":28136.63976218,"after_arrival_waiting_time":38.50290767,"drop_lat":90.4219,"drop_lng":7472193.46,"drop_address":2.49114721}'
const url = new URL(
    "http://localhost/api/v1/request/end"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "request_id": "amet",
    "distance": 2.15393,
    "before_arrival_waiting_time": 28136.63976218,
    "after_arrival_waiting_time": 38.50290767,
    "drop_lat": 90.4219,
    "drop_lng": 7472193.46,
    "drop_address": 2.49114721
}

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/request/end

Body Parameters

request_id  uuid  
id request

distance  number  
distance of request

before_arrival_waiting_time  number  
before arrival waiting time of request

after_arrival_waiting_time  number  
after arrival waiting time of request

drop_lat  number  
drop lattitude of request

drop_lng  number  
drop longitude of request

drop_address  number  
drop drop Address of request

Online-Offline driver

Example request:

curl -X POST \
    "http://localhost/api/v1/driver/online-offline" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/driver/online-offline"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/v1/driver/online-offline

Email-Confirmation

APIs for Email-Confirmation

Confirm user's email using the confirmation token.

Example request:

curl -X POST \
    "http://localhost/api/v1/email/confirm" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"token":"tenetur","email":"voluptate"}'
const url = new URL(
    "http://localhost/api/v1/email/confirm"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "token": "tenetur",
    "email": "voluptate"
}

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):

{
    "success": true,
    "message": "success"
}

Request      

POST api/v1/email/confirm

Body Parameters

token  string  
token of the email

email  string  
email of the user entered

Resend user's email address confirmation email.

Example request:

curl -X POST \
    "http://localhost/api/v1/email/resend-confirmation" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"email":"aut"}'
const url = new URL(
    "http://localhost/api/v1/email/resend-confirmation"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "aut"
}

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):

{
    "success": true,
    "message": "success"
}

Request      

POST api/v1/email/resend-confirmation

Body Parameters

email  email  
email of the user entered

Endpoints

translations/view/{groupKey?}

Example request:

curl -X GET \
    -G "http://localhost/translations/view/sed" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/translations/view/sed"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET translations/view/{groupKey?}

URL Parameters

groupKey  string optional  

translations/{groupKey?}

Example request:

curl -X GET \
    -G "http://localhost/translations/vitae" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/translations/vitae"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET translations/{groupKey?}

URL Parameters

groupKey  string optional  

translations/add/{groupKey}

Example request:

curl -X POST \
    "http://localhost/translations/add/corporis" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/translations/add/corporis"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST translations/add/{groupKey}

URL Parameters

groupKey  string  

translations/edit/{groupKey}

Example request:

curl -X POST \
    "http://localhost/translations/edit/ex" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/translations/edit/ex"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST translations/edit/{groupKey}

URL Parameters

groupKey  string  

translations/groups/add

Example request:

curl -X POST \
    "http://localhost/translations/groups/add" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/translations/groups/add"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST translations/groups/add

translations/delete/{groupKey}/{translationKey}

Example request:

curl -X POST \
    "http://localhost/translations/delete/sed/eligendi" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/translations/delete/sed/eligendi"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST translations/delete/{groupKey}/{translationKey}

URL Parameters

groupKey  string  

translationKey  string  

translations/import

Example request:

curl -X POST \
    "http://localhost/translations/import" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/translations/import"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST translations/import

translations/find

Example request:

curl -X POST \
    "http://localhost/translations/find" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/translations/find"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST translations/find

translations/locales/add

Example request:

curl -X POST \
    "http://localhost/translations/locales/add" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/translations/locales/add"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST translations/locales/add

translations/locales/remove

Example request:

curl -X POST \
    "http://localhost/translations/locales/remove" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/translations/locales/remove"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST translations/locales/remove

translations/publish/{groupKey}

Example request:

curl -X POST \
    "http://localhost/translations/publish/in" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/translations/publish/in"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST translations/publish/{groupKey}

URL Parameters

groupKey  string  

translations/translate-missing

Example request:

curl -X POST \
    "http://localhost/translations/translate-missing" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/translations/translate-missing"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST translations/translate-missing

Get the index of a given version.

Example request:

curl -X GET \
    -G "http://localhost/user-manual/search-index/aut" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/user-manual/search-index/aut"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET user-manual/search-index/{version}

URL Parameters

version  string  

user-manual/styles/{style}

Example request:

curl -X GET \
    -G "http://localhost/user-manual/styles/explicabo" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/user-manual/styles/explicabo"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (500):

{
    "success": false,
    "message": "Undefined index: explicabo",
    "status_code": 500,
    "debug": {
        "line": 17,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/binarytorch\/larecipe\/src\/Http\/Controllers\/StyleController.php",
        "class": "ErrorException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/binarytorch\/larecipe\/src\/Http\/Controllers\/StyleController.php(17): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(8, 'Undefined index...', '\/var\/www\/html\/l...', 17, Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Controller.php(54): BinaryTorch\\LaRecipe\\Http\\Controllers\\StyleController->__invoke(Object(Illuminate\\Http\\Request), 'explicabo')\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php(45): Illuminate\\Routing\\Controller->callAction('__invoke', Array)\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php(261): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(BinaryTorch\\LaRecipe\\Http\\Controllers\\StyleController), '__invoke')\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php(204): Illuminate\\Routing\\Route->runController()\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(695): Illuminate\\Routing\\Route->run()\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))\n#7 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/passport\/src\/Http\/Middleware\/CreateFreshApiToken.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Laravel\\Passport\\Http\\Middleware\\CreateFreshApiToken->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Middleware\/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#15 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#25 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#63 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#64 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#65 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#66 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#67 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#68 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#69 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#70 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#71 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#72 {main}"
        ]
    }
}

Request      

GET user-manual/styles/{style}

URL Parameters

style  string  

user-manual/scripts/{script}

Example request:

curl -X GET \
    -G "http://localhost/user-manual/scripts/harum" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/user-manual/scripts/harum"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (500):

{
    "success": false,
    "message": "Undefined index: harum",
    "status_code": 500,
    "debug": {
        "line": 17,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/binarytorch\/larecipe\/src\/Http\/Controllers\/ScriptController.php",
        "class": "ErrorException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/binarytorch\/larecipe\/src\/Http\/Controllers\/ScriptController.php(17): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(8, 'Undefined index...', '\/var\/www\/html\/l...', 17, Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Controller.php(54): BinaryTorch\\LaRecipe\\Http\\Controllers\\ScriptController->__invoke(Object(Illuminate\\Http\\Request), 'harum')\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php(45): Illuminate\\Routing\\Controller->callAction('__invoke', Array)\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php(261): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(BinaryTorch\\LaRecipe\\Http\\Controllers\\ScriptController), '__invoke')\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php(204): Illuminate\\Routing\\Route->runController()\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(695): Illuminate\\Routing\\Route->run()\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))\n#7 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/passport\/src\/Http\/Middleware\/CreateFreshApiToken.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Laravel\\Passport\\Http\\Middleware\\CreateFreshApiToken->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Middleware\/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#15 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#25 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#63 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#64 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#65 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#66 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#67 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#68 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#69 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#70 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#71 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#72 {main}"
        ]
    }
}

Request      

GET user-manual/scripts/{script}

URL Parameters

script  string  

Redirect the index page of docs to the default version.

Example request:

curl -X GET \
    -G "http://localhost/user-manual" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/user-manual"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET user-manual

Show a documentation page.

Example request:

curl -X GET \
    -G "http://localhost/user-manual/sint/sunt" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/user-manual/sint/sunt"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET user-manual/{version}/{page?}

URL Parameters

version  string  

page  string optional  

Return an empty response simply to trigger the storage of the CSRF cookie in the browser.

Example request:

curl -X GET \
    -G "http://localhost/sanctum/csrf-cookie" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/sanctum/csrf-cookie"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

api/v1/test-socket

Example request:

curl -X GET \
    -G "http://localhost/api/v1/test-socket" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/api/v1/test-socket"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


yess its works

Request      

GET api/v1/test-socket

Redirect to login

Example request:

curl -X GET \
    -G "http://localhost/company-login" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/company-login"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <title>Owner login</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />

    <meta name="csrf-token" content="HOaY0RNqeFokc21RMvMU7j4HHEbRqa6c96JGJFvN">

    <meta content="A fully featured admin theme which can be used to build CRM, CMS, etc." name="description" />
    <meta content="Coderthemes" name="author" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />

    <!-- App favicon -->
    <!-- <link rel="shortcut icon" href="http://localhost/assets/images/favicon.png"> -->
    <link rel="shortcut icon" href="http://localhost/assets/images/favicon.ico">

    <!-- Bootstrap 4.0-->
    <link rel="stylesheet" href="http://localhost/assets/vendor_components/bootstrap/dist/css/bootstrap.min.css">

    <!-- Bootstrap extend-->
    <link rel="stylesheet" href="http://localhost/assets/css/bootstrap-extend.css">

    <!-- Theme style -->
    <link rel="stylesheet" href="http://localhost/assets/css/master_style.css">

    <!-- Fab Admin skins -->
    <link rel="stylesheet" href="http://localhost/assets/css/skins/_all-skins.css">
    <style>
        .error-style {
            list-style: none;
            color: red;
            text-align: center;
            margin-top: 15%;
            padding: 0;
        }

        body {
            background-image: url(assets/images/bg.jpg) !important;
            background-size: cover !important;
        }

    </style>
</head>

<body class="hold-transition login-page">

    <div class="container h-p100">
        <div class="row align-items-center justify-content-md-center h-p100">

            <div class="col-lg-8 col-md-4 d-none d-md-block">
                <!-- <img src="http://localhost/tagyourtaxi/future/public/assets/images/left.svg" alt=""> -->
            </div>

            <div class="col-lg-4 col-md-8 col-12">
                <div class="login-box">
                    <div class="login-box-body text-center">
                        <div class="print-error-msg" style="position: absolute;right: 0;left: 0;">
                            <ul class="error-style"></ul>
                        </div>
                        <img src="assets/images/favicon.png" alt="">
                        <h3 class="text-center">Owner Panel</h3>
                        <p class="login-box-msg"></p>
                        <!-- action="http://localhost/api/spa/login" method="post" -->
                        <form class="login_form" id="form" enctype="multipart/form-data">
                            <div class="col-12 form-group has-feedback"
                                style="display:flex;margin-bottom:15px;background: #fff;padding: 0px;">
                                <!-- <div class="col-md-2 float-left text-center"> -->
                                <!-- <span class="ion ion-email form-control-feedback"></span>
                        </div> -->
                                <div class="col-md-11 mx-auto p-0 login-email">
                                    <input type="email" style="border-radius:none;" class="form-control rounded"
                                        name="email" id="emailaddress" required="" placeholder="Email" maxlength="74"
                                        data-validation="required length email" data-validation-length="8-74"
                                        data-validation-error-msg-email="Please enter valid email address">
                                </div>
                                <span class="text-danger"></span>
                            </div>

                            <div class="col-12 form-group has-feedback"
                                style="display:flex;margin-bottom:10px;background: #fff;padding: 0px;">
                                <!-- <div class="col-md-2 float-left text-center">
                           <span class="ion ion-locked form-control-feedback"></span>
                      </div> -->
                                <div class="col-md-11 mx-auto text-center p-0 login-email">
                                    <input type="password" name="password" style="border-radius:none;" required=""
                                        id="password" class="form-control rounded" placeholder="Password" maxlength="30"
                                        data-validation="required length" data-validation-length="8-30"
                                        data-validation-error-msg-length="Password should have atleast 8 characters.">
                                </div>
                                <span class="text-danger"></span>
                            </div>
                            <div class="col-md-11 mx-auto text-center p-0">
                                <div class="col-6">
                                    <div class="checkbox">
                                        <input type="checkbox" id="basic_checkbox_1">
                                        <label for="basic_checkbox_1">Remember Me</label>
                                    </div>
                                </div>

                                <!-- /.col -->
                                <div class="col-12 text-center login-btn">
                                    <button class="btn btn-info btn-block margin-top-10 submit_button"
                                        type="submit">Sign In</button>
                                </div>
                                <!-- /.col -->
                            </div>
                        </form>

                    </div>
                    <!-- /.login-box-body -->
                </div>
                <!-- /.login-box -->

            </div>

        </div>
    </div>

    <!-- jQuery 3 -->
    <script src="http://localhost/assets/vendor_components/jquery/dist/jquery.min.js"></script>

    <!-- Bootstrap 4.0-->
    <script src="http://localhost/assets/vendor_components/bootstrap/dist/js/bootstrap.min.js"></script>

    <!-- App js -->
    <script src="http://localhost/assets/js/jquery.form-validator.js"></script>
    <script src="http://localhost/js/login.js"></script>

</body>

</html>

Request      

GET company-login

owners/by_area/{area}

Example request:

curl -X GET \
    -G "http://localhost/owners/by_area/aut" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/owners/by_area/aut"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET owners/by_area/{area}

URL Parameters

area  string  

owners/by_area/fetch/{area}

Example request:

curl -X GET \
    -G "http://localhost/owners/by_area/fetch/totam" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/owners/by_area/fetch/totam"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET owners/by_area/fetch/{area}

URL Parameters

area  string  

owners/create/{area}

Example request:

curl -X GET \
    -G "http://localhost/owners/create/ratione" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/owners/create/ratione"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET owners/create/{area}

URL Parameters

area  string  

owners/store

Example request:

curl -X POST \
    "http://localhost/owners/store" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"company_name":"dolor","owner_name":"vitae","email":"kunde.mike@example.org","mobile":"ratione","password":"in","address":"debitis","postal_code":1099869,"city":"aut","service_location_id":{},"no_of_vehicles":330244783.5217443,"tax_number":"adipisci","name":"dicta","surname":"voluptas","ifsc":"quo","expiry_date":["quos",null]}'
const url = new URL(
    "http://localhost/owners/store"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "company_name": "dolor",
    "owner_name": "vitae",
    "email": "kunde.mike@example.org",
    "mobile": "ratione",
    "password": "in",
    "address": "debitis",
    "postal_code": 1099869,
    "city": "aut",
    "service_location_id": {},
    "no_of_vehicles": 330244783.5217443,
    "tax_number": "adipisci",
    "name": "dicta",
    "surname": "voluptas",
    "ifsc": "quo",
    "expiry_date": [
        "quos",
        null
    ]
}

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST owners/store

Body Parameters

company_name  string  

owner_name  string  

email  string  
The value must be a valid email address.

mobile  string  

password  string  

address  string  

postal_code  number  

city  string  

service_location_id  string optional  

no_of_vehicles  number  

tax_number  string  

name  string  

surname  string  

ifsc  string  

expiry_date  string[]  

owners/{owner}

Example request:

curl -X GET \
    -G "http://localhost/owners/inventore" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/owners/inventore"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET owners/{owner}

URL Parameters

owner  string  

owners/toggle_approve/{owner}

Example request:

curl -X GET \
    -G "http://localhost/owners/toggle_approve/maxime" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/owners/toggle_approve/maxime"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET owners/toggle_approve/{owner}

URL Parameters

owner  string  

owners/delete/{owner}

Example request:

curl -X GET \
    -G "http://localhost/owners/delete/numquam" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/owners/delete/numquam"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET owners/delete/{owner}

URL Parameters

owner  string  

owners/get/owner

Example request:

curl -X GET \
    -G "http://localhost/owners/get/owner" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/owners/get/owner"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET owners/get/owner

owners/document/view/{owner}

Example request:

curl -X GET \
    -G "http://localhost/owners/document/view/consectetur" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/owners/document/view/consectetur"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET owners/document/view/{owner}

URL Parameters

owner  string  

owners/upload/document/{owner}/{needed_document}

Example request:

curl -X GET \
    -G "http://localhost/owners/upload/document/deserunt/inventore" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/owners/upload/document/deserunt/inventore"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET owners/upload/document/{owner}/{needed_document}

URL Parameters

owner  string  

needed_document  string  

owners/upload/document/{owner}/{needed_document}

Example request:

curl -X POST \
    "http://localhost/owners/upload/document/beatae/sunt" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"expiry_date":{}}'
const url = new URL(
    "http://localhost/owners/upload/document/beatae/sunt"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "expiry_date": {}
}

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST owners/upload/document/{owner}/{needed_document}

URL Parameters

owner  string  

needed_document  string  

Body Parameters

expiry_date  string optional  

owners/approve/documents

Example request:

curl -X POST \
    "http://localhost/owners/approve/documents" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/owners/approve/documents"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST owners/approve/documents

fleets

Example request:

curl -X GET \
    -G "http://localhost/fleets" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/fleets"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET fleets

fleets/fetch

Example request:

curl -X GET \
    -G "http://localhost/fleets/fetch" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/fleets/fetch"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET fleets/fetch

fleets/create

Example request:

curl -X GET \
    -G "http://localhost/fleets/create" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/fleets/create"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET fleets/create

fleets/store

Example request:

curl -X POST \
    "http://localhost/fleets/store" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"brand":"dolorem","model":"beatae","license_number":"dolor","permission_number":"optio","type":"accusantium"}'
const url = new URL(
    "http://localhost/fleets/store"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "brand": "dolorem",
    "model": "beatae",
    "license_number": "dolor",
    "permission_number": "optio",
    "type": "accusantium"
}

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST fleets/store

Body Parameters

brand  string  

model  string  

license_number  string  

permission_number  string  

type  string  

fleets/edit/{fleet}

Example request:

curl -X GET \
    -G "http://localhost/fleets/edit/qui" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/fleets/edit/qui"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET fleets/edit/{fleet}

URL Parameters

fleet  string  

fleets/update/{fleet}

Example request:

curl -X POST \
    "http://localhost/fleets/update/ut" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"brand":"ea","model":"veniam","license_number":"est","permission_number":"est","type":"ipsam"}'
const url = new URL(
    "http://localhost/fleets/update/ut"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "brand": "ea",
    "model": "veniam",
    "license_number": "est",
    "permission_number": "est",
    "type": "ipsam"
}

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST fleets/update/{fleet}

URL Parameters

fleet  string  

Body Parameters

brand  string  

model  string  

license_number  string  

permission_number  string  

type  string  

fleets/toggle_status/{fleet}

Example request:

curl -X GET \
    -G "http://localhost/fleets/toggle_status/dolores" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/fleets/toggle_status/dolores"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET fleets/toggle_status/{fleet}

URL Parameters

fleet  string  

fleets/toggle_approve/{fleet}

Example request:

curl -X GET \
    -G "http://localhost/fleets/toggle_approve/unde" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/fleets/toggle_approve/unde"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET fleets/toggle_approve/{fleet}

URL Parameters

fleet  string  

fleets/delete/{fleet}

Example request:

curl -X GET \
    -G "http://localhost/fleets/delete/iusto" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/fleets/delete/iusto"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET fleets/delete/{fleet}

URL Parameters

fleet  string  

fleets/update/decline/reason

Example request:

curl -X POST \
    "http://localhost/fleets/update/decline/reason" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/fleets/update/decline/reason"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST fleets/update/decline/reason

fleets/assign_driver/{fleet}

Example request:

curl -X GET \
    -G "http://localhost/fleets/assign_driver/dolorem" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/fleets/assign_driver/dolorem"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET fleets/assign_driver/{fleet}

URL Parameters

fleet  string  

fleets/assign_driver/{fleet}

Example request:

curl -X POST \
    "http://localhost/fleets/assign_driver/numquam" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/fleets/assign_driver/numquam"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST fleets/assign_driver/{fleet}

URL Parameters

fleet  string  

Get all drivers

Example request:

curl -X GET \
    -G "http://localhost/company/drivers" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/company/drivers"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET company/drivers

Fetch all drivers

Example request:

curl -X GET \
    -G "http://localhost/company/drivers/fetch" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/company/drivers/fetch"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET company/drivers/fetch

Create Driver View

Example request:

curl -X GET \
    -G "http://localhost/company/drivers/create" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/company/drivers/create"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET company/drivers/create

Create Driver.

Example request:

curl -X POST \
    "http://localhost/company/drivers/store" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"name":"dolores","mobile":"aut","email":"xhuel@example.org","address":"dolor","gender":"female","is_company_driver":"1","company":{},"type":"et"}'
const url = new URL(
    "http://localhost/company/drivers/store"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "dolores",
    "mobile": "aut",
    "email": "xhuel@example.org",
    "address": "dolor",
    "gender": "female",
    "is_company_driver": "1",
    "company": {},
    "type": "et"
}

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST company/drivers/store

Body Parameters

name  string  

mobile  string  

email  string  
The value must be a valid email address.

address  string  

gender  string  
The value must be one of male, female, or others.

is_company_driver  string  
The value must be one of 0 or 1.

company  string optional  

type  string  

company/drivers/{driver}

Example request:

curl -X GET \
    -G "http://localhost/company/drivers/ex" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/company/drivers/ex"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET company/drivers/{driver}

URL Parameters

driver  string  

company/drivers/update/{driver}

Example request:

curl -X POST \
    "http://localhost/company/drivers/update/architecto" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"name":"nihil","mobile":"velit","email":"okeefe.deborah@example.com","address":"occaecati","gender":"female","is_company_driver":"1","company":{},"type":"molestiae"}'
const url = new URL(
    "http://localhost/company/drivers/update/architecto"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "nihil",
    "mobile": "velit",
    "email": "okeefe.deborah@example.com",
    "address": "occaecati",
    "gender": "female",
    "is_company_driver": "1",
    "company": {},
    "type": "molestiae"
}

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST company/drivers/update/{driver}

URL Parameters

driver  string  

Body Parameters

name  string  

mobile  string  

email  string  
The value must be a valid email address.

address  string  

gender  string  
The value must be one of male, female, or others.

is_company_driver  string  
The value must be one of 0 or 1.

company  string optional  

type  string  

company/drivers/toggle_status/{driver}

Example request:

curl -X GET \
    -G "http://localhost/company/drivers/toggle_status/et" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/company/drivers/toggle_status/et"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET company/drivers/toggle_status/{driver}

URL Parameters

driver  string  

company/drivers/toggle_approve/{driver}

Example request:

curl -X GET \
    -G "http://localhost/company/drivers/toggle_approve/occaecati" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/company/drivers/toggle_approve/occaecati"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET company/drivers/toggle_approve/{driver}

URL Parameters

driver  string  

company/drivers/toggle_available/{driver}

Example request:

curl -X GET \
    -G "http://localhost/company/drivers/toggle_available/ab" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/company/drivers/toggle_available/ab"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET company/drivers/toggle_available/{driver}

URL Parameters

driver  string  

company/drivers/delete/{driver}

Example request:

curl -X GET \
    -G "http://localhost/company/drivers/delete/quia" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/company/drivers/delete/quia"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET company/drivers/delete/{driver}

URL Parameters

driver  string  

company/drivers/get/carmodel

Example request:

curl -X GET \
    -G "http://localhost/company/drivers/get/carmodel" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/company/drivers/get/carmodel"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET company/drivers/get/carmodel

company/drivers/profile/{driver}

Example request:

curl -X GET \
    -G "http://localhost/company/drivers/profile/enim" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/company/drivers/profile/enim"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET company/drivers/profile/{driver}

URL Parameters

driver  string  

company/drivers/hire/view

Example request:

curl -X GET \
    -G "http://localhost/company/drivers/hire/view" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/company/drivers/hire/view"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET company/drivers/hire/view

company/drivers/hire

Example request:

curl -X POST \
    "http://localhost/company/drivers/hire" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/company/drivers/hire"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST company/drivers/hire

company/drivers/vehicle/privileges/{driver}

Example request:

curl -X GET \
    -G "http://localhost/company/drivers/vehicle/privileges/culpa" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/company/drivers/vehicle/privileges/culpa"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET company/drivers/vehicle/privileges/{driver}

URL Parameters

driver  string  

company/drivers/store/vehicle/privileges/{driver}

Example request:

curl -X POST \
    "http://localhost/company/drivers/store/vehicle/privileges/ex" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/company/drivers/store/vehicle/privileges/ex"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST company/drivers/store/vehicle/privileges/{driver}

URL Parameters

driver  string  

company/drivers/unlink/fleet/{driver}/{vehicle}

Example request:

curl -X GET \
    -G "http://localhost/company/drivers/unlink/fleet/occaecati/officia" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/company/drivers/unlink/fleet/occaecati/officia"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

dispatch-login

Example request:

curl -X GET \
    -G "http://localhost/dispatch-login" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/dispatch-login"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <title>Admin login</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />

    <meta name="csrf-token" content="HOaY0RNqeFokc21RMvMU7j4HHEbRqa6c96JGJFvN">

    <meta content="A fully featured admin theme which can be used to build CRM, CMS, etc." name="description" />
    <meta content="Coderthemes" name="author" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />

    <!-- App favicon -->
    <!-- <link rel="shortcut icon" href="http://localhost/assets/images/favicon.png"> -->
    <link rel="shortcut icon" href="http://localhost/assets/images/favicon.jpg">

    <!-- Bootstrap 4.0-->
    <link rel="stylesheet" href="http://localhost/assets/vendor_components/bootstrap/dist/css/bootstrap.min.css">

    <!-- Bootstrap extend-->
    <link rel="stylesheet" href="http://localhost/assets/css/bootstrap-extend.css">

    <!-- Theme style -->
    <link rel="stylesheet" href="http://localhost/assets/css/master_style.css">

    <!-- Fab Admin skins -->
    <link rel="stylesheet" href="http://localhost/assets/css/skins/_all-skins.css">
    <style>
        .error-style {
            list-style: none;
            color: red;
            text-align: center;
            margin-top: 15%;
            padding: 0;
        }

        body {
            background-image: url(assets/images/bg-dispatcher.jpg) !important;
            background-size: cover !important;
        }

        body::before {
            content: "";
            position: absolute;
            height: 100%;
            width: 100%;
            background: #0b4dd847;
        }

    </style>
</head>

<body class="hold-transition login-page">

    <div class="container h-p100">
        <div class="row align-items-center justify-content-md-center h-p100">

            <div class="col-lg-8 col-md-4 d-none d-md-block">
                <!-- <img src="http://localhost/tagyourtaxi/future/public/assets/images/left.svg" alt=""> -->
            </div>

            <div class="col-lg-4 col-md-8 col-12">
                <div class="login-box">
                    <div class="login-box-body text-center">
                        <div class="print-error-msg" style="position: absolute;right: 0;left: 0;">
                            <ul class="error-style"></ul>
                        </div>
                        <img src="assets/images/favicon.png" alt="">
                        <h3 class="text-center">Dispatch Panel</h3>
                        <p class="login-box-msg"></p>
                        <!-- action="http://localhost/api/spa/login" method="post" -->
                        <form class="login_form" id="form" enctype="multipart/form-data">
                            <div class="col-12 form-group has-feedback"
                                style="display:flex;margin-bottom:15px;background: #fff;padding: 0px;">
                                <!-- <div class="col-md-2 float-left text-center"> -->
                                <!-- <span class="ion ion-email form-control-feedback"></span>
                        </div> -->
                                <div class="col-md-11 mx-auto p-0 login-email">
                                    <input type="email" style="border-radius:none;" class="form-control rounded"
                                        name="email" id="emailaddress" required="" placeholder="Email" maxlength="74"
                                        data-validation="required length email" data-validation-length="8-74"
                                        data-validation-error-msg-email="Please enter valid email address">
                                </div>
                                <span class="text-danger"></span>
                            </div>

                            <div class="col-12 form-group has-feedback"
                                style="display:flex;margin-bottom:10px;background: #fff;padding: 0px;">
                                <!-- <div class="col-md-2 float-left text-center">
                           <span class="ion ion-locked form-control-feedback"></span>
                      </div> -->
                                <div class="col-md-11 mx-auto text-center p-0 login-email">
                                    <input type="password" name="password" style="border-radius:none;" required=""
                                        id="password" class="form-control rounded" placeholder="Password" maxlength="30"
                                        data-validation="required length" data-validation-length="8-30"
                                        data-validation-error-msg-length="Password should have atleast 8 characters.">
                                </div>
                                <span class="text-danger"></span>
                            </div>
                            <div class="col-md-11 mx-auto text-center p-0">
                                <div class="col-6">
                                    <div class="checkbox">
                                        <input type="checkbox" id="basic_checkbox_1">
                                        <label for="basic_checkbox_1">Remember Me</label>
                                    </div>
                                </div>

                                <!-- /.col -->
                                <div class="col-12 text-center login-btn">
                                    <button class="btn btn-info btn-block margin-top-10 submit_button"
                                        type="submit">Sign In</button>
                                </div>
                                <!-- /.col -->
                            </div>
                        </form>

                    </div>
                    <!-- /.login-box-body -->
                </div>
                <!-- /.login-box -->

            </div>

        </div>
    </div>

    <!-- jQuery 3 -->
    <script src="http://localhost/assets/vendor_components/jquery/dist/jquery.min.js"></script>

    <!-- Bootstrap 4.0-->
    <script src="http://localhost/assets/vendor_components/bootstrap/dist/js/bootstrap.min.js"></script>

    <!-- App js -->
    <script src="http://localhost/assets/js/jquery.form-validator.js"></script>
    <script src="http://localhost/js/dispatch-login.js"></script>

    <script>
        $(document).ready(function() {

            // Form  validation
            $.validate({
                modules: 'file,sanitize',
                validateOnBlur: false,
                form: '.login_form',
                inputParentClassOnError: 'has-danger',
                errorMessageClass: 'alert-danger',
                onError: function($form) {
                    return false;
                },
                onSuccess: function($form) {
                    $('.submit_button').attr('disabled', 'disabled');
                    login();

                    return false;
                }
            });

            // submit form
            function login() {

                $.ajaxSetup({
                    headers: {
                        'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                    }
                });

                var values = $('.login_form').serializeArray();
                $.ajax({
                    url: "http://localhost/api/spa/dispatch/login",
                    type: "post",
                    data: values,
                    success: function(response) {
                        window.location.href = 'http://localhost/dispatch/dashboard';
                    },
                    error: function(response) {

                        printErrorMsg(response.responseJSON.errors);

                    }

                });
            }

            function printErrorMsg(msg) {
                $(".print-error-msg").find("ul").html('');
                $(".print-error-msg").css('display', 'block');
                $.each(msg, function(key, value) {
                    $(".print-error-msg").find("ul").append('<li>' + value + '</li>');
                    $('.submit_button').removeAttr('disabled');
                });
            }

        });

    </script>

</body>

</html>

Request      

GET dispatch-login

logout

Example request:

curl -X POST \
    "http://localhost/logout" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/logout"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST logout

Get all vehicle types

Example request:

curl -X GET \
    -G "http://localhost/types" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/types"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET types

types/fetch

Example request:

curl -X GET \
    -G "http://localhost/types/fetch" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/types/fetch"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET types/fetch

Get Types by admin for ajax

Example request:

curl -X GET \
    -G "http://localhost/types/by/admin" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/types/by/admin"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET types/by/admin

Create Vehicle type

Example request:

curl -X GET \
    -G "http://localhost/types/create" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/types/create"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET types/create

Store Vehicle type.

Example request:

curl -X POST \
    "http://localhost/types/store" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"name":"neque","icon":{},"capacity":"consequuntur","description":"quisquam","short_description":"magnam","supported_vehicles":"dolorem"}'
const url = new URL(
    "http://localhost/types/store"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "neque",
    "icon": {},
    "capacity": "consequuntur",
    "description": "quisquam",
    "short_description": "magnam",
    "supported_vehicles": "dolorem"
}

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):

{
    "success": true,
    "message": "success"
}

Request      

POST types/store

Body Parameters

name  string  

icon  string optional  

capacity  string  

description  string  

short_description  string  

supported_vehicles  string  

Edit Vehicle type view

Example request:

curl -X GET \
    -G "http://localhost/types/edit/culpa" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/types/edit/culpa"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET types/edit/{id}

URL Parameters

id  string  

Update Vehicle type.

Example request:

curl -X POST \
    "http://localhost/types/update/optio" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"name":"animi","icon":{},"capacity":"odit","description":"mollitia","short_description":"nesciunt","supported_vehicles":"et"}'
const url = new URL(
    "http://localhost/types/update/optio"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "animi",
    "icon": {},
    "capacity": "odit",
    "description": "mollitia",
    "short_description": "nesciunt",
    "supported_vehicles": "et"
}

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):

{
    "success": true,
    "message": "success"
}

Request      

POST types/update/{vehicle_type}

URL Parameters

vehicle_type  string  

Body Parameters

name  string  

icon  string optional  

capacity  string  

description  string  

short_description  string  

supported_vehicles  string  

types/toggle_status/{vehicle_type}

Example request:

curl -X GET \
    -G "http://localhost/types/toggle_status/delectus" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/types/toggle_status/delectus"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file": "\/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php",
        "class": "Illuminate\\Auth\\AuthenticationException",
        "trace": [
            "#0 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(68): Illuminate\\Auth\\Middleware\\Authenticate->unauthenticated(Object(Illuminate\\Http\\Request), Array)\n#1 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Auth\/Middleware\/Authenticate.php(42): Illuminate\\Auth\\Middleware\\Authenticate->authenticate(Object(Illuminate\\Http\\Request), Array)\n#2 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Auth\\Middleware\\Authenticate->handle(Object(Illuminate\\Http\\Request), Object(Closure), 'web')\n#3 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#4 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#5 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#6 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#7 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/SetLocale.php(24): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#8 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\SetLocale->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#9 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#10 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))\n#11 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#12 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#13 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#14 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#15 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#16 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#17 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(697): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#18 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(672): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\n#19 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(636): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#20 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php(625): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\n#21 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(166): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\n#22 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(128): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\n#23 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/PjaxMiddleware.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#24 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\PjaxMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#25 \/var\/www\/html\/laravel-8-base-future\/app\/Http\/Middleware\/Cors.php(7): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#26 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): App\\Http\\Middleware\\Cors->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#27 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#28 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#29 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#30 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#31 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#32 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#33 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#34 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#35 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#36 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(167): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))\n#37 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(103): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\n#38 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(141): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#39 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php(110): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\n#40 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(324): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\n#41 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(305): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->callLaravelOrLumenRoute(Object(Illuminate\\Http\\Request))\n#42 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(76): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeApiCall(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))\n#43 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(51): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCall(Object(Illuminate\\Routing\\Route), Array, Array)\n#44 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Strategies\/Responses\/ResponseCalls.php(41): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->makeResponseCallIfEnabledAndNoSuccessResponses(Object(Illuminate\\Routing\\Route), Array, Array)\n#45 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(236): Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls->__invoke(Object(Illuminate\\Routing\\Route), Object(ReflectionClass), Object(ReflectionMethod), Array, Array)\n#46 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(172): Knuckles\\Scribe\\Extracting\\Generator->iterateThroughStrategies('responses', Array, Array)\n#47 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Extracting\/Generator.php(127): Knuckles\\Scribe\\Extracting\\Generator->fetchResponses(Object(ReflectionClass), Object(ReflectionMethod), Object(Illuminate\\Routing\\Route), Array, Array)\n#48 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(119): Knuckles\\Scribe\\Extracting\\Generator->processRoute(Object(Illuminate\\Routing\\Route), Array)\n#49 \/var\/www\/html\/laravel-8-base-future\/vendor\/knuckleswtf\/scribe\/src\/Commands\/GenerateDocumentation.php(73): Knuckles\\Scribe\\Commands\\GenerateDocumentation->processRoutes(Array)\n#50 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Knuckles\\Scribe\\Commands\\GenerateDocumentation->handle(Object(Knuckles\\Scribe\\Matching\\RouteMatcher))\n#51 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#52 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#53 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#54 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#55 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(136): Illuminate\\Container\\Container->call(Array)\n#56 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Command\/Command.php(299): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#57 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#58 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(978): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#59 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(295): Symfony\\Component\\Console\\Application->doRunCommand(Object(Knuckles\\Scribe\\Commands\\GenerateDocumentation), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#60 \/var\/www\/html\/laravel-8-base-future\/vendor\/symfony\/console\/Application.php(167): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#61 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Application.php(92): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#62 \/var\/www\/html\/laravel-8-base-future\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#63 \/var\/www\/html\/laravel-8-base-future\/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#64 {main}"
        ]
    }
}

Request      

GET types/toggle_status/{vehicle_type}

URL Parameters

vehicle_type  string  

Delete Vehicle type.

Example request:

curl -X GET \
    -G "http://localhost/types/delete/nemo" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/types/delete/nemo"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):

{
    "success": true,
    "message": "success"
}

Request      

GET types/delete/{vehicle_type}

URL Parameters

vehicle_type  string  

dashboard

Example request:

curl -X GET \
    -G "http://localhost/dashboard" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "http://localhost/dashboard"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

{
    "success": false,
    "message": "Unauthenticated.",
    "status_code": 401,
    "debug": {
        "line": 82,
        "file":