Arda Kılıçdağı - Bir geliştiricinin karalama defteri

Navigation

Yubi...Ney ? Yubikey hakkında ilk deneyimlerim

Using Eloquent and Schema Builder Commands Outside Laravel

Hey there,

Today, I will be telling about using Laravel's Eloquent ORM, and Schema builder outside Laravel with artisan's Migration commands. I will be using Laravel's Eloquent ORM, Silex as skeleton (you can also use Pimple as dependency injection container separately), and PHPMig for handling Migrations.

Why?

There are couple of reasons I needed this combination:

  • I will be making a micro app as a garage project, and I needed a good ORM and migration tool together.
  • I don't like Lumen, and that's why I don't want to use it.
  • I could also use Phinx as both schema builder and migration handler, but Eloquent ORM already comes with Schema builder classes. I didn't want to use a second layer for

Laravel 5: Fetching unique slugs before saving

Hello,

Today, I'll try to tell about a little tiny trick about PHP traits using Laravel as example.

I'll rename a private method in PHP traits and use it like a public method.

There is an awesome package for Laravel called Eloquent-Sluggable created by Colin Viebrock, which I've been using since Laravel 4.

I couldn't find a similar article for the same purpose with this package, so I decided to write a simple blog post.

Today, in a project, I needed to create the slug before saving. First, I thought of running the method directly in a model, so I tried running

Model::makeSlugUnique('my-slug-that-may-not-be-unique');  

But as expected, it failed, because its property was protected, and I should not fetch

Telegram Bot PHP API Application

Telegram-bot-php This app is a very simple Telegram PHP API for newly announced Telegram Bots. Features By installing this app, you can have a working Telegram Bot within minutes! This app only has two routes (which one is to register the webhook, another is to listen the webhook) in an index.php file, and a configuration file. This app can handle multiple bots from same route. Different hooks will be different route parameters. I'm already hosting…

WhatTheTag - A sample Laravel 5 application

Hey all,

Here's my latest project that came out using Laravel 5. This is called WhatTheTag.

Why?

There are some reasons behind this project.

  • Firstly, I needed this. I didn't like Picasa's web interface, and I wanted to make a simple website that I could search my photos (actually my "internet meme folder") efficiently.
  • I wanted to play with Laravel 5 and to make a sample application that uses various features of Laravel 5.
  • I also wanted to play with some asset management tools such as Gulp.

After deciding to make this app, it took maybe a week or so in my spare times to pull this application together.

Features

  • This application's main feature is to upload, tag, list and

Çin malı klon Arduino'ları Mac OSX'te çalıştırmak

Merhaba Arkadaşlar

Bugün sizlere Çin üretimi klon Arduino'ları (Uno, Nano vs.) Mac OSX'nizde nasıl çalıştıracağınızı anlatacağım.

Neden

Öncelikle klon Arduino seçmemin birkaç sebebi var,

Bunlardan birincisi çok ucuz olmaları.
Arduino Uno ve Nano, sitesinde 22 dolar artı yol civarında, lakin Aliexpress.com'da Nano'ların 2.5, Uno'ların da 3 dolar gibi saçma ucuz bir fiyata satılması idi, bir diğer sebebi de olası bir yanlış işlemde bozacağımı ve de modülü yakacağımı düşünüp bunun yerine ilk denemelerimi klon cihazla yapmak istememdi. Sonuçta bu fiyatın bir kısmı Arduino foundation'a destek amaçlı da gidecekti, ve de ben bunu cihazı alırken değil de Arduino IDE'yi indirirken yapmaya karar verdim.

İkinci sebebi de bu klonların donanım olarak daha iyi olmaları idi. Daha hızlı upload edilebilir olmaları, çipin