Backend
NStack integration for Laravel
📝 Introduction
📦 Installation
To install this package you will need:
- Laravel 5.1+
- PHP 7.0+
You must then modify your composer.json
file and run composer update
to include the latest version of the package in your project.
"require": {
"nodes/nstack": "1.0.*",
}
Or you can run the composer require command from your terminal.
composer require nodes/nstack
🔧 Setup
Setup service providers in config/app.php
Nodes\NStack\ServiceProvider::class,
Nodes\ServiceProvider::class,
Setup alias in config/app.php
'NStack' => Nodes\Backend\Support\Facades\NStack::class,
Publish config file
php artisan vendor:publish && php artisan vendor:publish --provider="Nodes\NStack\ServiceProvider" --force
Dump
composer dump-autoload
⚙ Usage
Global function
nstack()
$countries = nstack()->countries()
nstack()->pushLog('fcm', 'my-app', 'userNotification', true, ['request here'], ['response here'], 'Hi!', 1);
nstack()->fileUpload('private-password', $uploadedFile, str_random(8));
nstack()->validateEmail($email): bool
🏆 Credits
This package is developed and maintained by the PHP team at Nodes
📄 License
This package is open-sourced software licensed under the MIT license