Laravel Nova: enable/disable actions log view? - laravel

Laravel Nova keeps a log of actions, and can show it like any other resource.
For one of my projects this is somehow enabled, while for a different project (same Nova version) I don't see the Actions under my resources. I'm not sure why.
So how does one enable or disable this view?

Need add trait Actionable to models for enable Action Log.
use Laravel\Nova\Actions\Actionable;
use Actionable;

Related

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 don't know where to start or what to change?
In Nova 3 and earlier you had to publish the resources of nova and then you could add thing in your layout.blade.php.
Example
I think you have to override the Main Header Vue Component (just for info, located in: vendor/laravel/nova/resources/js/layouts/MainHeader.vue and etc...)
Can you try using the approach below? https://laracasts.com/discuss/channels/nova/how-to-override-a-nova-component?reply=672085

Strapi override admin panel controller

I am interested in overriding the strapi admin panel webhook controller to give it some more functionality. e.g. Allowing customization on a per model level instead of every entity create/update/delete calling the webhook. It seems like you cant override controllers by just adding them to the admin folder like you can other parts of the admin frontend. Im looking for advice on how to proceed with this or if creating a custom plugin is my only option at this point.
Thanks, Jordy
if you want to customize the admin panel, you will have to follow this documentation - https://strapi.io/documentation/3.0.0-beta.x/concepts/customization.html
It's the same for the admin part of a plugin.

Laravel Nova - output forms on front end?

I am building a system that uses Laravel Nova for managing resources.
There are a couple of instances where I want non-admin users to be able to create resources. The ideal solution would be to define the resource in Nova and embed Nova's own create form on the front end of the site.
Has anyone done anything similar, or have any suggestions how to go about this?
I believe you can use the same endpoints that Nova is using.
For example to get all the fields of a resource:
GET updating fields:
http://{url}/nova-api/{resource}/{id}/?editing=true&editMode=update
GET creation fields:
http://{resource}/nova-api/{resource}/creation-fields?editing=true&editMode=create=
After the user has filled out the fields, you can use this endpoint to save the new values:
PUT:
http://{url}/nova-api/{resource}/{id}

Model attributes visibility inside admin panel

Is there a way to manage model attributes visibility inside admin panel per action? Suppose I've generated Project API with name and slug attributes via the CLI. I want to hide slug from new and edit actions and use beforeCreate callback to generate it. Can I override the view or there are relative settings?
The logic used to populate admin fields is mainly contained in this file: https://github.com/wistityhq/strapi-generate-admin/blob/master/files/api/admin/public/src/strapi/explorer/explorer.service.js#L25
If you want to add specific behavior for some fields, please add custom code in this file. To do so:
cd api/admin/public/src/
npm install (node 4 required)
gulp serve
visit http://localhost:3002
edit the logic here: https://github.com/wistityhq/strapi-generate-admin/blob/master/files/api/admin/public/src/strapi/explorer/explorer.service.js#L25
finally, run gulp dist to save your updates
In a next Strapi version, admin fields display will be probably based on an external JSON file or on an adminOptions field located in each attribute of myModel.settings.json files.

how to use laravel illuminate in a custom project

I have a static site with a lot of pages. Now I got a new requirement. Client need a Client Area, I am thinking to use laravel Database Eloquent, Session, Form/html, Session and want to use them as alias like use in laravel/lumen. The problem is that I want static pages same as it is with .html extension, is there any solution? I want some packages with aliases to speed up.
I spent a complete day on Configuring Input and Eloquent but I wasn't able to setup to other packages. But I don't know how to set aliases and service providers. Any idea?
Specific:
I need Laravel Some packages
Session,
FileSystem
Mail
Input
Database
Html/Form,
Validation
I don't need others packages and need aliases same as laravel used in (config/app)
yes you can use laravel components outside laravel project please read the article : http://www.richardbagshaw.co.uk/using-illuminate-components/

Resources