Random Number Generator
it is for laravel 5+, (*1)
Begin by installing this package through Composer. Just run following command to terminal-, (*2)
composer require nirmal/random=dev-master
Once this operation completes, the final step is to add the service provider & aliases. Open config/app.php
, and add a new item to the providers array., (*3)
'providers' => [ ... Nirmal\Random\RandomServiceProvider::class, ... ]
Now add the alias., (*4)
'aliases' => [ ... 'Ndom' => Nirmal\Random\Facades\RandomFacade::class, ... ]
This package provide various type of commands like random number, random captcha image etc., (*5)
generator in html, (*6)
Route::get('/', function () { $x = Ndom::create(); echo "<img src='$x' />"; die; return view('welcome'); });