未分類

Laravel Debugbar Package

Today, I would like to share about a package named laravel-debugbar.

Debugging is an essential part of the software development process, and Laravel provides a convenient package to make it easier. Laravel Debugbar is a powerful package that provides a debugging toolbar for your Laravel applications. It provides detailed information about the application’s performance, SQL queries, and more. In this blog, we will explore how to install Laravel Debugbar and use it to debug your Laravel applications.

Installation

Laravel Debugbar can be easily installed via Composer. Open up your terminal and navigate to your Laravel project directory. Then, run the following command:

composer require barryvdh/laravel-debugbar --dev

This will install the package and add it to your dev dependencies.

Next, you will need to add the service provider and alias in your config/app.php file. In the providers array, add the following:

Barryvdh\Debugbar\ServiceProvider::class,

And in the aliases array, add the following:

'Debugbar' => Barryvdh\Debugbar\Facade::class,

Once you have added the service provider and alias, you can publish the package assets by running the following command:

php artisan vendor:publish --provider="Barryvdh\Debugbar\ServiceProvider"

This will publish the package’s configuration file, views, and assets.


Usage

To start using Laravel Debugbar, you can simply add the following line of code to the beginning of your routes or controllers:

Debugbar::enable();

This will enable the debugbar for that specific route or controller.

To test that the debugbar is working correctly, you can add a simple query to your controller and view the results in the debugbar. Here is an example:

public function index()
{
    $users = DB::table('users')->get();

    return view('users', compact('users'));
}

You can loop through the $users variable and display the results. Then, open up your browser and navigate to the route that displays the users. You should see the debugbar at the bottom of the page, displaying information about the SQL query that was executed to retrieve the users.

Conclusion

Laravel Debugbar is a powerful package that makes it easy to debug your Laravel applications. It provides detailed information about the application’s performance, SQL queries, and more. In this blog, I have explored how to install Laravel Debugbar and use it to debug your Laravel applications. To learn more about Laravel Debugbar, check out the official documentation and GitHub repository:

GitHub URL: https://github.com/barryvdh/laravel-debugbar

Official Documentation: https://github.com/barryvdh/laravel-debugbar/blob/master/readme.md

This is all for now. Hope you enjoy that.

By Asahi



Flutterのアップデートについて

今回は、Flutterに関する最新のアップデートを紹介します。

Flutter 2.10リリース

Flutter 2.10には、開発者がアプリによるネットワーク要求を監視できる新しいネットワーク追跡機能も搭載されています。その他のアップデートには、Flutter DevToolsの改善、Dart 2.16、null safetyのサポート向上が含まれます。

Web用Flutter

Flutter 2.8では、開発者はflutter createコマンドを使ってWebプロジェクトを作成できるようになり、Flutterで構築したWebアプリケーションのパフォーマンスとユーザーエクスペリエンスに改善が見られます。

Desktop向けFlutter

最近のアップデートにより、Flutterで構築されたデスクトップアプリケーションのパフォーマンスとユーザーエクスペリエンスが改善されています。Flutter 2.8では、開発者はApple SiliconアーキテクチャをサポートするmacOSアプリケーションを作成できるようになりました。

Flutterの状態管理

FlutterチームはRiverpodという新しい状態管理ソリューションをリリースし、Flutterでの状態管理を簡素化することを目的としています。

Flutterプラグイン

FlutterチームはFirebase Analytics、Firebase Performance Monitoring、Google Maps用の新しいプラグインをリリースしました。

Flutterウィジェット

Flutterチームは、開発者がプラットフォームに適応したナビゲーションバーを作成できるAdaptive Navigation Barや、開発者がスクロール可能な領域の残りのスペースを埋めることができるSliverFillRemainingウィジェットなどの新しいウィジェットを発表しました。

結論として、モバイル、ウェブ、デスクトップアプリケーションを構築する場合、Flutterは高品質のユーザーインターフェースを構築するための強力で柔軟なツールキットを提供します。

金曜担当 – Ami




BingにAIが搭載されました

Microsoftの検索エンジンBingにAIが搭載されたようです。

まだ一般公開されているわけではなく、ウェイトリストに登録し招待されることで試すことができます。

続きを読む

PICO4を触ってみました

TikTokで有名なByteDance社の子会社のPICOが
昨年10月に発売したVRヘッドセットのPICO4を買ったので触ってみました。

Meta Quest2 と同じようにPCが要らない単体で使える
両目4K解像度とカラーパススルーが売りのヘッドセットです。

無線か有線どちらかでPCに接続することでPCVRヘッドセットとしても
使うことができます。

単体での使用時は、私が以前持っていたHTC Viveと
比べてとても画質が良く感じました。
次に無線でPCに接続して使用した場合は映像をストリーミングしていることが
分かるくらいには画質の低下は感じられましたが、
コントローラーの遅延は特に感じませんでした。

Meta Quest 2を持っていないので比較することはできませんが、
単体で利用するには良い選択肢だと感じました。

水曜担当:Tanaka



Alternatives for Heroku

Heroku is a famous PAAS (Platform as a Service) that makes it very easy for developers to deploy applications in different languages and frameworks.

Heroku is very popular due to its simplicity and ease of use. In minutes, you can go from an app on your computer to an app deployed using a URL that you send to friends and clients. Heroku had a free tier that can be used for learning purposes and non-commercial applications such as personal projects.

However Heroku said

The reason for that decision was due to fraud and abuse of Heroku’s free product plan.

Here are some alternatives that offer a free plan.

You can also check this list of PAAS with free tiers: https://github.com/ripienaar/free-for-dev#paas

Yuuma




アプリ関連ニュース

お問い合わせはこちら

お問い合わせ・ご相談はお電話、またはお問い合わせフォームよりお受け付けいたしております。

tel. 06-6454-8833(平日 10:00~17:00)

お問い合わせフォーム