#### Category : laravel-nova

I’m trying to create a nova tool but its always showing errors. I’m doing like in this format php artisan nova:tool app/testool But then when I try to use it it shows either this error: [RuntimeException] The url supplied for the path (./nova-components/Testool) repository does not exist Or it shows this error: [RuntimeException] require.App/testool is ..

I’m trying to create a nova tool but its always showing errors. I’m doing like in this format php artisan nova:tool app/testool But then when I try to use it it says [RuntimeException] The url supplied for the path (./nova-components/Testool) repository does not exist Do you know why? Also in some places there are this ..

I have a Flexible::make containing an Image::make function. My database is definitly set up correctly. When i try to insert or update an Image in the section, i dont receive an entry for the image. The other attributes work. My Nova File: Flexible::make(‘middle_section3_items’) ->addLayout(‘middle section3 items’, ‘middle_section3_items’, [ Text::make(‘Title Part1’, ‘title1’)->withMeta([‘extraAttributes’ => [‘maxlength’ => 18]]), ..

I am using Nova in laravel for designing the page,i am writing some rules function which will allows digits:20 . Text::make(‘TrackID’,’id’)->rules(‘nullable’,’digits:20′ )->sortable()->nullable()->hideFromIndex(), while updating the data if the numbers are more that it should throw an error like Max 20 digits allowed, now i want to give the length dynamically ,How to do that one ..

How can the Multiselectfield be updated when the default field changes , to show the list with the default office removed. Multiselect NovaServiceProvider- public function boot(){ parent::boot(); $office = { 100: "USA", 101: "Canada", 101: "India"}; //from api$defaultOffice = nova_get_setting(‘default_office’); $exludedOffice =$office; unset($exludedOffice[$defaultOffice]); OptimistDigitalNovaSettingsNovaSettings::addSettingsFields([ Panel::make(‘Settings’, [ Select::make(‘Default office’)->options($office), Multiselect::make(‘Exclude office’)->options($exludedOffice), ]), ]); } ..

I was working on a laravel 8 project that used Nova 3.X and PHP 7.4 . Currently I’m trying to reinstall the project on my new windows machine : I have installed PHP 7.4 via XAMPP I installed the latest version of Composer 2 via the windows installer globally I cloned the project, removed the ..

I recently downloaded a Nova package that allows developers to place the action log in a tabbed navigation pane. This makes my UI redundant so I want to remove the default action log UI section below a model’s details. If I remove the "Actionable" trait, then the action log is completely unavailable, including the tabbed ..

I recently tried to deploy my laravel Nova project in docker, and my search brought me to laravel sail. So having the default docker-compose.yml file included in the project, I ran the ‘sail up’ command in my project working directory ./vendor/bin/sail up This command downloaded and setup the images specified in the docker-compose.yml file version: ..

I recently tried to deploy my laravel Nova project in docker, and my search brought me to laravel sail. So having the default docker-compose.yml file included in the project, I ran the ‘sail up’ command in my project working directory ./vendor/bin/sail up This command downloaded and setup the images specified in the docker-compose.yml file version: ..

I am new to Laravel Nova and i want to upload an avatar either from computer or capture from webcamera. As for now i have created a conditional dependency select field to hide and show elements using this package. I have come across webcamjs and i want to know how would i implment this custom ..

I used Laravel Breeze in Laravel Nova to generate scaffold code for registering a user. When a user go to registering an account, he goes to the /register route. All the Breeze code is working. But when account is created, it redirect to RouteServiceProvider::HOME class RegisteredUserController extends Controller { public function store(Request $request) {$request->validate([ ..

I’m using Laravel Nova to make a collaborative Wiki for songs. I would like an unauthenticated user be able to see the songs, but not collaborate. He would be able to collaborate only after registering a new account. I tried to comment the LaravelNovaHttpMiddlewareAuthenticate middleware, in file ‘web’ middleware in config/nova.php. Now, it still works ..

I’ve created a new Laravel Nova Partition and everything works as expected. I just have one issue. Is it possible to change this total count? Currently is automatically counting up all the graph sections/groups, but I already have the sum, which is the $activityReport->total_affiliates column, and ideally, this should be shown as totoal. Can this .. Read more I would like the user to be able to see all the content of nova without authenticating. Then when he clicks on create/edit resource, he should be redirected the create account page ( which is not present on nova by default). I have no clue how to do it ? Is it possible? I guess .. Read more Goal: Have select field DCs on a pivot table that filters options base on another field on pivot table Vendor. Current Results: After clicking Attach Vendor of Location Page: Can enter data, select DC from options But options are not filtered by Vendor. So I get all DCs for all Vendors. Bad UX Location.php (Fields .. Read more I am using Nova Settings in which a Color picker field is used. NovaServiceProvider- OptimistDigitalNovaSettingsNovaSettings::addSettingsFields([ Panel::make(‘Colors’, [ Color::make(‘Primary color’)->slider(), Color::make(‘Secondary color’)->slider(), ]), ]);$primary-color = nova_get_setting(‘primary_color’); In my CSS file – :root { –primary-color: rgb(255, 0, 0); //want the nova color setting to be used here –secondary-color: rgb(255, 197, 6); } How can the Nova ..

Does anyone know how to implement HTML-minifier to Laravel Nova? I’m having issues with performance. Sourc..

when i am reordering laravel nova nav-menu , this error comes,can anyone solve Nova::sortResourcesBy(function ($resource) { return$resource::$priority ?? 9999; }); Sourc.. Read more How can an API data called in Laravel Nova be set dynamically into a select box so that the name is shown to the user and the key is saved in the database? i.e.: Package select options should show – Standard, Premium, Luxury in Nova Data is coming from an API call ($packages = API ..

invoices table – id charges table – id – invoice_id – amount payment table – id – invoice_id – amount These are my tables. The scenario is the invoices table can hasMany either charge and payment. I want to sum amount of charge and payment and it will only return the scenario that the payment ..

I have a Laravel Nova application in production working perfectly. However in local this morning when I have gone to update and add some things, I find a type declaration error. I have a Laravel Nova application in production working perfectly. However in local this morning when I have gone to update and add some ..

I use Laravel Nova. On a resource I have an Action. The fields method returns a BooleanGroup Field: return [ BooleanGroup::make(‘Tagss’)->options( [ ‘one’, ‘two’, ‘three’, ‘four’ ] ), ]; Result: I don’t know how to pre-check checkboxes. Let’s say ‘two’ should be checked when the modal loads, how to do this? Sourc..

I want to pass $defaultFrom from NewsletterController.php: <?php namespace AppHttpControllers; use AppMailNewsletterMail; use IlluminateSupportFacadesDB; use IlluminateSupportFacadesMail; class NewsletterController extends Controller { public function send() {$defaultFrom = ‘[email protected]’; DB::table(‘newsletter_mails’)->insert([‘from’ => $defaultFrom]);$emails = DB::select(‘select * from newsletters order by id desc’); foreach ($emails as$email) { Mail::to(\$email)->send(new NewsletterMail()); } } } to NewsletterMail.php: <?php namespace ..