Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.25 KB

README.md

File metadata and controls

44 lines (30 loc) · 1.25 KB

TUS.Greet

Run tests StyleCI Packagist

Build for Laravel, this package is all about the usual "Good ..." greeting based on time and with option to add name at the end link "Good ..., John Doe". coffee for me?

Link to Packagist

Installation

Install via composer

composer require the-usual/greet

Publish package assets

php artisan vendor:publish --provider="TheUsual\Greet\ServiceProvider"

Usage

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use TheUsual\Greet\Greet;

class HomeController extends Controller
{
    public function greet()
    {
        echo Greet::hello('John Doe');
    }
}

This package is bootstrapped with the help of melihovv/laravel-package-generator.