You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,12 @@ This is a Laravel package for translatable models. Its goal is to remove the com
19
19
20
20
The full documentation can be found at [GitBook](https://docs.astrotomic.info/laravel-translatable).
21
21
22
+
## Installation
23
+
24
+
```bash
25
+
composer require astrotomic/laravel-translatable
26
+
```
27
+
22
28
## Quick Example
23
29
24
30
### **Getting translated attributes**
@@ -66,6 +72,24 @@ echo $post->translate('fr')->title; // Mon premier post
66
72
*[How To Build An Efficient and SEO Friendly Multilingual Architecture For Your Laravel Application](https://mydnic.be/post/how-to-build-an-efficient-and-seo-friendly-multilingual-architecture-for-your-laravel-application)
67
73
*[How to Add Multi-Language Models to Laravel QuickAdminPanel](https://quickadminpanel.com/blog/how-to-add-multi-language-models-to-laravel-quickadminpanel/)
68
74
75
+
## Changelog
76
+
77
+
Please see [CHANGELOG](docs/changelog.md) for more information on what has changed recently.
78
+
79
+
## Contributing
80
+
81
+
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
Copy file name to clipboardExpand all lines: docs/README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,12 @@
8
8
9
9
This is a Laravel package for translatable models. Its goal is to remove the complexity in retrieving and storing multilingual model instances. With this package you write less code, as the translations are being fetched/saved when you fetch/save your instance.
10
10
11
+
## Installation
12
+
13
+
```bash
14
+
composer require astrotomic/laravel-translatable
15
+
```
16
+
11
17
## Quick Example
12
18
13
19
### Getting translated attributes
@@ -55,6 +61,12 @@ echo $post->translate('fr')->title; // Mon premier post
55
61
*[How To Build An Efficient and SEO Friendly Multilingual Architecture For Your Laravel Application](https://mydnic.be/post/how-to-build-an-efficient-and-seo-friendly-multilingual-architecture-for-your-laravel-application)
56
62
*[How to Add Multi-Language Models to Laravel QuickAdminPanel](https://quickadminpanel.com/blog/how-to-add-multi-language-models-to-laravel-quickadminpanel/)
0 commit comments