アプリ関連ニュース
- 2021年3月08日
- 技術情報
Laravel QR code generator
I am using a laravel library called `simple-qr-code` in my previous project. It is pretty easy to use and configurable and I would like to share with you today.
Firstly download the package via composer
composer require simplesoftwareio/simple-qrcode "~4"
That is all for the configuration. And you can now generate in controller like this.
use SimpleSoftwareIO\QrCode\Facades\QrCode;
QrCode::generate('Make me into a QrCode!');
This will make a QrCode that says “Make me into a QrCode!”

If you want to generate directly on the view, it is fine too.
{!! QrCode::size(300)->generate('generate Qr code'); !!}
If we want to generate a URL after reading the Qr code, we just have to pass a url string in generate function like this.
{!! QrCode::size(300)->generate('www.google.com'); !!}
You can vary the Qr code designs as well. You can see more detail here. Make sure to use when you have to deal with qr code as it is pretty easy to use.
By Yuuma
yuuma at 2021年03月08日 11:00:01
[IdeaLens K2+] Unity 2017.2でBuild failureが発生する場合の対処方法
今回はスタンドアロン型VRヘッドマウントディスプレイ[IdeaLens K2+]用のVRアプリをUnity 2017.2で実装し、ビルドをおこなう際にBuild failureが発生した場合の対処方法を紹介します。
続きを読むnishida at 2021年03月04日 10:00:08
- 2021年3月03日
- 他の話題
組み換え可能なノートパソコンが登場
tanaka at 2021年03月03日 10:00:31
- 2021年3月01日
- 技術情報
Optimize Laravel website speed
Today, I would like to highlight a laravel package that will hep you to speed up your laravel website.
It is very important for every website to quick load that means your website should load in few seconds like 4 or 5. We are always fetching issues about page speed like how to increase website speed in laravel, how to reduce loading time of website in laravel, is it possible speed up php execution time of my website, how to optimize php laravel script to increase speed, how to speed up web browsing in laravel. So basically you have several question regarding to improve your website performance.
I found “laravel-page-speed” composer package for 35%+ optimization of laravel website. laravel-page-speed package will minify HTML output and it can be optimization your web page. laravel-page-speed package will delete unused attributes in HTML tags, delete unused quotes in HTML tags, delete unused prefixes from URLs, delete unused whitespace in HTML, delete HTML comments. Also there are several feature. They also minify css and minify js files.
Just grab the package via composer.
composer require renatomarinho/laravel-page-speed
Publish the configuration file
php artisan vendor:publish --provider="RenatoMarinho\LaravelPageSpeed\ServiceProvider"
And then register it in Kernel file
//app/Http/Kernel.php
protected $middleware = [
...
\RenatoMarinho\LaravelPageSpeed\Middleware\InlineCss::class,
\RenatoMarinho\LaravelPageSpeed\Middleware\ElideAttributes::class,
\RenatoMarinho\LaravelPageSpeed\Middleware\InsertDNSPrefetch::class,
\RenatoMarinho\LaravelPageSpeed\Middleware\RemoveComments::class,
//\RenatoMarinho\LaravelPageSpeed\Middleware\TrimUrls::class,
//\RenatoMarinho\LaravelPageSpeed\Middleware\RemoveQuotes::class,
\RenatoMarinho\LaravelPageSpeed\Middleware\CollapseWhitespace::class, // Note: This middleware invokes "RemoveComments::class" before it runs.
\RenatoMarinho\LaravelPageSpeed\Middleware\DeferJavascript::class,
]
And you are good to go.
There are several useful filtering methods that will help you to speed up your website like `RemoveComments, CollapseWhitespace, RemoveQuotes` etc.
You can see more detail in their documentation.
By Yuuma
yuuma at 2021年03月01日 11:00:13
[HTC VIVE + Unity] レーザーポインターの実装方法 (4)
HTC VIVE用VRアプリ開発でUnityを使用してレーザーポインターを実装する方法を紹介します。
本記事は前回の「[HTC VIVE + Unity] レーザーポインターの実装方法 (3)」の続きです。
今回は、前回追加したレーザーポインターに衝突判定処理を追加する方法を紹介します。
nishida at 2021年02月26日 10:00:36