Category : voyager

I’m working with the voyager admin panel and when I do the BREAD on my table then I try to edit anything it gives me this error Call to undefined method AppModelsPosts::getTranslationsOf() (View: /Users/bee/Desktop/beeT/vendor/tcg/voyager/resources/views/posts/edit-add.blade.php) I can’t figure out what’s the problem exactly this is my posts.php model <?php namespace AppModels; use IlluminateDatabaseEloquentFactoriesHasFactory; use IlluminateDatabaseEloquentModel; class ..

Read more

When I try to install voyager on laravel 8 with composer: composer require tcg/voyager It starts installing, but then flashes error message: Install of tcg/voyager failed Installation failed, reverting ./composer.json and ./composer.lock to their original content. [RuntimeException] Failed to clone https://github.com/the-control-group/voyager.git, git was not found, check that it is installed and in your PATH env. ..

Read more

I am working on a laravel project and trying to duplicate a record in mysql db. after replication I want to set a field value to null(appointment_status). everything is working except the new record’s value (appointment_status) is the same as the original record even tho I set it to null. $newAppointment = $appointment->replicate(); //push to ..

Read more