PHP code example of potsky / laravel-localization-helpers
1. Go to this page and download the library: Download potsky/laravel-localization-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/ */
potsky / laravel-localization-helpers example snippets
public function register()
{
if ($this->app->environment() === 'dev') { // or local or whatever
$this->app->register(\Potsky\LaravelLocalizationHelpers\LaravelLocalizationHelpersServiceProvider::class);
}
}
bash
#!/bin/bash
php artisan localization:missing -s
if [ $? -eq 0 ]; then
echo "Nothing to do dude, GO for release"
else
echo "I will not release in production, lang files are not clean"
fi
bash
php artisan localization:missing -r
bash
php artisan localization:missing -e
bash
php artisan localization:clear
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.