Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MoamenEltouny committed May 31, 2021
1 parent f31d30e commit 67ca56c
Showing 1 changed file with 31 additions and 28 deletions.
59 changes: 31 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
#### Beta Version

##### Command
```bash
php artisan make:translatable Post --migrations
```

##### Relationship
- translations

##### Scopes
- translated(string $locale = null)
- notTranslated(string $locale = null)
- translatedSorting(string $locale, string $field, string $method = 'asc')
- whereTranslation(string $field, $value, string $locale = null, string $action = 'whereHas', string $op = '=')
- orWhereTranslation(string $field, $value, string $locale = null)
- whereTranslationLike(string $field, $value, string $locale = null)
- orWhereTranslationLike(string $field, $value, string $locale = null)

##### Actions
- translate(string $locale = null)
- translateOrFail(string $locale)
- translateOrNew(string $locale)
- translateOrDefault(string $locale = null)
- hasTranslation(string $locale = null)

##### Attributes
- locales
<p align="center"><a href="https://pharaonic.io" target="_blank"><img src="https://raw.githubusercontent.com/Pharaonic/logos/main/translatable.jpg"></a></p>

<p align="center">
<a href="https://php.net" target="_blank"><img src="https://img.shields.io/static/v1?label=PHP&message=%3E=7.2&color=blue&style=flat-square" alt="PHP Version : >= 7.2"></a>
<a href="https://laravel.com" target="_blank"><img src="https://img.shields.io/static/v1?label=Laravel&message=%3E=6.0&color=F05340&style=flat-square" alt="Laravel Version : >= 6.0"></a>
<img src="https://img.shields.io/static/v1?label=License&message=MIT&color=brightgreen&style=flat-square" alt="License">
<a href="https://liberapay.com/Pharaonic" target="_blank"><img src="https://img.shields.io/liberapay/receives/Pharaonic?color=gold&label=Support&style=flat-square" alt="Support"></a>
<br>
<a href="https://packagist.org/packages/Pharaonic/laravel-translatable" target="_blank"><img src="https://img.shields.io/static/v1?label=Packagist&message=pharaonic/laravel-translatable&color=blue&logo=packagist&logoColor=white" alt="Source"></a>
<a href="https://packagist.org/packages/pharaonic/laravel-translatable" target="_blank"><img src="https://poser.pugx.org/pharaonic/laravel-translatable/v" alt="Packagist Version"></a>
<a href="https://packagist.org/packages/pharaonic/laravel-translatable" target="_blank"><img src="https://poser.pugx.org/pharaonic/laravel-translatable/downloads" alt="Packagist Downloads"></a>
</p>

<h3 align="center">Generates meta tags with quick and easy functions & blade directives.</h3>
<br>

## Documentation

You can find the detailed documentation here in [Laravel Translatable Documentation](https://pharaonic.io/package/2-laravel/16-translatable).

## Contributing

Thank you for considering contributing to this package! Be one of Pharaonic team.

## Pharaonic Sponsors

We would like to extend our thanks to the following sponsors for funding Pharaonic packages development. If you are interested in becoming a sponsor, please visit the Pharaonic [Liberapay page](https://en.liberapay.com/Pharaonic) or [Patreon page](https://patreon.com/Pharaonic).

## License

This package is an open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

0 comments on commit 67ca56c

Please sign in to comment.