Laravel Introduces Brand New “Laravel Nova”by Rob Stephen getaprogrammer
“Laravel Nova” is available in the market now. This article is going to highlight what new features Laravel Nova is offering and how it will enhance web development projects.
A brand new intriguingly designed Laravel administration panel is Laravel Nova. A few weeks ago, the Laravel team introduced this fresh platform in the market and since then, the web development field just can’t stop praising it!
Once you can configure the Nova resources fully for your application, you will understand that the out-of-the box idea is very impressive. Moreover, the customisation level that is available in this new Nova is undoubtedly stunning. If you already have an existing Laravel version 5.6 built project, there is no need to integrate the resource management into application from the scratch. You can simply use this Nova composer package to install it.
Vue.js has a great role to play in this newly launched composer package. The visually attractive single page application of Nova’s frontend is the result of proper use of Tailwind, Vue Router and Vue.js. Plus, it not only looks good but highly customisable as well. Here is a short sneak peek at what Nova offers.
> Resource Management
The search functionality using the SQL queries is by default a part of Laravel Nova. Plus, if the application leverages scout, it helps to integrate with the Laravel Scout effortlessly. When you are about to create a resource, which belongs to some other model, using this search feature offered by Nova, you can quickly get the related model.
Well, this newly introduced package is all about creating, deleting, reading and updating resources. Apart from covering the basic resource management, Nova looks after the data update on polymorphic relationships as well. Each model associated with your project would have corresponding resources that would define actions, fields, lenses, filters along with cards. No configuration is available in the database as Nova does not save any. Using simple PHP classes you can configure it. Custom field types such as Trix, Markdown, Place and code are available in this latest administration panel of Laravel.
Trend, Partition and Value are three propositions that Nova follows. With the inbuilt metric functionality, generating metrics becomes extremely easy. Once a resource defines a metric, it becomes available from the resource view index. Moreover, by leveraging the trends logic in Nova, creating different trends and displaying them in diverse increments becomes smoother.
Filters, Actions and Lenses
You can define the filters as PHP classes that can help you to scope the queries you have with the query builder. These filters are not only available from the view of the index of a given resource but also when represented as a relationship.
Actions are also simple PHP classes that perform tasks on the resources. For instance, if you want not to activate any particular user, you can simply define and trigger action from the UI. If a model has any Actionable trait mark on it, this new Laravel Nova will offer a trail to audit the actions taken against that particular model along with tracking who or what triggered the action.
With the efficient help of lenses, you can build views for any resource. You will have the control over queries while building the views.
Apart from all the above-mentioned points, this package integrates well with the Laravel policies. Moreover, Nova uses the policy that an Eloquent model has to authorise different resource actions. Taking all things into consideration, this Nova is offering great flexibility in the overall web development field.
Rob Stephen is a veteran Laravel developer, who is presently working with one of the leading Sydney-based web development firm PHPProgrammers, the best place to find dedicated and professional PHP developers in Australia. For more updates and information, follow the official website and the LinkedIn page of PHPProgrammers.
Created on Sep 6th 2018 01:02. Viewed 1,148 times.