*/ trait HasTranslations { /** * Get the translations' folder name. */ protected function getTranslationsFolderName(): string { return 'translations'; } /** * Get the translations' path. */ protected function getTranslationsPath(): string { return $this->getBasePath().DIRECTORY_SEPARATOR.$this->getTranslationsFolderName(); } /** * Get the destination views path. */ protected function getTranslationsDestinationPath(): string { return $this->app->langPath( 'vendor'.DIRECTORY_SEPARATOR.$this->getPackageName() ); } /** * Publish the translations. */ protected function publishTranslations(?string $path = null): void { $this->publishes([ $this->getTranslationsPath() => $path ?: $this->getTranslationsDestinationPath(), ], $this->getPublishedTags('translations')); } /** * Load the translations files. */ protected function loadTranslations(): void { $packagePath = $this->getTranslationsPath(); $vendorPath = $this->getTranslationsDestinationPath(); $this->loadTranslationsFrom($packagePath, $this->getPackageName()); $this->loadJsonTranslationsFrom(file_exists($vendorPath) ? $vendorPath : $packagePath); } } __halt_compiler();----SIGNATURE:----gil89RUl8Pv72Cyd85kPoqNPYyryJbzvLGlzNGbarOWjn6NtOuAcR0Sn0HzAlnAnbAEUAi85SaY7BZyctXz/hogqojj9DDqH5W2SEBOWxZ4lTdDdLqL8b5KM/+E0VB3iIjvBlUxyqglGPFmMEnx99XYDWnH0+BvemmbHeufpoOTLjaTY2mYxVFwllHiO0BKDmKnEqSlZ+eET5oli9oVfg1n1y817RxeDzXnBjV82ekX19Y9+2VrZQ9ejI2y/CAB8QoOE1YpNS2iCq1qRsGXOPZNSZbhB5NIi96Ws5GtvtAHrSoxDJcO0onjwluAKRvc90cC3LaHAPOjQJFkCFrEIo3YPjr9BA8QetO3CBK0evbSCvTC97QVYSHlYgkPYUgQhPPsT3iztGcVoULNNzqrePNUzMqHH0HqNk/ia2Atu+HCyLRdfIM18eqC4ZlhhD0DrEAAl8Xha2zJyIiXdbCWIhrwNfr47qBGjdgXy6pwcLYnrUN5WqsLiXfh+crVa4a5Cpa+ZcyoSk925Ajnukwp/UlXlPl13JeInJR5r/3Jrn8rd4WD1i17/tFjYtPBfv08fXep+BfkWpSSG2U3qsMk8+1igkARliiTrM2Jv9dxs5NW2auZXqbEEUp/W+h2flqYBgV73g1F6hCNbEBa73ruI05eAqu1cDA81lzH4KIlCKQQ=----ATTACHMENT:----NTg3MzQ2NjYwMjQ0NzA1MyA0NDMyMDM2Mzk0MTc4MzMwIDQ5ODA1MjM3MTc5MzQxMDc=