for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BBSLab\NovaPermission;
use Laravel\Nova\Nova;
use Laravel\Nova\Tool;
class PermissionBuilder extends Tool
{
/**
* Perform any tasks that need to happen when the tool is booted.
*
* @return void
*/
public function boot()
Nova::script('nova-permission', __DIR__.'/../dist/js/tool.js');
Nova::style('nova-permission', __DIR__.'/../dist/css/tool.css');
$this->loadNovaTranslations();
}
protected function loadNovaTranslations()
$translations = collect(trans('nova-permission::permission-builder'))->mapWithKeys(function ($value, $key) {
return ["permission-builder::{$key}" => $value];
})->toArray();
Nova::translations($translations);
Nova::provideToScript([
'translations' => Nova::allTranslations(),
]);
* Build the view that renders the navigation links for the tool.
* @return \Illuminate\View\View
public function renderNavigation()
return view('nova-permission::navigation');