PHP code example of achyutn / laravel-helpers

1. Go to this page and download the library: Download achyutn/laravel-helpers 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/ */

    

achyutn / laravel-helpers example snippets




namespace App\Models;

use AchyutN\Traits\HasTheSlug;

class Post extends Model
{
    use HasTheSlug;
}


namespace App\Models;

use AchyutN\Traits\HasTheMedia;

class Post extends Model
{
    use HasTheMedia;
}



namespace App\Models;

use AchyutN\Traits\HasTheDashboardTraits;

class Post extends Model
{
    use HasTheDashboardTraits;
}



echo(english_nepali_number('१ २३४५६७८०९', 'en')); // 1 234567890

echo(english_nepali_number('1 234567890', 'ne')); // १ २३४५६७८०९



echo(english_nepali('नेपाली', 'Nepali', 'en')); // Nepali
echo(english_nepali('नेपाली', 'Nepali', 'ne')); // नेपाली