fivesqrd/fluent-laravel

A Laravel 5 service provider for including the Fluent PHP library.
3,160
Install
composer require fivesqrd/fluent-laravel
Latest Version:v2.0.2
PHP:>=5.5.9
Laravel:5 · 6 · 7
Last Updated:Jun 13, 2020
Links: GitHub  ·  Packagist
Maintainer: christianjburger

Fluent-Laravel

Fluent package for Laravel 5.5+

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:

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

Using it in the app:


/* 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:

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

Related Packages

rafflesargentina/l5-resource-controller

Repository pattern based Resource Controller, for use with Caffeinated Repositor...

304 0
datastat/megapos

EON MegaPOS for laravel 5

32 0
babanesma/laravel5-routing

Laravel5 routing package

14 0
shekarsiri/like

Laravel package to like the objects

5 0

Version History

Version Released PHP Laravel License
v2.0.2 >=5.5.9 >=5.5.0
v2.0.1 >=5.5.9 >=5.5.0
v2.0.0 >=5.5.9 >=5.5.0
v1.1.2 >=5.5.9 >=5.5.0
v1.1.1 >=5.5.9 >=5.5.0