PHP code example of winglife / laravel-nova-tabs
1. Go to this page and download the library: Download winglife/laravel-nova-tabs library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
winglife / laravel-nova-tabs example snippets
// app/Nova/User.php
namespace App\Nova;
use Illuminate\Validation\Rules;
use Laravel\Nova\Fields\Gravatar;
use Laravel\Nova\Fields\ID;
use Laravel\Nova\Fields\Password;
use Laravel\Nova\Fields\Text;
use Laravel\Nova\Http\Requests\NovaRequest;
use Winglife\LaravelNovaTabs\Tab;
use Winglife\LaravelNovaTabs\Tabs;
class User extends Resource
{
public function fields(NovaRequest $request)
{
return [
Tabs::make('Test', [
Tab::make('One', [
ID::make()->sortable(),
Gravatar::make()->maxWidth(50),
Text::make('Email')
->sortable()
->rules('('Password')
->onlyOnForms()
->creationRules('