This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Providers; | |
use Illuminate\Database\Events\MigrationsEnded; | |
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; | |
use Illuminate\Support\Facades\Artisan; | |
use Illuminate\Support\Facades\Event; | |
class EventServiceProvider extends ServiceProvider | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
…, | |
"scripts": { | |
"schema": "php artisan ide-helper:models -r -W" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use App\Mail\Traits; | |
use Illuminate\Contracts\View\Factory as ViewFactory; | |
use Illuminate\Support\HtmlString; | |
use Soundasleep\Html2Text; | |
trait TextMailBuilder | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Mail; | |
use App\Mail\Traits\TextMailBuilder; | |
use Illuminate\Bus\Queueable; | |
use Illuminate\Mail\Mailable; | |
use Illuminate\Queue\SerializesModels; | |
class OrderReceived extends Mailable | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App; | |
use fbt\Transform\FbtTransform\Translate\IntlVariations; | |
use fbt\Lib\IntlViewerContextInterface; | |
use fbt\Runtime\Gender; | |
class UserDTO implements IntlViewerContextInterface | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
..., | |
"scripts": { | |
"translate-fbts": "php ./vendor/bin/fbt translate --path=./storage/fbt --translations=./storage/fbt/*.json", | |
"generate-translations": "php ./vendor/bin/fbt generate-translations --source=./storage/fbt/.source_strings.json --translations=./storage/fbt/*.json" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// simple text: | |
echo fbt('Save', 'Button: Save a form or settings'); | |
// text with params: | |
$name = 'Patricia'; | |
$gender = 2; | |
echo fbt( | |
\fbt\fbt::name( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"phrases": [ | |
{ | |
"hashToText": { | |
"77515026232eb24b14cc5e7cca878637": "Save" | |
}, | |
"desc": "Button: Save a form or settings", | |
"project": "tutorial app", | |
"author": "richard", | |
"type": "text", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"sk_SK": { | |
"fb-locale": "sk_SK", | |
"translations": { | |
"77515026232eb24b14cc5e7cca878637": { | |
"translations": [ | |
{ | |
"translation": "Uložiť", | |
"variations": [] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"sk_SK": { | |
"2gTzp8": [ | |
"Uložiť", | |
"77515026232eb24b14cc5e7cca878637" // phrase hash | |
], | |
"16x4nE": { | |
"1": [ // male | |
"{name} zdieľal odkaz. Dajte mu vedieť, že sa vám páči.", | |
"11608ffd7ee5e79d727ab00631b2c164" |
OlderNewer