アプリ関連ニュース

Main differences between Laravel and Lumen Frameworks

Today, I would like to share about main differences between Laravel and Lumen frameworks. Let’s take a look.

Both Laravel and Lumen are developed by Taylor Otwell. But there are some differences.

Laravel is a MVC based full-stack web application framework that provides support for a lot of third-party tools and frameworks. Lumen is a lighter version of the Laravel Framework that is a micro framework used to develop microservices and APIs in high speed and less time.

Laravel has a good documentation whereas Lumen has no clear documentation.

Response time of Laravel is high compared to Lumen.

Lumen has better performance and speed compared to Laravel.

Laravel has own command line interface whereas Lumen is feature-rich micro framework.

Laravel can work on handling event queue and has an efficient template. Lumen can’t work on handling event queue and doesn’t have an efficient template.

Laravel has a huge community compared to Lumen.

This is all for now. Hope you enjoy that.

By Asahi



Xcode, iOS app debug to device failed due to incompatibility issue

You might see this error message when debugging the app to your device.

This operation can fail if the version of the OS on the device is incompatible with the installed version of Xcode.

Today I would like to share with you how I solved this issue.

Xcode show “Failed to prepare device for development.” error handling -  彼得潘的Swift iOS App 開發教室- Medium

Firstly , you have to check the compatibility versions between Xcode and iOS. You can check on the link below.

https://developer.apple.com/support/xcode/

Secondly , check the version of your iOS device. Let’s say 15.4 in this case. Then you can check the device supports on your Mac. You can check under this path

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

If the directory is missing download support files for 15.4 (your iOS version) , you can download the files from this github.

https://github.com/filsv/iOSDeviceSupport

As a final step, restart your Xcode.

Yuuma



知っておいていただきたいこと – 5

今回も、Laravelの知っておいた方がいいとおもったことをいくつか紹介します。

Laravel Tip #findMany

Laravelのfindメソッドは知っていますが、このfindManyメソッドでidから複数のデータを取得できることはご存知でしょうか?

$user = User::findMany([1, 2, 3]); 
// Select * From users Where id IN (1,2,3)

findManyメソッドには、オプションの第2パラメータがあり、これを使用して取得したいカラムを指定することができます。

$users = User::findMany([1,2,3],['id','name']);
//Select id, name From users Where id IN (1,2,3)

ということで、今回はこれで終わります。

金曜担当 – Ami



[JavaScript] Formの入力内容をObject形式で取得する

Ajaxなどでフロントエンドからサーバーサイドと連携する際に
Object形式でサーバーサイドにパラメータをpostします。
そのような場合に、Formの入力内容をまとめてObject形式で取得する方法が
便利なのでシェアしたいと思います。

続きを読む

Converting XML to Array with PHP

Today, I would like to share about converting xml data to associated array in PHP. Let’s take a look.

We will need just 4 steps to perform that.

Step 1 : read the xml file and get file contents.

<?php
// read xml file
$xmlFile = "sample.xml";
$xmlFileContents = file_get_contents($xmlFile);

Step 2 : convert xml data into xml object.

// Convert XML Data into XML Object
$xmlObject = simplexml_load_string($xmlFileContents);

Step 3 : convert xml object to Associated array

// Convert XML data object to  Array
$json  = json_encode($xmlObject);
$array = json_decode($json, true);	

Step 4 : print the result

// print array
print "<pre>";
print_r($array);
print "</pre>";

This is all for now. Hope you enjoy that.

By Asahi



アプリ関連ニュース

お問い合わせはこちら

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

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

お問い合わせフォーム