One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| <?php | |
| class Helper | |
| { | |
| public static $bn = ['১', '২', '৩', '৪', '৫', '৬', '৭', '৮', '৯', '০']; | |
| public static $en = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0']; | |
| public static function bn2en($number) | |
| { |
| <?php | |
| namespace App\Passport; | |
| use App\User; | |
| use Lcobucci\JWT\Builder; | |
| use Lcobucci\JWT\Signer\Key; | |
| use League\OAuth2\Server\CryptKey; | |
| use Lcobucci\JWT\Signer\Rsa\Sha256; | |
| use Laravel\Passport\Bridge\AccessToken as BaseToken; |
| import { ValidationArguments, ValidatorConstraintInterface } from 'class-validator'; | |
| import { Connection, EntitySchema, FindConditions, ObjectType } from 'typeorm'; | |
| interface UniqueValidationArguments<E> extends ValidationArguments { | |
| constraints: [ | |
| ObjectType<E> | EntitySchema<E> | string, | |
| ((validationArguments: ValidationArguments) => FindConditions<E>) | keyof E, | |
| ]; | |
| } |
| <?php | |
| /** | |
| * Gera a paginação dos itens de um array ou collection. | |
| * | |
| * @param array|Collection $items | |
| * @param int $perPage | |
| * @param int $page | |
| * @param array $options | |
| * | |
| * @return LengthAwarePaginator |
| axios({ | |
| url: 'http://localhost:5000/static/example.pdf', | |
| method: 'GET', | |
| responseType: 'blob', // important | |
| }).then((response) => { | |
| const url = window.URL.createObjectURL(new Blob([response.data])); | |
| const link = document.createElement('a'); | |
| link.href = url; | |
| link.setAttribute('download', 'file.pdf'); | |
| document.body.appendChild(link); |
| <?php | |
| namespace App\Providers; | |
| use Illuminate\Support\Collection; | |
| use Illuminate\Pagination\LengthAwarePaginator; | |
| class AppServiceProvider extends ServiceProvider | |
| { | |
| public function boot() |
| <?php | |
| /** | |
| * Gera a paginação dos itens de um array ou collection. | |
| * | |
| * @param array|Collection $items | |
| * @param int $perPage | |
| * @param int $page | |
| * @param array $options | |
| * | |
| * @return LengthAwarePaginator |
| /** | |
| * Continents and Countries MySQL Tables compiled from Wikipedia, Braintree Payments documentation | |
| * and a couple other places I don't recall at the moment. This data is compatible with the Braintree | |
| * Payment API as of Dec 2011 | |
| * | |
| * Compiled by Steve Kamerman, 2011 | |
| */ | |
| SET FOREIGN_KEY_CHECKS=0; | |
| -- ---------------------------- |