909 questions
1
vote
0
answers
37
views
Show a success message after deletion from nova resource
<?php
namespace App\Nova;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Laravel\Nova\Actions\Action;
use Laravel\Nova\Fields\ID;
use Laravel\Nova\Http\Requests\NovaRequest;
...
1
vote
0
answers
86
views
Laravel nova dashboard custom logo not loading
I have a logo.svg in my public/images directory and want to use that as the new logo for my Laravel nova dashboard.
config/nova.php
'brand' => [
'logo' => public_path('images/logo.svg'),
],
...
0
votes
0
answers
74
views
laravel nova show hide password in login
Problem
My Laravel project uses Nova dashboard.
I want to add an eye icon to show/hide the password in the built-in Nova login page.
What I tried
I checked if vendor:publish exposes Nova views — but ...
0
votes
0
answers
30
views
Lara Nova Admin Package stepanenko3
Has anyone tried stepanenko3 package in Nova Admin?
I have tried:
MenuItem::link('Error Logs', '/nova‑vendor/log-viewer')
MenuItem::link('Error Logs', '/nova‑vendor/stepanenko3/logs‑tool/logs' // ...
0
votes
0
answers
64
views
Laravel Nova Breadcrumbs with Custom Icons
I'm using Laravel Nova and looking for a way to customize breadcrumbs.
I want to add icons and also change the text of some pages.
I've checked the Nova documentation, but I couldn't find an official ...
-1
votes
1
answer
35
views
Why chmod() in Laravel Nova does not work with GeeseFS? [closed]
GeeseFS allows to mount S3 as unix filesystem but with Laravel Nova it does not work.
After turning on throwing filesystem exceptions in Laravel config/filesystems.php, parameter throw => true
...
0
votes
1
answer
276
views
Laravel 10 / Nova 4 - Inertia requests must receive a valid Inertia response
I have been racking my brains for days over this problem and could not fix it yet. I would be so appreciate if someone could help me!
# Current Environment (Local Docker)
"php": "8.1&...
0
votes
0
answers
16
views
How from user profile editor make reference to related model?
On laravel 11 / nova 4 app I I have User model with method :
public function userProfile(): HasOne
{
return $this->hasOne(UserProfile::class);
}
and in UserProfile model :
public function user(...
0
votes
1
answer
408
views
I got composer error with nova licence issue
On laravel 11 site I need manually edit content of nova-permission package and I edited my root composer.json :
"require": {
...
"vyuldashev/nova-permission": &...
0
votes
0
answers
50
views
How to add repository with plugin I need to edit in composer.json?
On laravel 11 site I have vyuldashev/nova-permission installed, so composer.json have :
"require": {
"php": "^8.2",
"laravel/framework": "^10.10&...
0
votes
0
answers
45
views
How to make test for nova action class, which is called from user's view page?
On laravel 11 / nova 4 app I use action class, which is called from user's view page :
<?php
namespace App\Nova\Actions\User;
use App\Enums\UserBalanceActionTypeEnum;
use App\Library\Facades\...
0
votes
0
answers
28
views
How to add laravel/pulse onto laravel/nova site?
I try to use pulse plugin on laravel/nova site
but when with default option in config/pulse.php :
'path' => env('PULSE_PATH', 'pulse'),
I got 404 error.
I tried to change it as :
'path' => env('...
0
votes
0
answers
105
views
How can I integrate Fancybox in Laravel Nova for an image gallery?
I'm building a Laravel Nova project and would like to integrate Fancybox to display an image gallery with lightbox and slider functionality. I have a field (stored as a JSON array of image paths) that ...
0
votes
1
answer
64
views
laravel nova 403 before login in production [closed]
Essentially, in the production environment, I encounter the 403 page even before logging in (it does not even show login page). Here's how the gate function in the NovaServiceProvider is defined:
...
1
vote
1
answer
116
views
not access offset of type Laravel\Nova\Support\PendingTranslation on array error when using maatwebsite/laravel-nova-excel
I'm encountering the following error when using the maatwebsite/laravel-nova-excel package in a Laravel Nova project:
Cannot access offset of type Laravel\Nova\Support\PendingTranslation on array
I ...
0
votes
0
answers
52
views
how to access custom field's data in the dependsOn() of other field in nova
CustomRepeatInterval::make('Repeat Every','custom_repeat_interval')
->dependsOn('repeat_interval', function (Field $field, NovaRequest $request, FormData $formData)
{
if ($formData->...
0
votes
1
answer
40
views
How can I install Laravel Nova::SearchableRelation?
Going through Laravel Nova documentation, I noticed that SearchableRelation appears to be a built-in feature in Nova. However, I couldn't find it in my project.
How can I install or enable it?
For ...
0
votes
1
answer
108
views
Laravel Nova 5 error registerStoreModules in app.js
I love Nova and it is working really well for my project, and I upgraded to Nova 5 a few days ago. Not sure it is related to the upgrade, but every time I refresh a page or go directly to a URL, I ...
0
votes
0
answers
38
views
Nova resource search on click/enter, instead of while typing
I have a resource of 10,000,000+ items and search is slow, especially while it searches for each letter typed.
I have found a half-fix https://nova.laravel.com/docs/resources/the-basics#resource-index-...
0
votes
0
answers
67
views
Why in orders I got error Call to a member function getKeyName() on null?
In Laravel 10 / nova 4.27 app I have orders model defined as :
<?php
namespace App\Models;
use App\Casts\MoneyCast;
use App\Enums\OrderOtherShippingEnum;
use App\Enums\OrderStatusEnum;
use ...
0
votes
0
answers
47
views
Wrong options in Repeatable component raised error?
In Laravel 10 / nova 4.27 app ProductAttribute model belongs to Product model
class ProductAttribute extends Model
{
protected $table = 'product_attributes';
protected $primaryKey = 'id';
...
0
votes
1
answer
66
views
Why created lense is not shown in Dashboard page?
Reading manuals https://nova.laravel.com/docs/lenses/defining-lenses.html
in Laravel 10 / nova 4.27 app I create a new lens with command
php artisan nova:lens Orders/...
0
votes
1
answer
81
views
How to show/hide Date input depending on which status is selected in the form?
In a Laravel 10 / Nova 4.27 app, I want to show the published_at field in the editor only if the status field has the value ACTIVE. Here is my current code:
Badge::make(__('Status'), 'status')->...
-1
votes
1
answer
22
views
How in editor with tabs get currenct model?
In a Laravel 10 / Nova 4.27 app, I'm using a large editor with tabs ("eminiarts/nova-tabs": "^2.2"), and I need to show or hide one of the tabs based on the value of the ...
0
votes
1
answer
26
views
Ho to show default avatar when avatar field is empty or file not found?
In a Laravel 10 / Nova 4.27 app, I have an avatar field defined in the User resource:
Image::make(__('Avatar'), 'avatar')
->disk('local')
->path('public/avatars')
->prunable()
...
0
votes
0
answers
43
views
How in table-metrics made action deleting selected row?
I made the following class using table-metric specified in docs.
class OrdersInInvoiceWithExpireDate extends Table
{
/**
* Calculate the value of the metric.
*
* @param \Laravel\...
-1
votes
1
answer
42
views
How defining metrics to use other datetime field in request?
Reading https://nova.laravel.com/docs/metrics/defining-metrics.html#value-metrics docs
in Laravel 10 / nova 4.27 app I added metrics with command :
php artisan nova:value OrdersCompleted
i need to ...
0
votes
1
answer
245
views
Laravel Nova select field option disable
I want to disable only one option from select list, how I can do it?
Select::make('Cloudflare', 'cloudflareId')
->searchable()
->options($allCloudflares)
->...
1
vote
1
answer
188
views
Laravel Nova: How to Create User and Associated Profile Simultaneously in One Step
I'm working on a Laravel project with Nova 4 and I'm struggling to create a User with the role 'instructor' and their associated InstructorProfile in a single step using Nova's admin interface. It's ...
0
votes
1
answer
62
views
Attach resource in creation time with pivot columns
product and contracts, both has many to many relationship, I have added following in contracts nova resource.
BelongsToMany::make('Products', 'products', Products::class)
->fields(...
0
votes
1
answer
73
views
DigitalCreative Conditional Container Error in Laravel Nova
I have created a custom field in laravel nova and wrapped it around a conditional container. When the toggle is set to true the custom field shows up but in this case in the console I get an error:
...
0
votes
1
answer
55
views
Laravel Nova - Belongs To Many Extended Form
Is there a way in laravel nova to extend the belongsToMany attach form to include addition fields.
I have a relationship between Courses and Members as well as a relationship between Courses and ...
1
vote
1
answer
75
views
Dynamic Auto fill pivot column fields in BelongsToMany relationship between resources
I have two models product and contracts, both has many to many relationship
Product has 2 fields, name and price
Models -
Product.php
public function contracts()
{
return $this->...
0
votes
0
answers
127
views
Extending Laravel Nova: Building a Full Marketplace with Admin and Client Features
I've been diving into Laravel Nova and am really impressed with its intuitive UI and powerful features. As someone still in the learning phase of Laravel, I could really use some guidance from the ...
0
votes
2
answers
276
views
How to prevent a BelongsToMany relationship from allowing `attach`
I have several purchasable models that have a many to many relation ship with the customer model. As such I am using a BelongsToMany relationship.
BelongsToMany::make(__('Courses'), 'courses', Course:...
0
votes
0
answers
61
views
Laravel Nova devtical/nova-qrcode-field package Not working on server
I am using devtical/nova-qrcode-field package to display a QRCode image field in laravel Nova, it works perfectly locally but when pushed to the server (Amazon lightsail) for test it doesn't display.
...
0
votes
1
answer
209
views
Password Confirmation not working correctly in Laravel Nova
I am working on setting up a password confirmation field in my Laravel Nova resource.
In the AppServiceProvider.php I have:
use Illuminate\Validation\Rules\Password;
Password::defaults(function () {
...
0
votes
1
answer
204
views
How to use laravel nova trix field in own custom field?
Can someone please tell me how to use the included laravel nova fields in an own custom field. In my case I want to use the TrixField.vue in my custom field. I can't find how to implement this ...
<...
0
votes
1
answer
393
views
Custom Action Buttons on Form in Laravel Nova 4
I am trying to create a custom button at the bottom of a resource that will save the record and then take all of the information in that record and duplicate it into another record.
This duplicated/...
1
vote
1
answer
430
views
Can I add a standalone button next to the create button in Nova 4 in Laravel?
I would like to add a standalone button just next to the create button in a resource. without lots of work it's only purpose that it will work as an anchor tag to redirect to another page. What's a ...
2
votes
1
answer
84
views
Add drop-down to change status using action in Nova laravel
I am using Nova laravel dashboard. I want to achieve is to add drop-down with option and by that I can change status in database. I added action for changing status, now I want a way to add drop-down ...
0
votes
1
answer
119
views
Invoice create view in Nova Laravel
I am working on a project using Nova, and I need to create a standard invoice view resource for the invoice model. I am uncertain about the best approach and would appreciate some guidance.
Here's ...
0
votes
0
answers
1k
views
Laravel Impersonate User
I am trying to implement a impersonate feature into my Laravel 11 app without using any package. But it redirects back to login page.
Below is my middleware handle
public function handle(Request $...
0
votes
2
answers
365
views
Get corresponding model in laravel nova action fields function
How can I get the current model in the laravel nova actions field function? Can't find it out ...
public function fields(NovaRequest $request)
{
Log::info($request->model());
return [
...
0
votes
1
answer
98
views
Laravel Nova 4 format date in BelongsTo field
I kindly need your support to understand how to apply the same date format, as indicated in the original resource, to the belongsTo field in Laravel Nova 4.
Resource 1
public function fields(Request $...
3
votes
2
answers
898
views
Display the Model's Repeater Field JSON Data on the Detail View in Laravel Nova
I'm using the repeater field on my resource which looks and works great for editing, but how do I display the json data it saves to my detail page? I assume I use the KeyValue field for displaying but ...
2
votes
1
answer
78
views
Many to many relationship with the same table
I have table "projects" with field BasedOnId
And I want to create morphToMany relationsship in current table
In resource Projects I create field
BelongsToMany::make(\App\Nova\Projects::label(...
1
vote
0
answers
86
views
Laravel Nova BelongsToMany relation | models in two separate databases
Laravel Version: 10.47.0
Nova Version: 4.23.0 (Silver Surfer)
PHP Version: 8.2.13
Database Driver & Version: MySQL 10.11.6-MariaDB-1:10.11.6+maria~deb11
Operating System and Version: Debian 11
...
0
votes
1
answer
158
views
Download PDF DomPDF Laravel Nova 4
The Laravel Nova 4 documentation says that to implement a download action I should do it like this:
return Action::downloadUrl('https://example.com/invoice.pdf', 'Invoice.pdf');
But it doesn't work.
...
1
vote
0
answers
103
views
How can I customize the MainHeader.vue layout in Laravel Nova without violating update principles?
I want to customize the Laravel Nova source code, specifically by adding a small code block to the file vendor/laravel/nova/resources/js/layouts/MainHeader.vue.
look something like this:
<template&...