アプリ関連ニュース

[Laravel] データベースマイグレーション

Laravelのマイグレーション機能を使用することで、データベースのテーブル構造の反映をスクリプトとしてコマンドラインで実行することが可能になり、保守や変更作業などが簡単にできるようになります。

続きを読む

Visual Studio for Macを使って Xamarin.iOS アプリを作成

Visual Studio for Macを使って Xamarin.iOS アプリを作成し、
実機へのインストールを試してみます。

続きを読む

Trait in PHP Object Oriented Programming

Today I will talk about trait and its sample usages.In the Object Oriented Inheritance, a child class can only extend only one parent class.So what if the child class has to extend more than one parent classes? OOP trait is the answer for this problem as child classes can extend many traits as they want.Check out the samples below.

Here is the sample usage of a trait

<?php
trait Trait1 {
  public function print() {
    echo "lets extend more than one trait!"; 
  }
}

class Home {
  use Trait1;
}

$obj = new Home();
$obj->print();
?>

Now, Lets extend more than one trait.

<?php
trait Trait1 {
  public function print1() {
    echo "I am the trait1"; 
  }
}

trait Trait2 {
  public function print2() {
    echo "I am the trait2"; 
  }
}

class Home {
  use Trait1,Trait2;
}

$obj = new Home();
$obj->print1();
$obj->print2();
?>

By Yuuma



[Laravel] バリデーションエラーメッセージの日本語化

Laravel標準のバリデーション機能を使用した場合、英語でエラーメッセージが表示されます。
今回はLaravelのエラーメッセージの日本語化をおこなう方法を説明いたします。

続きを読む

[Laravel]バリデーション機能の使用

今回はLaravelフレームワークに標準搭載されているバリデーション機能の基本的な使用方法の説明をおこないたいと思います。

続きを読む

アプリ関連ニュース

お問い合わせはこちら

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

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

お問い合わせフォーム