🔐
Trust Enterprises
  • Getting Started
  • Intro video course
    • Introduction of the Trust Enterprises project [2:16]
    • Deployment of your first Serverless client [6:29]
    • Using Postman with the Trust Enterprises API [6:33]
    • Installation of the Trust Enterprises Laravel package [7:51]
    • Basic interaction with your client with Laravel. [10:28]
  • Deployment
    • Vercel
    • Environment Variables
    • Github Actions
  • REST API
    • Overview
    • Inscriptions
      • Deploy an Inscription
      • Mint an Inscription
      • Burn an Inscription
      • Transfer an Inscription
    • NFT Ecosystem
      • Create an NFT Collection
      • Generate Metadata
      • Mint an NFT
      • Transfer an NFT
      • Claiming NFTs through Passes
    • Accounts
    • Tokens
      • Create a token
      • Bequesting a token
      • Token Holdings and Balance
    • Topics
      • Get topic info
      • Creating a new topic
      • Updating a topic
    • Consensus Messages
    • Balance
    • Status
    • Webhooks
  • The Laravel Client
    • Overview
    • Installation
    • Interacting with your client
    • Create a Marketplace
    • Manage your Inscription Flow
    • Checking account balances and sending tokens
  • Contributing
    • Local Development
      • Architecture Rationale
    • Contributing Guidelines
    • Changelog
  • Links
    • Github
    • Trust Enterprises
    • Postman Documentation
    • Hedera Network Status
    • Remote Software Development
Powered by GitBook
On this page
  • Installation:
  • Requirements
  • Database migration
  • Configuration
  • Adding your Environment Variables
  • Updating the webhook route

Was this helpful?

  1. The Laravel Client

Installation

How to install and migrate the database.

PreviousOverviewNextInteracting with your client

Last updated 4 years ago

Was this helpful?

Installation:

The Laravel Package is hosted on . Install as below.

composer require trustenterprises/hashgraph

Requirements

  • PHP 7.4

  • Laravel 7.*

This package will have releases that will support Laravel 5.8.* projects, the version of Guzzle needed to be lowered to meet these requirements.

Database migration

Run these commands in your terminal to publish and migrate your new tables.

php artisan vendor:publish --provider="Trustenterprises\LaravelHashgraph\LaravelHashgraphServiceProvider" --tag="migrations"
php artisan migrate

Configuration

Publish your config file with this command.

php artisan vendor:publish --provider="Trustenterprises\LaravelHashgraph\LaravelHashgraphServiceProvider" --tag="config"

Adding your Environment Variables

Update these environment variables in your .env file with your client URL and secret key.

  • HASHGRAPH_NODE_URL

  • HASHGRAPH_SECRET_KEY

Don't forget to reset your server to update the config.

Updating the webhook route

By default the callback webhook route in the app ends with /hashgraph this can be changed by updating the HASHGRAPH_WEBHOOK_ROUTE in your Laravel App.

Packagist