Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Vientiane YouTu on Laravel

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces how to use Vientiane YouTu on Laravel, the article is very detailed, has a certain reference value, interested friends must read it!

How to use Vientiane YouTu on Laravel? Installation

Execute the composer command to install the extension

Composer require yuecode/image

Add to Provider in config/app.php

\ Yuecode\ Image\ ImageProvider::class

Executing php artisan vendor:publish will automatically generate the image.php file in the config/ directory and modify the corresponding options in the configuration file.

After the configuration is complete, use the

Use Yuecode\ Image\ YouTu

Then use static method calls

such as

$res = YouTu::pornDetectUrl (array ("https://cache.yisu.com/upload/information/20210522/355/681909.jpg"," https://cache.yisu.com/upload/information/20210522/355/681910.jpg")); dd ($res) Method list method Note uploadImage upload picture, Vientiane YouTu V2 interface statImage query picture information, Vientiane YouTu V2 interface copyImage copy picture, Vientiane YouTu V2 interface delImage delete picture, Vientiane YouTu V2 interface uploadImageV1 upload picture, Vientiane YouTu V1 interface statImageV1 query picture information, Vientiane YouTu V1 interface copyImageV1 copy picture, Vientiane YouTu V1 interface delImageV1 delete picture Vientiane YouTu V1 interface uploadVideo uploads video statVideo to view video status delVideo deletes video file pornDetect intelligent porn detection, parameter is URLpornDetectUrl multi-image intelligent porn detection, parameter is URL arraypornDetectFile image file can only detect porn, parameter is file array sample code

Upload pictures

$res = YouTu::uploadImage ($request- > file ('x')-> getRealPath ()); dd ($res)

Intelligent porn detection

$res = YouTu::pornDetect ('http://img.taopic.com/uploads/allimg/130716/318769-130G60P30462.jpg')dd($res) above is all the contents of the article "how to use Vientiane YouTu on Laravel". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report