909 questions
0
votes
1
answer
2k
views
Dynamic field for Laravel Nova resources
In order to let users enter dynamic content in Nova resources, I need to figure out how to make make a field dynamic in Laravel Nova? Users should be able to select the type of the field (from the ...
1
vote
2
answers
4k
views
Forcing dark or light mode laravel nova 4
I am working on a new CRM project, and I have found this in the documentation: https://nova.laravel.com/docs/4.0/installation.html#disabling-nova-s-theme-switcher which will remove the toggle button ...
0
votes
1
answer
1k
views
Can you add custom validation to Laravel Nova Action using external variable?
I'm using a Nova action to change a date. To validate the date change, I need to make sure the new date is after the old date. For some reason I'm having a really hard time accessing the old date (...
0
votes
2
answers
933
views
Laravel more than one role
I'm trying to make it possible to have 2 roles and switchable.
(PHP v7.2.5 with laravel v7.30.6)
I got a server-side API and admin panel on laravel/nova, which is currently in production.
I have a ...
0
votes
1
answer
867
views
How to use Max/Min Range filter with Laravel Nova
I'm building an admin portal with a requirement to filter by max/min in multiple columns (price, rate...etc)
I wasn't able to find a built-in range filter and https://github.com/dcasia/nova-slider-...
1
vote
1
answer
993
views
How do I set up Laravel Nova to run on a subdomain?
I am setting up Laravel Nova 4 to run on portal.example.com instead of example.com/admin. Logging in works fine, but when I try to add an item in Nova, the request responds with an error:
Request URL: ...
1
vote
1
answer
1k
views
Laravel Nova pass value of one filter to another filter
I am trying to filter Laravel Nova resource (Reviews) data using 2 'select-filters'.
I have a filter A = Manufacturers and filter B = Models.
A Manufacturer has many Models. I have manufacturer and ...
1
vote
0
answers
390
views
How can i define custom route and controller in Laravel Nova
I have some custom field on Laravel nova with my own server rendered ui. I made this field by using https://github.com/JoshMoreno/nova-html-field
but i need this custom field with a button (will add ...
0
votes
1
answer
1k
views
Nova route overwriting
Nova 3 and Laravel 8
In RouteServiceProvider I added
Route::prefix('nova-api')
->middleware(['nova'])
->domain(config('nova.domain'))
->namespace('App\Http\Controllers\...
0
votes
0
answers
141
views
What is the best way to display relationship data using a foreach loop within Laravel Nova?
I have 3 tables: questions, user and userAnswer. I want to display all answers that for each user on the questions page. the the user table is the pivot. one question has many users, has many answers.
...
3
votes
1
answer
846
views
How to properly deploy laravel nova on digitalocean apps
I want to deploy a laravel API application that is using nova as a backend on digitalocean app platform. So I have added all environment variables as App-Level Environment Variables in app settings ...
0
votes
1
answer
911
views
What is the best way to get nested relationships in Laravel Nova?
I have 3 tables with relationships; Feedback has one Type and a Type has multiple Answers:
Feedback->Type->Answers
In Nova, I want to display all Answers to the currently Type on the Feedback ...
2
votes
1
answer
1k
views
Call to undefined method Whitecube\NovaFlexibleContent\Layouts\Layout::getMedia()
I'm a bit stuck wondering what I'm doing wrong.
I'm trying to use the spatie/laravel-medialibrary & ebess/advanced-nova-media-library together with nova-flexible-content
In nova it works wonderful ...
-2
votes
2
answers
1k
views
Show the custom tool menu under Resources menu using laravel nova
I just followed all the steps to make a custom Tool Laravel/Nova/custom/tools
enter image description here
0
votes
2
answers
814
views
How to get sum of two text fields and set to another text field in Laravel Nova
How can I get the sum of two text fields and set it to another text field when changing the value in Laravel Nova? I want to get Quantity x Unit_Price and set it to Amount.
SimpleRepeatable::make('...
1
vote
1
answer
2k
views
How to show Laravel Nova(Version 4.0) action in Nova Resource Index?
Im new to nova framework .i need to use action method in Resource Index. According to documentation(https://nova.laravel.com/docs/4.0/actions/defining-actions.html)" ,If an action is enabled for ...
2
votes
1
answer
121
views
Is there a way to alter the attach page to enhance specificity for a particular type of relationship?
I have a Laravel 9 project with a Nova 4 admin panel and the following set of relationships: there's the Attribute entity that defines a particular attribute (e.g. Project Type, Rating, etc.). A ...
0
votes
1
answer
215
views
Carbon date appears with invalid value
I have a Nova "Date" field and it's working fine it shows the current date when the page is accessed at first.
However, if the user selects the date picker and change the date it appears ...
0
votes
1
answer
1k
views
Access $model in the fields function (laravel nova)
public function fields(NovaRequest $request)
{
if (IBAN::find($model->id_user)->iban ?? false) {
return [
// Exemple
];
}
else {
return [
Text::...
0
votes
1
answer
2k
views
Laravel Nova "CSRF token mismatch." Error
Hi every one Am using Laravel nova 4 on the login am having the following error when i fill and submit the login form
exception: "Symfony\\Component\\HttpKernel\\Exception\\HttpException"
...
0
votes
0
answers
555
views
How to have a text nova field readonly and with a default value fetched from DB
I have this Laravel nova code where there is a readonly field. But this field should be populated with a value that already exists on a database table.
Do you know how to use Eloquent inside the Text ...
1
vote
2
answers
407
views
Why pathInfo shows null if is not null?
The dd($request) shows a pathInfo #pathInfo: "/nova-api/post-tags/20/update-fields". And I want to get that value, more specifically I want to check if "post-tags" is in the url.
...
0
votes
1
answer
252
views
How can i group billno in laravel nova
Larvel Nova Index
How can i group billno in laravel nova
0
votes
1
answer
224
views
Nova Trend Not Displaying, and I'm using a Model not a Nova Resource
I have a Laravel Nova trend metric with the following code:
<?php
namespace App\Nova\Metrics;
use App\Models\UserInteraction;
use Laravel\Nova\Http\Requests\NovaRequest;
use Laravel\Nova\Metrics\...
1
vote
0
answers
269
views
The problem of not getting into Nova after uploading it to the server
I have uploaded Nova on my server, but the problem is that when I press the login button, it does not work and this message appears
Summary URL: https://XXXXX/nova/login Status: 500 Internal Server ...
1
vote
1
answer
1k
views
How to preview image file after it is selected, and before uploading on Laravel Nova 4
I would like to know how to preview the image after it is selected, and before submitting the form on Laravel Nova 4?
# App/Nova/Image.php
/**
* Get the fields displayed by the resource.
*
* @...
1
vote
0
answers
225
views
Override nova route
I'm using nova 4 and laravel 9
I want to override the default nova controller
so when I click button save
will post/put to customController
use App\Http\Controllers\Post\StoreController;
use App\Http\...
0
votes
1
answer
464
views
How to setup nginx for Laravel Nova
I use laravel nova on subdomain 'admin.mydomain.com'. How do I setup nginx to serve my laravel app on mydomain.com and serve laravel nova admin panel on admin.mydomain.com ?
For hosting my main app I ...
0
votes
2
answers
989
views
Is possible in Laravel Nova 4 use a field of nested relation in search fields?
I have the following db:
Showcases (n to 1) Workers (1 to 1) Users
I need in the showcase resource section find showcase by user's name. In the Nova's documentation they explains that is possible ...
1
vote
1
answer
962
views
How to define global filter in Laravel Nova?
I have a project with users. For each user in Laravel nova, i need to define a different access level. How can this be done in Laravel Nova? Or, for example, a user can have several projects on an ...
0
votes
2
answers
912
views
Trying to open Laravel Nova but getting directory structure instead of homepage: duplicate of the question: #56732200
I followed all the laravel nova instructions but still can't get to the homepage or login page, all I get is the directory structure, I was able to solve this problem running the php artisan serve ...
1
vote
0
answers
891
views
403 - "This action is unauthorized."
I have a Settings nova Resource and a SettingsPolicy like below for this resource. The main goal of the policy is to hide the create button when there is already one Setting. The issue is that after ...
1
vote
1
answer
1k
views
Saving resources to different tables in Laravel Nova
I wonder if it would be possible to save information from one resource field to two different tables in MySQL? For example, if I am creating a new post in Laravel Nova and my code is:
public function ...
0
votes
1
answer
40
views
Store top categories from an API request into the database
I have an API request like this:
$postInformation =
(new postInformation)->handle(['field' => 'slug', 'value' => $this->slug]);
A dump of this response, besides other things, show some ...
0
votes
1
answer
484
views
Laravel Nova 404 at source map files
In my Chrome DevTools I see this Erros:
DevTools failed to load source map: Could not load content for http://xxx.yyy.net.local/nova-api/styles/filter.css.map: HTTP error: status code 404, net::...
0
votes
0
answers
508
views
Why isn't my Laravel Nova error reporting to Sentry
In my app Handler.php I have this as per the Sentry docs
public function register()
{
$this->reportable(function (Throwable $e) {
if (app()->bound('sentry')) {
app('...
0
votes
0
answers
2k
views
Laravel Nova depends on function does not work properly
I want to display a Boolean depending on another value, but I do not receive any data in the callback function.
BelongsTo::make('Vertrags transaktion ID', 'insurance', 'App\...
1
vote
2
answers
1k
views
Json column - Date field must cast to 'date' in Eloquent model
I have a laravel nova panel like below. Im trying to use a Date field like below:
new Panel('Suggestions', [
Flexible::make('Suggestions')
->addLayout('Suggestions', 'suggestion', [
...
1
vote
0
answers
300
views
How to make a value into clickable value in laravel nova?
I am using laravel-nova for my UI pages,i have one value which should be displayed as masked value based on the some logic up to this part it's working fine .Now my requirement is the masked value ...
6
votes
1
answer
4k
views
Laravel Nova 4 customize layout
Since Nova 4 has no blades anymore that you could publish, how could you approach customization the best in for example the head navbar next to the searchbar? I'd like to add a drop-down there but I ...
1
vote
1
answer
1k
views
Laravel Nova show Dashboard based on Role
Within my users Table I have different roles. I have two different Dashboards and want to show the Dashboard based on thier roles. But I dont understand how the canSeeWhen method from laravel works?
...
1
vote
1
answer
2k
views
Laravel nova / add second login
Im creating a Website with Laravel nova. When installing nova by default you get a login, a users table and a dashboard. Now I need to add a second login for another Tabel user_b. Is this possible and ...
0
votes
1
answer
1k
views
Add a static label/text above panel
I have a laravel nova panel and its working fine. However I would like to have a static label/text above the panel saying "Read more section". Do you know if nova has some component or field ...
2
votes
1
answer
1k
views
Store multiple fields in JSON column (Nova CMS)
I have a posts table that has a json column "read_more_section".
And I want to store on that column the information regarding some fields on the NOVA CMS (title, description, label and link)....
1
vote
2
answers
960
views
Laravel Nova Card Options Missing Function
I was recently given a Laravel app that uses Nova and Vue in it - all three of which I've never worked with before, so apologies in advance if I ask something that should be obvious. Inside the app ...
0
votes
1
answer
2k
views
How to export a nova resource to excel WITHOUT actions?
I am using Nova and Laravel-Nova-Excel.
I need to export the contents of a nova-resource (+ add any filters) by cron on disk, as Excel. How to do it right?
Now I see this option:
Get the query ...
0
votes
1
answer
637
views
Get BelongsTo relation field with joined data in laravel nova v.3
I use laravel nova version 3.
I have a OrderItem model that related to a vendor through productVariation and product_vendor. So I define relationship as like as this in OrderItem model that returns a ...
0
votes
1
answer
2k
views
Laravel Nova 4 conditionally show field on preview
I am using Laravel 9 and Nova 4 and have a resource where a lot of the properties are nullable. I'd like the preview screen to only show a field if the value is not null. Looking at the nova docs ...
0
votes
2
answers
827
views
Why its showing class not found errors?
I just cloned a git repo and ran the necessary commands to install the project.
When I access the login page "http://localhost:80/nova/login" it works. However after enter the correct ...
1
vote
0
answers
203
views
Npm run dev opens notepad
I have a fresh installation of laravel 9 and nova 4 where i try to create a new resource tool. When i try to run npm run dev or npm run watch, it opens notepad with the mix file instead of compiling. ...