PHP Classes

File: src/Config/config.php

Recommend this page to a friend!
  Classes of Lucas Nepomuceno   Laravel Brazilian CEPs   src/Config/config.php   Download  
File: src/Config/config.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Laravel Brazilian CEPs
Search locations and zip codes in Brazil
Author: By
Last change:
Date: 1 year ago
Size: 2,254 bytes
 

Contents

Class file image Download
<?php

return [
   
/*
    |--------------------------------------------------------------------------
    | Cache results
    |--------------------------------------------------------------------------
    |
    | This value defines whether results will be cached.
    | Default value: true
    |
    */

   
'cache_results' => true,

   
/*
    |--------------------------------------------------------------------------
    | Cache lifetime in days
    |--------------------------------------------------------------------------
    |
    | This value defines how many "days" the cached results will be kept.
    | Default value: 30
    |
    */

   
'cache_lifetime_in_days' => 30,

   
/*
    |--------------------------------------------------------------------------
    | Throw not found exception
    |--------------------------------------------------------------------------
    |
    | This value defines whether an exception will be thrown if no results are found.
    | Default value: false
    |
    */

   
'throw_not_found_exception' => false,

   
/*
    |--------------------------------------------------------------------------
    | Enable api consult cep route
    |--------------------------------------------------------------------------
    |
    | This value defines whether the route "api/consult-cep/{cep}" will be enabled.
    | Default value: true
    |
    */

   
'enable_api_consult_cep_route' => true,

   
/*
    |--------------------------------------------------------------------------
    | Api route middleware
    |--------------------------------------------------------------------------
    |
    | This value defines which middlewares will provide access to the API route
    | Default value: ['guest']
    |
    */

   
'api_route_middleware' => ['guest'],

   
/*
    |--------------------------------------------------------------------------
    | Api consult cep route not found message
    |--------------------------------------------------------------------------
    |
    | This value defines the message returned if the zip code is not found in
    | the route "api/consult-cep/{cep}"
    | Default value: "CEP não encontrado."
    |
    */

   
'not_found_message' => 'CEP não encontrado.'
];