PHP code example of yaroslawww / laravel-eloquent-user-fullname
1. Go to this page and download the library: Download yaroslawww/laravel-eloquent-user-fullname library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
yaroslawww / laravel-eloquent-user-fullname example snippets
bash
php artisan vendor:publish --provider="Angecode\LaravelFullName\FullNameServiceProvider" --tag="migrations"
php
$result = StrHelper::implodeFiltered([
'foo',
null,
'bar',
''
]);
echo $result; // "foo bar"
$result = StrHelper::implodeFiltered([
'foo',
'test',
'bar',
'test',
], '|', function ($item){
return $item == 'test';
});
echo $result; // "test|test"