909 questions
1
vote
1
answer
332
views
Laravel Nova. Column not found: 1054 Unknown column '*.deleted_at'
I'm using Laravel Nova 4 (Laravel 10.43.0, PHP 8.2.8).
When using soft deletion, I get the error Column not found: 1054 Unknown column '*.deleted_at', where * is the table of the entity for which I ...
0
votes
2
answers
171
views
Laravel polymorphic relationship not working in Laravel Nova
I have the following Models and relationships.
App\Subscriber.php
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Str;...
-1
votes
1
answer
183
views
Laravel Nova - Confirmation modal for update resource
Is there a way to display a confirmation modal like when deleting resource for update case? See the screenshot below.
I didn't find any solution yet. I saw few more similar questions but no one ...
1
vote
0
answers
384
views
Problem with dynamic dependency for custom field in Laravel Nova
I'm currently facing an issue with dynamic dependency in Laravel Nova, specifically related to the usage of a custom AutocompleteField. Let me explain in more detail.
In my resource, I have two fields:...
0
votes
0
answers
150
views
Laravel Nova Datetime field showing wrong value
I have an event model with two properties. start_at and end_at.
I have a Laravel Nova instance to edit the props. For some reason, it shows incorrectly in the dashboard.
Database shows:
But in Nova, ...
-3
votes
1
answer
72
views
How do I create self-referencing relations in laravel nova
I have a model named "Product." This product is associated with a category, and each category has numerous features. Additionally, each feature has a considerable number of feature items.
I ...
2
votes
0
answers
243
views
Migrating Custom Components from Vue2 to Vue3 in Laravel Nova: Issues with $watch Property Replacement
I'm currently upgrading a Laravel Nova project from Nova 3 (which uses Vue2) to Nova 4 (which uses Vue3). And for that reason, we had to do some modification in our custom components.
Like, in Vue3 we ...
1
vote
0
answers
444
views
Laravel Nova isn't using the array key as the option value in filters
I created this filter for Nova v4.32.11:
class AccountFilter extends Filter
{
public function apply(Request $request, $query, $value)
{
return $query->where('account_id', $value);
...
0
votes
1
answer
84
views
How to show gif image in fields by external url in Nova 4
I encountered issue with nova 4 because I used package chaseconey/nova-external-image in nova 2 but after upgrading to nova 4 version, I can't use this one.
Do you know some package or trick for ...
0
votes
1
answer
483
views
Relational searching not working in laravel nova
I have a parent resource. lets say team and inside team resouce detail page i am showing other rosources for example audience resouce by using following code.
HasMany::make('Audiences')
Now this ...
-1
votes
1
answer
507
views
Issue with rendering a component in Laravel Nova after updating dependencies
Hello Stack Overflow community!
I'm facing an issue with rendering a component in Laravel Nova after updating dependencies in the project. When trying to open the component in Laravel Nova, I get an ...
1
vote
1
answer
511
views
Laravel Nova: How to deny to change field value on update?
How to deny to change field value on update in Laravel Nova?
This field should be editable on creating.
I tried to save previous values with observers but something tells me that this is not an ...
0
votes
1
answer
267
views
Why does Laravel Nova return 404 on login only on production environment?
I´m using Laravel (10) with Nova (4.31). On my development environment I can login to nova without issues but on my production environment login doesn´t work - after clicking on "login" ...
1
vote
0
answers
110
views
Laravel Nova Custom tools, fields, filters HOT RELOAD?
Laravel nova with mix reaches it limits when it becomes about hot reloading
npm run hot
we have to work with
npm run watch
which we have to refresh the page with each code modifications
which is ...
-1
votes
1
answer
570
views
Laravel (Nova 4.0) - Redirect from Controller to Nova Resource Details Page
im currently working with laravel/laravel nova. I created a custom modal that shows when a laravel nova action is triggered. This custom modal sends data to a backend controller where the data gets ...
0
votes
1
answer
783
views
Vue template compile error, "Cannot read properties of undefined (reading '_c')"
I'm working on adding a custom tool to an existing Laravel application using Laravel Nova for the admin panel. The auto generated tool that is created with "php artisan nova:tool vendor/name"...
0
votes
0
answers
176
views
Laravel Nova : page won't refresh following Ajax query
I'm using Nova as the admin panel of my web app. When navigating through the admin, the URL is updated when I click on menu or resource for example, but the page is not refreshed. When I look into the ...
0
votes
1
answer
82
views
How to Show User Fields in one to one Model in Laravel Nova?
I create a project with Laravel nova
I create Doctor model and resource
User and Doctor has one to one relation
User Model:
public function doctor(): HasOne
{
return $this->hasOne(Doctor::class)...
1
vote
1
answer
359
views
Laravel Nova - preselect null option
I have a field in one of Nova actions that can have both null and int values:
public function fields(NovaRequest $request): array
{
/** @var Account $account */
$account = $request->...
-2
votes
2
answers
797
views
Laravel Nova Value Icon change
Spending an hour on searching how to adjust or hide the icon on a single laravel nova metric value... How can I remove/change or style that blue icon?
-1
votes
1
answer
312
views
Laravel nova submenu item
I have menu
menu
I want to add submenu for DOCS (below All docs).
And it not resource, just link.
How I can do it?
0
votes
1
answer
4k
views
How can i get data from another model and show it in another resource using Laravel Filament
I want to get a values of a column/filed of a table/model in Laravel Filament and showing it in another resource (another Model) that they models don't have any relationships between together.
For ...
0
votes
1
answer
376
views
Laravel nova custom fields have labels missing after upgrading
I was bugged for days with this issue so i raise this question and will also post the fix to this issue since there is no documentation for this change and not mentioned anywhere.
For anyone building ...
0
votes
1
answer
608
views
Laravel Nova - Model static::saved event will not load relationships
I'm using Laravel Nova on my main application and I'm having an issue with model events from certain contexts.
When a new Post model is created, I store the 'Latest Post Date' against the User. I do ...
1
vote
0
answers
228
views
In NOVA version 4, How to override the detail (single) view of a resource
In NOVA version 4, I have created a resource name "Orders". I want a custom design for single (detail) view of Order. Please anybody, help me how to override the default Detail.Vue.
As ...
1
vote
0
answers
167
views
Change path to resource in Laravel Nova
Is there a way to change the resource path in Laravel Nova so instead of being /nova/resources/articles/3 it could be /nova/resources/articles/my-article-slug?
I've tried defining getRouteKeyName() on ...
3
votes
0
answers
336
views
How to resize image before it upload on server with Laravel Nova
I am using Laravel Nova v4.0, and am trying to resize the image before uploading it to server. Suppose someone selects an image of 8mb which is very heavy, I need to resize this image to somewhere ...
2
votes
0
answers
194
views
Ignoring parent dependsOn field in form submit in laravel nova
In my laravel nova resource i'm returning these fields:
Select::make('department_id')->onlyOnForms()
->options(\App\Models\Department::pluck('title', 'id')),
...
0
votes
1
answer
209
views
Nova - ManyToMany with additional relationships
So, we have a contacts table and a projects table, with a many to many relationship. the pivot table contact_project has a answer_type_id so it belongsTo AnswerType, and it also HasMany sendings.
I'm ...
0
votes
0
answers
145
views
Retrieving media of a model in Laravel Nova from another Laravel application
I have 2 Laravel apps - One that allows users to upload images to their profile and one that is used just as an admin panel (using Nova). Both admin and user app use the same database but they are on ...
0
votes
1
answer
1k
views
How to add a field that changes value dependent on another field in Laravel Nova 4
is there a way to make this scenario work in Laravel Nova 4:
I have a form, where I fill some numeric values using repeater. I would like to add a readonly field inside that form which reactively sums ...
2
votes
0
answers
416
views
Laravel Nova 4 inside a domain sub-directory is not working
I have got a couple of Laravel applications that use Nova. All these apps are accessible using the same domain but under different paths. For example, consider following the directory structure & ...
0
votes
0
answers
187
views
I getting the error when working with Image in Laravel Nova
This is code in User Nova model
enter image description here
This is the field in users table
enter image description here
And when I come to Nova see this error
enter image description here
With what ...
1
vote
0
answers
109
views
Problem with publishing tools is laravel nova
Laravel 10, nova 4.25.1. I have a problem with publishing tools. I create according to the documentation. I register in the provider, specify in fields, run npm run dev, prod, watch. Nothing helps and ...
0
votes
1
answer
818
views
Laravel Nova : How to detect in indexQuery if $request is whether from relation or not
I'm doing exactly what is described here
However, I added this code in my resource
public static function indexQuery(NovaRequest $request, $query)
{
return $query->doesntHave('parent');
}
...
0
votes
1
answer
505
views
Laravel Nova Multiselect (on create Error Array to string)
I try using multiselect when creating record but I get error Array to String.
But when I update record everything is ok.
Panel::make('Material', [
MultiSelect::make('Select ...
0
votes
1
answer
110
views
Laravel Nova 4 BelongsTo Depends
I have two tables, Category and Product, and i set the gategory id into product. In my order page i wanna select the product base on what i have been choose in Category.
There is my code and it does ...
3
votes
1
answer
1k
views
How to add a column to Laravel Nova resource
I'm trying to add a custom column to the Laravel Nova resource.
In the fields the columns that exist in database can be added like:
public function fields(NovaRequest $request) {
ID::make()->...
1
vote
1
answer
525
views
Laravel Nova 4 endless redirect loop after upgrade: Any ideas?
New to Laravel, and just inherited a Laravel 7/Nova 3 site. Thanks to Laravel Shift I've updated it to Laravel 10/Nova 4. So far so good; the public site loads.
But when I try to access /nova, I'm ...
1
vote
0
answers
223
views
Accessing the query results within a Nova lens
Currently using Nova v4 and creating a lens that I want to include a card on.
I don't see any way to actually access the query results that the lens is generating so that I can use them in my card.
I'...
0
votes
1
answer
346
views
How do I get pagination working in laravel a Nova 4 custom tool
This is the tool.vue file
<template>
<LoadingView :loading="initialLoading">
<Heading :level="1" class="mb-3 flex items-center">
...
-1
votes
2
answers
587
views
How to capture login event in Laravel Nova 4
I've been searching but couldn't find a solution.
I don't know if Nova allows it, but I need to save to a Log file every time a user accesses through the Login screen.
0
votes
1
answer
130
views
Join in laravel indexQuery and filter apply
I have custom indexQuery
$resourceTable = 'soft';
$user = Auth::user();
$orderBy = $request->get('orderBy');
$dir = $request->get('orderByDirection');
$query->select(DB::raw("{$...
0
votes
1
answer
409
views
Nova notifications
I create notifications
$notification = Laravel\Nova\Notifications\NovaNotification::make()
->message($softsMessage)
->type('info');
But I want to create 2 ...
2
votes
1
answer
2k
views
How to add css classes to laravel nova fields
I'm not so familiar with Laravel nova and need some help please.
Is there a way to add css classes to Laravel nova fields?
I saw somewhere on the web that you could do this:
Text::make('Name')->...
0
votes
1
answer
877
views
Laravel Nova Table Listing Delete
As per imange above, I current maintain a laravel nova website, i have tried to find where it declare/enable the "Force Delete Selected" but I cant find it, I only able to find forceDeleted()...
0
votes
1
answer
411
views
Explanation BooleanGroup Laravel Nova
I'm a complete newbie to laravel and laravel nova.
I created a booleangroup because I need multiple checkboxes. But here comes the problem.
When I try to submit a form, to add a 'office' in the ...
0
votes
1
answer
286
views
Laravel Nova nova_pending_field_attachments issue
After Running php artisan migrate:fresh I get a failed migration for 2022_12_19_000000_create_field_attachments_table
1 C:\xampp\htdocs\main-app\vendor\yajra\laravel-pdo-via-oci8\src\Pdo\Oci8\...
0
votes
1
answer
214
views
Laravel Nova Progress Metrics Issue
In Laravel Nova Progress Metrics I percentage will be shown I want to show the value there
see the image for referenceimage
public function calculate(NovaRequest $request)
{
$totaCount = User::...
2
votes
0
answers
384
views
Customize Main Header - Nova
I need to customize the main header of my new application 4.
I need to put a information before the global search.
enter image description here