As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [laravel-nova]

Nova is an administration panel for Laravel, made by the creators of Laravel

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

Laravel nova not running the before method

I have a User model and a UserPolicy and have linked them in the AuthServiceProvider and can confirm the policy is being used by Nova. I also have a trait in the policy for admin users. Currently this ...
killstreet's user avatar
  • 1,244
0 votes
0 answers
7 views

How to merge fields from separate models/resources into a single resource in Laravel Nova ( V4 ) for e-commerce functionality?

I'm working on a Laravel project that requires e-commerce functionality, specifically managing products and their associated product items. I have two separate models and resources for products and ...
Afaque Ahmed's user avatar
-2 votes
0 answers
13 views

Merging fields from multiple Laravel Nova resources into a single resource while using Laravel Nova 4.0

I am currently working with Laravel Nova 4.0 and I'm trying to figure out how to merge fields from two different resources into a single resource. Essentially, I want to have the ability to enter data ...
Afaque Siyal's user avatar
0 votes
0 answers
7 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 ...
Bryant's user avatar
  • 1
-1 votes
0 answers
15 views

How to change the caption after creating laravel nova resource

How to change the caption after creating a resource from "The :resource was created!" to something different for each resource?
newbie_cat's user avatar
0 votes
1 answer
51 views
+50

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()->...
micky's user avatar
  • 307
0 votes
0 answers
15 views

Nova 4 pagination

Is anybody have full manual how to change template for default pagination in Nova 4? Many links in Google, but nothing helping Issue - I need to move "per page select" to the bottom near ...
Maksim Riabchenko's user avatar
0 votes
0 answers
34 views

Uncaught TypeError when upgrading Laravel Nova 3 to Nova 4

I'm trying to upgrade my Laravel Nova project from version 3 to version 4. However, I'm encountering an error that says: streaming-channels:1 Uncaught TypeError: e.addRoutes is not a function at ...
Himanshu Rahi's user avatar
0 votes
0 answers
11 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 ...
Andrew Waegel's user avatar
0 votes
0 answers
42 views

Method theme does not exist error after updating Laravel Nova from 3 to 4

I recently updated my Laravel Nova installation from version 3 to version 4, following the official guide found at (https://nova.laravel.com/docs/4.0/upgrade.html). However, after completing the ...
Himanshu Rahi's user avatar
0 votes
0 answers
23 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'...
eComEvo's user avatar
  • 11.6k
0 votes
1 answer
47 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"> ...
user794846's user avatar
  • 1,871
0 votes
0 answers
53 views

After upgrading Laravel Nova from 3 to 4 all actions cause a Recursion Detected error when encoding Actions

Having upgraded from Laravel from 8 to 9 and Nova from 3 to 4, whenever I try to include an Action in a Resource it's unable to encode the data because it believes that it's recursive, but I can't see ...
clomax's user avatar
  • 1
-1 votes
2 answers
64 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.
Antonio J.'s user avatar
0 votes
0 answers
45 views

Don't pass the data from nova select field

I have a nova select field that is meant to toggle another field but not to pass the data to the model, how do I make it silent, so that it doesn't try to fill a model field. It should be through the ...
yakov wiznitzer's user avatar
0 votes
1 answer
37 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("{$...
Maksim Riabchenko's user avatar
0 votes
1 answer
55 views

Nova notifications

I create notifications $notification = Laravel\Nova\Notifications\NovaNotification::make() ->message($softsMessage) ->type('info'); But I want to create 2 ...
Maksim Riabchenko's user avatar
1 vote
0 answers
119 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')->...
Felix's user avatar
  • 73
0 votes
1 answer
57 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()...
Andy Koe's user avatar
0 votes
1 answer
45 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 ...
Deepak's user avatar
  • 1
0 votes
0 answers
18 views

indexQuery and custom field

Hi I want to add something like IF(domainExpired IS NULL, '3000-01-01', domainExpired) as d2 to select query When I do it in indexQuery function $resourceTable = 'projects'; $query->...
Maksim Riabchenko's user avatar
0 votes
1 answer
58 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\...
Shubham Dabral's user avatar
0 votes
1 answer
21 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::...
Shubham Dabral's user avatar
0 votes
0 answers
100 views

Laravel Nova: Image is uploaded but not shown

I'm running a Laravel Nova installation on Ubuntu via WSL2 on my Windows 10 PC. It's amazing, but I have a problem with images. I can upload an image, for example an Avatar image for the user. It is ...
Mischa Firges's user avatar
0 votes
0 answers
86 views

Laravel Nova tries to set user id to empty '' when I save

Whenever I try to save a user edit (even if I don't change anything) it gives this error: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '0' for key 'PRIMARY' (SQL: update users ...
Tim Haerkens's user avatar
0 votes
0 answers
68 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
Daniel Oliveira's user avatar
0 votes
0 answers
34 views

I also facing `Disk [public] does not have a configured driver` in Laravel nova for trix field at the delete time

I also facing Disk [public] does not have a configured driver in Laravel nova for trix field at the delete time. can anyone Help me? any help will be appericiated my filesystem.php file disk code is ...
Israr's user avatar
  • 11
0 votes
1 answer
96 views

Laravel Nova Vue passing extra data to FilePond upload

I have a file upload component that I am trying to pass in data with the image to the controller so I can create the photo object. Some of the data are things such as disk, like 'S3' so the controller ...
Ryan M's user avatar
  • 119
0 votes
0 answers
42 views

Laravel Nova dependsOn function does not work properly

In this case $fields[] = Select::make('Auto renewal domain', 'domainAM') ->dependsOn(['domainId'], function ($field, $request, $formData) { if ($formData-...
Maksim Riabchenko's user avatar
0 votes
0 answers
30 views

Accessing filters inside fields function return multiple values in nova

I am trying to access a value in the filters from fields function. public function fields(Request $request) { if ($request->has('filters')) { Log::info($request->filters); ...
Vincent Agbo's user avatar
0 votes
0 answers
53 views

Laravel Nova "relationResolver()" problem

This is the error I get when I want to use the Laravel Nova "nova-flexible-content" package, I don't know what the problem is and where I went wrong Flexible::make('Content') ->...
user21355408's user avatar
1 vote
1 answer
230 views

Is there a way in Laravel Nova to allow sorting on a column which is populated by a function call?

I am trying to allow a populated column in a Nova Lens to be sortable. The root data that populates my Number field comes from a function called during lens initialization to reach out to an API. For ...
Asa LeHolland's user avatar
0 votes
1 answer
193 views

403 forbidden in Laravel Nova

I user Laravel 10.1.5 and Nova 4.22.1 When in .env APP_ENV=local all ok But when APP_ENV=production I see error 403 on my admin/login page I try to write Gate::define('viewNova', function ($...
Maksim Riabchenko's user avatar
0 votes
0 answers
176 views

Laravel Nova - Downloading a Generated File with an Action

I have the following have the following handle() method in a Nova Action: public function handle(ActionFields $fields, Collection $models) { $file = Excel::store(new \App\Exports\...
Cornel Verster's user avatar
0 votes
2 answers
123 views

Seed fake images in laravel

I'm trying to generate a fake image to populate seeder data. I created a seeder with this: $this->faker->image(storage_path('app/public/products'), 500, 500) When I try to access them through ...
Jonathan Lafleur's user avatar
3 votes
0 answers
178 views

Laravel Nova How to display a resource with millions of rows?

I have a resource with 5 million rows in an InnoDB table. Nova times out when executing a COUNT(*) query. I imagine this is used in pagination. Is there a way to disable that behavior (just have a ...
Michael Love's user avatar
0 votes
0 answers
20 views

get several values ​separated by , and save line by line in the database

I have an input, and I want to extract several numbers separated by , and store each number on each new line in the database. model - CouponDocument <?php namespace App\Models; use App\Http\...
Vinicius Demarchi's user avatar
1 vote
0 answers
54 views

How to override the url that the create button routes to on a resource

I would like to know how to override the url that the create resource button routes to, on a resource listing page?
Iron Brew's user avatar
0 votes
1 answer
50 views

Show user if 'is_vendor' = 'true'

I created a users table and I have set up the user roles using boolean, see code below: $table->id(); $table->string('name'); $table->string('email')->unique(); $table->timestamp('...
Renzo's user avatar
  • 109
0 votes
0 answers
78 views

Laravel nova - login only for active user - disable login for inactive user

using Laravel Nova, I want to disable inactive user from login, and logout the user if already logged in, i"m having a boolean column: "active" in users table. if possible to show a ...
David Gabbay's user avatar
0 votes
0 answers
45 views

Rearrange Laravel Nova V3 side bar links

We are using laravel nova v3 and we want to re-arrange the side menu. We have some tools that display at the bottom of sdiebar but we want to move them above the resources group or even above the ...
Mudassar's user avatar
-1 votes
1 answer
68 views

Is there a method in Laravel PHPUnit to check if a Nova lens exists?

I'm attempting to write a test to confirm that a Nova Lens exists using PHPUnit. This will be used as the base case to build on whether certain users have access to that lens or not. Here is what I ...
Asa LeHolland's user avatar
0 votes
0 answers
129 views

Laravel Nova Self-referential hasMany relationship

I have a table which has categories and child categories and it has relation with the same table. this is my model relationship, i use Scope to get all the parent categories, public function ScopeRoot(...
Benish Farooq's user avatar
0 votes
1 answer
277 views

Class xyz contains 1 abstract method and must therefore be declared abstract or implement the remaining methods Laravel\Nova\Tool::menu

Am working on an app using Laravel Nova and wanted to implement a calendar from https://github.com/czemu/nova-calendar-tool. I followed all instructions but have received the following error: Class ...
Destiny DJSD Samkange's user avatar
0 votes
0 answers
166 views

Laravel 9 Nova 4 dynamic disk for files / images s3

I have different buckets/folders in my aws s3 for different types of images, so I have multiple s3 disks in my filesystems.php. I need to be able to dynamically insert the correct driver depending on ...
Ryan M's user avatar
  • 119
-2 votes
1 answer
258 views

How can I deploy a Laravel package via filezilla?

I'm working on a Laravel project. I installed Laravel Nova via php artisan and integrated to the project locally. I know how to deploy files, but I don't know how should I deploy this package to the ...
Shayimerdan's user avatar
0 votes
0 answers
85 views

AfterValidation Hook on BelongsToMany Field in Laravel Nova

I have a table "articles", a table "images" and a pivot table article_image with unique constraint on 2 columns: 'article_id' and an additional column 'order_nr'. Now I need to ...
NaPia's user avatar
  • 1
0 votes
0 answers
200 views

Laravel Nova - How to customize Metric colors?

I'm building out some dashboards for different metrics. I'd like to use a unique color for about 4 different models. However, all Metrics are always shown with the same color. The https://nova....
Ben's user avatar
  • 60k
-1 votes
1 answer
120 views

Laravel Nova Tag field results in 404 on production

I seriously cannot wrap my head around this. Locally the tag field of Laravel Nova 4.0 works like a charm (https://nova.laravel.com/docs/4.0/resources/fields.html#tag-field). On production it results ...
Rob Derks's user avatar
  • 196
0 votes
1 answer
59 views

How to merge two queries result in Laravel Nova and display them on the resource table

I'm trying to merge two queries results in Laravel Nova. I've gone through the documentation but haven't found a solution. Basically, I'd like to merge two queries results and show them in a resource ...
Himanshu Rahi's user avatar

1
2 3 4 5
18