承接 dev-craft/lara-directives 相关项目开发

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

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

dev-craft/lara-directives

Composer 安装命令:

composer require dev-craft/lara-directives

包简介

Short laravel directories that requires less code and give you much functionality.

README 文档

README

Laravel directivies which give you more functionality by using just short line of code.

Software License Github All Releases Open Issues

Installation

You can install the package via composer:

composer require "dev-craft/lara-directives":"dev-master"

Usage

@show

@show(object.property) 

Where Object should be the variable name and the property should be its property.

e.g lets say i have $user variable and i want to show the username from it. it will write below code.

@show(user.username)

It will display the value of given object's property, only if its value is not null.

If the value is null or empty it will return 'N/A'

@time

@time(object.property) 

it will disaply the time as default date format Y-m-d H:i:s

now if $user has created_at property and i want to display it i will write below code.

@time(user.created_at)

Custom time format using @time()

@time(object.property | H:i:s)

Its also supporting nested properties so you will use that too.

@time(user.address.created_at)

@human_time

It will return the human readable time from given datetime. e.g 1 minute ago

@human_time(object.property)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-09-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固