tasawk/component

组件方法

安装: 80

依赖项: 0

建议者: 0

安全: 0

星标: 0

关注者: 1

分支: 0

开放性问题: 0

语言:JavaScript

dev-master 2020-07-19 09:17 UTC

This package is auto-updated.

Last update: 2024-09-19 19:09:29 UTC


README

安装

first clone tasawk project
https://github.com/EslamSaloka/tasawk_project.git
composer dump-autoload
composer require tasawk/component:dev-master
>>config>>app.php
  providers = [
    Tasawk\TasawkComponent\TasawkServiceProvider::class,
  ];
php artisan vendor:publish --tag=public_all --force

使用

for create new component
php artisan component:create {component_name}
for create view
php artisan component:view {component_name} --type=index --type=edit --type=create
for create migrate
php artisan component:migrate {component_name} --M=file_name

环境变量

GOOGLE_API_KEY=GOOHELASASDASDASDASSDS

辅助工具

$number = 50123456755552
sanitize_mobile($number) >> 966501234567
-------
$info = 'place_id' || 'address_name';
GetPlaceInformation($lat,$lng,$info)
-------
create input
from_input($name, $label, $type = 'text', $value = '', $lang = null, $autocomplete = null)
-----
create text area
from_input_textarea($name, $label, $value = '', $lang = '')
-----
create from image
from_image($name, $value = '', $label,$multiple = false)
-----
Upload image
file_upload($file, $path = '', $wh = [], $base64 = false, $watermark = false)