Skip to content

khaledsabbah/HttpModule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel integration

Publish config with:

php artisan vendor:publish --provider="Idaratech\Integrations\IntegrationsServiceProvider" --tag=config

Method & Content-Type Enums

Use MethodEnum for HTTP verbs and ContentTypeEnum for clean content-type headers:

use Idaratech\Integrations\Http\Enums\Method as M;
use Idaratech\Integrations\Http\Enums\ContentType as CT;
use Idaratech\Integrations\Http\Enums\HeaderKey as HK;

$request->headers()[HK::CONTENT_TYPE->key()] = CT::JSON->mime();

public function method(): M
{
    return M::POST;
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages