## Lumen PHP Framework

[![Build Status](https://travis-ci.org/laravel/lumen-framework.svg)](https://travis-ci.org/laravel/lumen-framework)
[![Total Downloads](https://poser.pugx.org/laravel/lumen-framework/d/total.svg)](https://packagist.org/packages/laravel/lumen-framework)
[![Latest Stable Version](https://poser.pugx.org/laravel/lumen-framework/v/stable.svg)](https://packagist.org/packages/laravel/lumen-framework)
[![Latest Unstable Version](https://poser.pugx.org/laravel/lumen-framework/v/unstable.svg)](https://packagist.org/packages/laravel/lumen-framework)
[![License](https://poser.pugx.org/laravel/lumen-framework/license.svg)](https://packagist.org/packages/laravel/lumen-framework)

Laravel Lumen is a stunningly fast PHP micro-framework for building web applications with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Lumen attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as routing, database abstraction, queueing, and caching.

## Official Documentation

Documentation for the framework can be found on the [Lumen website](http://lumen.laravel.com/docs).

## Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell at taylor@laravel.com. All security vulnerabilities will be promptly addressed.

### License

The Lumen framework is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)


=============================================================


composer create-project laravel/lumen="5.1.0" GDPR
goto/GDPR
	composer install

composer.json
  "minimum-stability": "dev"   ==> so that we can install unsable package


composer require alexacrm/dynamics-webapi-toolkit
composer require illuminate/mail:5.1.*

	
To run php:
php -S localhost:8000 -t public



=========================================
CREATE MIGRATION
php artisan make:migration create_<TBLNAME>_table --create=<TBLNAME>
php artisan migrate
php artisan migrate:refresh -- drop all tables and migrate
php artisan migrate:rollback --- rollback previous migration

===========================================================================


https://apps.dev.microsoft.com
AppID: 060b738b-6c68-4df8-9f05-107a33ca1831
pswd: mqtnaUZR55cdEMTI020?@+=
===================================================================
From Azure
AppID:
ab614208-f8b5-4352-a306-bd7022b36b54

Secret
NlXZ5rQlHDieLF0rdAuJfByVUciTh1DMKcuUVQbBCp0=

Contact User Example:
F11EAD6A-B12B-E811-A82F-000D3A2B2B9F


/*
      Old Given:
      Instance web api: 
        https://erni.api.crm4.dynamics.com/api/data/9.0
      Instance reference info: 
      Connect api to dynamics 365 discovery service:
        https://disco.crm4.dynamics.com/api/discovery/9.0
      Organization Service:
        https://erni.api.crm4.dynamics.com/XRMServices/2011/Organization.svc
      Discovery Service
        https://disco.crm4.dynamics.com/XRMServices/2011/Discovery.svc





      From Azure 
      appID: ab614208-f8b5-4352-a306-bd7022b36b54
      secret: 
      
      From Ambit
      appID Url: https://erni.ch/584ba9b7-537b-4948-a05a-a1ae130d0d6d
      Azure AD Obj ID: 9fb26d60-7655-4302-a966-6836eafb74a6

      */


 To Gen:

The error is not regarding cORS or something, but it is regarding return of the messaging.
lumen / laravel expects an api to return atleast an array but what we did before is to 
return a boolean. below are the sets of code that executes correctly but returns an error in 
the api:

  return mail($this->r,$this->s, $this->m, $this->headers); // this one return boolean

I have already changed everything under CrmMailController, you can check it. 

Next task for you is to make sure that every return message from front end must 
came from backend . So please catch the return message comming from back end 

Thanks