909 questions
0
votes
1
answer
486
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 ...
0
votes
0
answers
198
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-...
1
vote
0
answers
199
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')
->...
2
votes
2
answers
3k
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 ...
0
votes
1
answer
1k
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 ($...
1
vote
1
answer
1k
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\...
0
votes
2
answers
3k
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 ...
3
votes
1
answer
528
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 ...
0
votes
1
answer
42
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\...
1
vote
0
answers
112
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?
0
votes
1
answer
83
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('...
1
vote
0
answers
255
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 ...
-1
votes
1
answer
121
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 ...
0
votes
1
answer
820
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 ...
-3
votes
1
answer
2k
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 ...
-1
votes
1
answer
311
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 ...
0
votes
1
answer
252
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 ...
0
votes
1
answer
189
views
Laravel Nova create same record multiple times
I am stuck with a issue on Laravel. I like to insert a records multiple times.
The user can add a amount, lets say 3. Than the insert query has to run 3 times.
I was able to make a observer but when i ...
1
vote
0
answers
91
views
Laravel Nova Value Metric - How to make the decrease a good thing
I'd like to add a Metric to a Nova dashboard where an increase in the value is a bad thing. Meaning, in the picture like below, the arrow would be red instead of green.
Is this possible to ...
0
votes
1
answer
1k
views
How to change error message in laravel nova
I use Laravel 8.83.16 and Nova 3.32 for admin area
Also I use Digitalcloud\MultilingualNova\Multilingual for lang in site
I create functional and fields for users
For example, field name
Text::make('...
1
vote
0
answers
422
views
Laravel Nova - Let user chose which fields/columns are displayed on index
I'm using Laravel 9 and Nova 4 to create an admin panel and recently got the request you can see in the title.
Is there any way to let the user dynamically select which fields of the resource are ...
0
votes
1
answer
989
views
Laravel Nova : Avatar Fields using S3 disk but return 0 value
i try to upload avatar photo on my user model, using laravel nova Fields\Avatar applying the simpliest code, but it return 0 value on my database, the disk already set to s3 disk in filesystem also ...
0
votes
1
answer
361
views
Using model data in the deleted() function of a Laravel observer
I am currently developing a script to synchronize the data stored in my database with an external API. That is to say that all the records created/deleted must also be created/deleted on the external ...
1
vote
2
answers
735
views
Nova BelongsToMany Field: Cannot update attached product, dropdown is disabled
I have a BelongsToMany relationship between Users and Products defined in the Nova Model:
BelongsToMany::make('Products'), //user has many products
The underlying models User and Athlete both have the ...
0
votes
1
answer
1k
views
How would I edit the Laravel Nova indexQuery for a Resource to only show records through multiple relationships?
firstly thank you in advance.
I have the following Models , User , Location, Listing, Offer.
The relationships are:
User Model:
public function location()
{
return $this->hasOne(Location::class)...
-3
votes
1
answer
555
views
Edit Fields Not working; not updating, and sending empty array to backend
I am using Laravel version 9.41 and Nova 4.
I can delete records, however it appears that on the frontend/JavaScript side of things my form fields are not having their contents captured and sent back ...
0
votes
1
answer
395
views
MorphTo with conditions
I am working with field MorphTo and I try to make conditions for the resources.
For example I have 4 resources:
Accounts
PaymentMethodCreditCard
PaymentMethodBankAccount
Transactions
Every Account can ...
-1
votes
1
answer
319
views
Laravel HasManyThrough nor BelongsToMany doesn't work in my case. Is it database structure problem?
I have 3 tables of:
products table
- id
- title
- etc.
purchases table
- id
- code
- etc.
purchase_products table
- id
- purchase_id
- product_id
- qty
- etc.
My goal is to retrieve purchases for ...
0
votes
1
answer
276
views
Laravel Nova: Query params empty for /nova-api/installations/relate-authorization in hasMany relationship
I have defined a HasMany relationsship in my Nova resource. Nova fires two requests when trying to load the children in the parent detail view:
1. GET /nova-api/childResources?viaResource=...
1
vote
1
answer
911
views
How to show image in relation search resource in laravel nova
i make field with relation
BelongsTo::make
and want add for search title image, the link to the image is stored in the resource field as url
I tried to make an img tag, but the title escapes the html ...
0
votes
1
answer
1k
views
Laravel Nova - Can a field dependsOn parent resource field with-in a HasOne relationship
The parent resource has these fields
Select::make('Currency')->options(...),
HasOne::make('Child', 'child', 'App\Nova\ChildResource')->required(),
as I've added HasOne->required, the ...
1
vote
1
answer
831
views
Laravel Nova -> domPDF
I am using domPDF to print a PDF from a Laravel Nova action. PDF generation and download works. What I can't do is pass the selection of records ($models) to the view that generates the PDF.
...
0
votes
1
answer
1k
views
Is there a Nova way to display inline the results of a HasMany relationship?
I have the following structure
Route
HasMany Steps
With a single Nova row in my Route view, I want to display the results of that relationship like so:
Route Name
Some Route Detail
Steps
RouteA
ABC
-...
1
vote
1
answer
698
views
Laravel Nova page detail not found due to The relationship
I am trying to test the tool I have been created. When I used relationship field in one of my resource, the page detail on this resource give me Not found.
/* My Relationship field */ (Ticket Resource)...
4
votes
1
answer
1k
views
Laravel Nova Impersonation - Redirects to / would like to redirect to backend
I'm using the new (as of writing this) Laravel Nova 4.0 and the official impersonation trait / implementation.
When I impersonate a user it redirects to the frontend homepage /. I would like it to ...
0
votes
1
answer
285
views
Is there a way to prevent redirects when running PHP laravel test suite?
I am attempting to add Pest and unit tests to a Nova Admin/Laravel application.
I want to test that a page exists, but I don't want to have to deal with whether or not the user is authenticated as an ...
1
vote
0
answers
42
views
WP heartbeat for Laravel Nova?
WP heartbeat for Laravel Nova??
I need the option to lock a resource when someone opens it for edit.
So, like with WP heartbeat, that makes sure only one is using the resource.
Laravel Nova have the “...
1
vote
2
answers
504
views
Laravel Nova Images Field callback Function outside
in the nova resource I can define an image field with a media library addon package like:
Images::make('Main image', 'media_main')
->setFileName(static function($originalFilename, $extension) {
...
0
votes
2
answers
3k
views
Laravel Nova Login Form Submission Error; how to debug?
I am running into an error with Laravel Nova that I'm not sure how to diagnose. When I try to log in I get "There was a problem submitting the form."
The console does not show any errors. ...
1
vote
1
answer
2k
views
Display two fields in a single line in laravel nova with vite
I just started work on the laravel 9 and using Nova along with vite(not using webpack.mix.js).
Laravel Nova works great and I created many resources, it just works great, but I am wondering how can I ...
0
votes
0
answers
352
views
Laravel 9 + Nova v4 + AWS S3 integration issue
I have followed this guide (https://laravel.com/docs/9.x/filesystem#amazon-s3-compatible-filesystems) and did the following.
I have tried several ways to integrate AWS s3, but it's not working:
I ...
0
votes
1
answer
342
views
Laravel 9 Nova 4 Relationship with custom Pivot Table and field names
I am trying to sort out some relationship with nova v4, but it's not working. I have :
users
id
name
groups
id
name
groups_users
user_id
group_id
now I want to show groups belonging to users inside ...
-1
votes
2
answers
597
views
Laravel nova create blank page without show row table?
i am trying to create a page using laravel nova that only show 3 chart without displaying table or row data.
enter image description here
is it can be using nova resource or nova tools ?
or any other ...
1
vote
1
answer
1k
views
Change placeholder on Laravel Nova text field
I want to change the placeholder of a Laravel Nova Text field. Currently this is being overwritten by the $attribute in the model:
protected $attributes = [
'name' => 'Member Name',
];
The code ...
6
votes
2
answers
5k
views
How can we change the logo in Laravel Nova4?
What is the way to change the logo in Laravel Nova4?
I have checked the document but I can not find the way.
1
vote
1
answer
647
views
How to Change Laravel Nova Lens Name
In laravel Nova resources I can change the resource name with label function but in Lens, with the same function it doesn't work.
Any idea?
Code:
public static function label(): string
{
return '...
0
votes
0
answers
437
views
Frontend form Laravel Nova
I really like Laravel Nova but it's really complicated for a newbie like me to do something on the frontend that interacts with backend resources.
Can anyone tell me how to make a form insert data ...
0
votes
1
answer
337
views
Function Store : Laravel Nova 4
I'm migrating a project from a few months ago made with AdminLTE to Laravel Nova (mainly as part of my learning, I'm still a newbie in Laravel) and I have an issue that I don't know how to approach.
...
1
vote
1
answer
894
views
Change Nova root directory
After nova installation in apiato
I have changed the provider and dashboard path directory at root directory to specific container and I am waiting to see the login page but I got this error laravel ...
2
votes
0
answers
1k
views
resolveComponent can only be used in render() or setup()
I'm using laravel nova 4 for creating an admin panel. I'm trying to override a existed nova component. This is what I have done:
Create BelongsToField.vue in resources/js/nova/components/Form, then ...