I need a hierarchical structure for my language files in laravel. Imagine that I have following language file for /resources/lang/en/entity.php
<?php
return [
'show' => 'Show Item',
'view' => 'View Item',
'edit' => 'Edit Item',
'create' => 'Create a new Item',
];
Now I need a new file for post entity at /resources/lang/en/post.php but I don't want to copy all texts from entity.php file into the new file. I just need to change create
message for the new entity. Something like following.
<?php
return [
// Inherit the rest of texts from entity.php
'create' => 'Create a new Blog Post',
];
Is there anyway to achieve this? Thank you all in advanced.