Sevendays-Digital / filament-nested-resources

MIT License
17 stars 9 forks source link

Create HasTranslatableNestedPage #7

Open mstfkhazaal opened 1 year ago

mstfkhazaal commented 1 year ago

Thanks for @almooradi-dev

almooradi-dev commented 1 year ago

At least mention my name on it dude 😅 (credits 🤷‍♂️)

Don't worry 🙈, the important thing is that these problems are fixed 💪

almooradi-dev commented 1 year ago

And in the CreateYourResource.php, the developer needs to add this

use HasTranslatableNestedPage, Translatable {
    HasTranslatableNestedPage::handleRecordCreation insteadof Translatable;
}
use NestedPage {
    HasTranslatableNestedPage::handleRecordCreation insteadof NestedPage; 
}

Instead of

use Translatable, NestedPage;
mstfkhazaal commented 1 year ago

At least mention my name on it dude 😅 (credits 🤷‍♂️)

Don't worry 🙈, the important thing is that these problems are fixed 💪

Sorry, that's your right, but I was in a hurry

almooradi-dev commented 1 year ago

Sorry, that's your right, but I was in a hurry

No worries 🌷, thanks