2017 © Pedro Peláez
 

library fluent-laravel

A Laravel 5 service provider for including the Fluent PHP library.

image

fivesqrd/fluent-laravel

A Laravel 5 service provider for including the Fluent PHP library.

  • Thursday, April 12, 2018
  • by christianjburger
  • Repository
  • 2 Watchers
  • 0 Stars
  • 30 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Fluent-Laravel

Fluent package for Laravel 5.5+, (*1)

Install

composer require fivesqrd/fluent-laravel

For Laravel 5.5 and later a facade and service provider will be auto-discovered and you should be set to go:, (*2)

#Send a test message
php artisan fluent:test me@mydomain.com

Using it in the app:, (*3)


/* Using the facade to build and send notifications on the fly */ Route::get('/notification/send/{address}', function ($address) { $messageId = resolve('Fluent')->message()->create() ->title('My Laravel Message') ->paragraph('Lorem ipsum dolor sit amet, consectetur adipiscing elit.') ->to($address) ->subject('Testing from Laravel') ->send(); return "Message has been sent - {$messageId}"; });

You can further customise your setup by adding the following values to your .env file:, (*4)

FLUENT_KEY=mykey
FLUENT_SECRET=mysecret
FLUENT_NAME=default from name 
FLUENT_EMAIL=defaultfromaddress@mydomain.com

The Versions

12/04 2018

dev-master

9999999-dev

A Laravel 5 service provider for including the Fluent PHP library.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel laravel 5

12/04 2018

v1.1.0

1.1.0.0

A Laravel 5 service provider for including the Fluent PHP library.

  Sources   Download

The Requires

 

The Development Requires

laravel laravel 5