Questions tagged [laravel-nova]

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

Code Driven Configuration

Configure your entire Nova dashboard with simple PHP code. None of your Nova configuration is stored in the database. Painless to configure. Painless to deploy.

Keeps Your Application Pure

It’s a breeze to add a Nova administration panel to an existing Laravel application without touching your Eloquent models. After configuring a Nova resource for each model, you’re ready for lift off.

Laravel + Vue.js = ❤️

Nova is a sleek, single-page application built with Laravel and Vue.js. It's as smooth as silk and writing custom components is a cinch.

Feature Overview

  1. Resource Management
  2. Actions
  3. Filters
  4. Lenses
  5. Metrics
  6. Custom Tools
  7. Authorization
  8. Custom Fields
  9. Scout Search Integration

Resources

Laravel Nova Website

Documentation

880 questions
0
votes
1 answer

Why is the ID replaced with a value from another table? Laravel BelongsTo

I have 4 tables. Championships, Users, Roles and users_roles. One user belongs to championship as judge. But I have to select only users who have role 'Judge'. For this, I created new column in championships table which is called "main_judge" and…
Viktor
  • 1,532
  • 6
  • 22
  • 61
0
votes
1 answer

Conflict in routing between Laravel Nova and Dingo API

I have a Laravel API server which only has one web route (test page), everything else is controlled via dingo/api package and all is working correctly. In config/api.php I've set 'prefix' => env('API_PREFIX', '/') as it's only an API server. I've…
Jack Barham
  • 3,197
  • 10
  • 41
  • 62
0
votes
1 answer

Laravel select from DB where in Collection - Laravel Nova

I have a DB, "views," with many, many entries. I also have a "Courses" table, which these views are one-many related to. In Laravel Nova, I can get a metric of all views over time for a course with some code like this: public function…
G.S.
  • 502
  • 8
  • 16
0
votes
2 answers

Why append method not working with empty array in VueJS

I have a component with empty data array data: () => ({ selectedResource : [], }), but when i try to add some item to this array i got an error selectResource(resource){ console.log(this.selectedResource); …
Viktor
  • 1,532
  • 6
  • 22
  • 61
0
votes
0 answers

Laravel Many-Many Relationship with extra data

I have a many-many relationship in my Laravel application, Courses and Users, and users can enroll in a course with my Enrollments table. My Enrollments table functions as the many-many table for Courses and Users. A user can enroll in a course one…
G.S.
  • 502
  • 8
  • 16
0
votes
3 answers

How to use User's property as default value while in the Create Page of Post?

Let's say User has a property named 'a_property' , and Post belongs to User. When adding a Post in the create page (which the new Post's user automatically set to the selected User), how can I use the User's a_property as default value of Post's…
YanHao
  • 23
  • 4
0
votes
1 answer

Laravel nova tool - add datepicker

I create a nova tool and need to have a datepicker. In order to see the Nova datepicker, I did the following: I added to User migration file: $table->date('birthday')->nullable(); And reflected it in User.php and Nova\User.php: public static…
guyaloni
  • 4,972
  • 5
  • 52
  • 92
0
votes
1 answer

Laravel Nova - How can i do custom logic on Create/Update

I would like to create custom Create/Update logic for one of my Nova Resource. I have been thinking to use Custom Tools to accomplish what i wanted, but i don't want to give up the excellent work in the Index page and rewrite it all myself. My use…
Terry Tan
  • 421
  • 5
  • 12
0
votes
2 answers

Laravel Nova, change search results HTML

I have a simple Nova integration like this : I want somehow to make the Name field to be an anchor. So, to make it a link the same way that view button does. Any ideas? (Nothing on docs)
priMo-ex3m
  • 1,072
  • 2
  • 15
  • 29
0
votes
2 answers

Laravel Nova - Problems with distinct()

I am using Laravel Nova to generate metrics, in this case specifically a trend. Here is my code: $builder = order::query()->select('cook_id')->distinct(); return $this->countByDays($request, $builder)->showLatestValue(); However this is returning 6…
SongBox
  • 691
  • 2
  • 8
  • 16
0
votes
1 answer

Image and name as title

I am building a Laravel Nova application and want to show a user with image and name. /** * The single value that should be used to represent the resource when being displayed. * * @var string */ public static $title = 'name'; As you can see…
0
votes
1 answer

Laravel Nova - Display name for relationship on update

I have a recursive relationship, where model Question has one to many relationship to table itself. Column parent_question_id will refer to id in questions table. In Question model : /** * Get the parent that owns the question. */ public function…
Saumini Navaratnam
  • 8,439
  • 3
  • 42
  • 70
0
votes
1 answer

Laravel Nova: BelongsToMany. Displaying list on details page based on a condition (from db)

I am developing a Web application using Laravel Nova. Nova is quite a new CMS system for Laravel. What I am now having trouble with many to many relationship and presenting data. I have a users table with the following data users - id, name, email,…
Wai Yan Hein
  • 13,651
  • 35
  • 180
  • 372
0
votes
1 answer

Laravel Nova Email Verification

I am using Nova just as the backend for a SAAS application so basically going to app.mydoain.com just pops up the Nova login form. I want Laravel 5.7 Email Verification that comes standard in use for this (so when I add a user they have to verify…
Packy
  • 3,405
  • 9
  • 50
  • 87
-1
votes
2 answers

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.
  • 37
  • 3