承接 creode/laravel-nova-meet-the-team 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

creode/laravel-nova-meet-the-team

最新稳定版本:1.11.0

Composer 安装命令:

composer require creode/laravel-nova-meet-the-team

包简介

Add Meet the Team feature to your Laravel Nova application.

README 文档

README

Module for Laravel Nova to allow a user to add different team members to a website.

Installation

You can install this package via composer using this command:

composer require creode/laravel-nova-meet-the-team

The package will automatically register itself.

Meet the Team Page

This module also has the capability of rendering a page of all teams by visiting "/meet-the-team". To enable this, you can add this service provider to the providers section of your config/app.php file:

'providers' => [
    ...
    Creode\LaravelNovaMeetTheTeam\Providers\MeetTheTeamServiceProvider::class,
    ...
],

Usage

Publishing Migrations

You can publish the migrations this module exposes with:

php artisan vendor:publish --tag="nova-meet-the-team-migrations"

Publishing Config

You can publish the config this module exposes with:

php artisan vendor:publish --tag="nova-meet-the-team-config"

Configuring Models

You can configure the models this module uses by publishing the config and editing the config file. This allows for the capability to use your own models for the team members and teams.

The suggested way to interact with these models is to use the repository classes that are provided by this module. These can be accessed by using the following classes:

use Creode\LaravelNovaMeetTheTeam\Repositories\TeamRepository;
use Creode\LaravelNovaMeetTheTeam\Repositories\TeamMemberRepository;

These repositories as based on the Laravel Repository package.

Ordering by Weight

The team members can be ordered by weight. This is a field that is added to the team members table.

You can order the team members by weight by using the following snippet:

$teams = $teamRepository->with('members')->ordered()->get();

统计信息

  • 总下载量: 97
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-12-18