技術情報
- 2021年01月12日
- 技術情報
Using controller function directly in Laravel blade
Today I would like to talk about using the function from controller directly on your blade view files.
Normally we wrote codes relating with application logic and database and then pass the data to specific view files. But what if we like to use the function from controller directly ?
We can create a static function in controller and then can directly be called from blade file without instantiating the class. Let me write a sample example.
Firstly, we will create a static function in controller. Why static function ?
If we create a normal function, we will need to instantiate the class in view file like this `new Controller()` which will be a mess in view files. Static function can be directly called using scope resolution (::) operator.
<?php
namespace App\Http\Controllers;
class HomeController extends Controller
{
public static function greet()
{
return "Hello World";
}
}
After that we can call the above controller function directly by providing the namespace of the controller and function using scope resolution operator like this.
<p>
{{ App\Http\Controllers\HomeController::greet() }}
<!-- output - Hello World -->
</p>
By Yuuma
yuuma at 2021年01月12日 10:00:59
- 2020年12月28日
- 技術情報
Wappalyzer technology profiler
I introduced an extension called daily.dev to read the development related articles. I will introduce more browser extension that are extremely useful next time. Also today I would like to introduce an extension called wappalyzer
Wappalyzer is a technology profiler that shows you what websites are built with.
Further more, it discovers more than a thousand technologies in dozens of categories such as programming languages, analytics, marketing tools, payment processors, CRM, CDN and others.
Go ahead this link and install the extension.
Lets take a look at yahoo website, https://www.yahoo.co.jp/
We can see the technologies we are using through the wapplyzer extension like this.

Lets take a look at another site medium.com, and lets see what technologies they are using.

Conclusion, this is a very useful plugin to trace technologies in a website such an easy way.
By Yuuma.
yuuma at 2020年12月28日 11:00:01
- 2020年12月25日
- 技術情報
[PHP] アップロード可能な最大ファイルサイズを調整する
データベースの復元処理など、ダンプファイルの容量がアップロード可能な最大ファイルサイズの初期設定(2MB)を超えている場合があります。
今回はそのような場合の対処方法を3パターン紹介します。
nishida at 2020年12月25日 10:00:13
- 2020年12月21日
- 技術情報
PROGRAMMING NEWS Browser extension
Today, I would like to introduce an extension I am using to read programming news daily & often. There are tons of websites or blogs publishing programming related news and I can’t decide which one to use and I found this extension.
It’s called daily.dev. It is the easiest way to stay updated on the latest programming news. With daily.dev, we can get the best articles from the best tech publications on any topic as below.
Publications we can get from.

We can also choose the favorite tags we want.

You can go ahead to this link and install the extension. When you go to new tab on browser, this will look like this as final result.

By Yuuma
yuuma at 2020年12月21日 11:00:44
- 2020年12月14日
- 技術情報
Changing github theme to dark mode
According the the recent updates from github, there is some improvements in daily experience like UI appearances, pull requests, discussions & dependency review. There are also other updates as well such as Continuous delivery support and other updates.
But today, I would like to talk about the appearance setting and how to enable the dark mode for your github.
First thing first, go to your profile setting.

Then you will see the new appearance setting as follow.

after click the appearance setting, you will see the available setting to play with.

Number 1 is a theme setting to change your github to Light & Dark mode. There is also Emoji option in number 2 which can change your emoji skin tone color as well.
As a final step, I selected my theme to dark and here it is.

Enjoy Dark theme.
By Yuuma
yuuma at 2020年12月14日 11:00:38