Category : voyager

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

I have created a new menu item called Reporting, using the tools->menu builder. I want to hide this menu item from other roles except admin and finance roles. I tried looking into permission in role but it was not listed there. I think the list of permissions are extracted from database directly, but this reporting ..

Read more

I’m using laravel 7 voyager 1.4, I’m also using customization for edit-add.blade.php views, for one of my breads. I’m using voyager’s controller (no override on controllers). I’ve tried adding ajaxForm like this: var bar = $(‘.bar’); if (bar.length === 0) return; var percent = $(‘.percent’); var status = $(‘#status’); var remainingTimeDisplay = $(‘#remainingTime’); var uploadSpeed ..

Read more

I have this issue when I try to show the name in my public view {{$boletin->url}} and show me this: [{"download_link":"boletinesDecember2020Hpxj1lGpxXi8f5tTeOld.pdf","original_name":"C_PROCESO_20-12-11135698_250001015_78680742.pdf"}] and I cant download the file recently uploaded. this is my code: url}}” download=”{{explode(‘.’,$boletin->url)[0]}}” class=”btn btn-success”>Descargar the thing is that in the admin voyager show me very good I hope someone can help me ..

Read more

When trying to format date with laravel accessor everything works fine. public function getDueDateAttribute($value) { return Carbon::parse($value)->format(‘d-m-Y’); } But when I use Laravel Voyager BREAD Browse accessor public function getDueDateBrowseAttribute($value) { return Carbon::parse($value)->format(‘d-m-Y’); } I get the following error: ErrorException(code: 0): Data missing at vendor/nesbot/carbon/src/Carbon/Traits/Creator.php:594 Sourc..

Read more