•    Top 5 Programming Fonts 

    Everyone has their ideal development setup, and many have spent countless hours customizing it to perfectly suit their needs. Outside of a color scheme, the next typical change is the font in use and every year new fonts are introduced giving us more to choose from than ever before.

    To find out what everyone is using, I asked on Twitter and Facebook and had a ton of responses. Based on the answers here is a list of the top 5 programming fonts in use today

    Fira Code

    Fira Code by Nikita Prokopov is a unique font in that it puts particular attention to the ligatures.

    Operator Mono

    Operator Mono by Hoefler & Co. is a surprise addition for me because it’s a commercial font with the base price being $199.

    I’ve been a fan of this since it was first released and I love the way it makes comments. That is what initially drew me to it and it continues to be my primary font.


    Hack by Chris Simpkins.

    It is designed to be a workhorse typeface for code. It has deep roots in the libre, open source typeface community and expands upon the contributions of the Bitstream Vera & DejaVu projects.


    Menlo is designed by Jim Lyles and included by default on Mac’s since Snow Leopard. For those on Windows, an alternative is Meslo.

    Source Code Pro

    Source Code Pro released by Adobe and designed by Paul D. Hunt. Source Code preserves the design features and vertical proportions of Source Sans but alters the glyph widths so that they are uniform across all glyphs and weights.


    Inconsolata by Raph Levien is a surprise addition to this list for me because it’s been around a long time. Its first release was in 2006 and continues to be wildly used.

    Honorable Mentions

    Outside of these five, a lot of others were recommended and here is a list:

    • Monaco
    • Input Mono
    • Edlo
    • Calibri
    • Consolas
    • Deja vu sans mono
    • Fantasque Sans Mono
    • Space Mono

    And of course no survey would be complete without a few crazy people mentioning the worst fonts ever for coding:

    • Papyrus
    • Comic Sans
    • Wingdings
    • Times New Roman

    Any of these fonts would make an excellent choice for your development toolset, and the screenshots came from the Atom editor with the following customizations:

    • Font Size: 12px;
    • Line Height 2.5

    Then for the italics, I customized the main styles.less stylesheet found in settings -> themes -> “your stylesheet”:

    .entity.other.attribute-name, atom-text-editor::shadow .comment {
        font-style: italic;
        .entity.other.attribute-name {
            font-style: italic;
  •    Learn how to use the TNTSearch driver with Laravel Scout 

    Laravel Scout provides a simple, driver-based solution for adding full-text search to your Eloquent models.

    Out of the box, Laravel 5.3 ships with Algolia driver. However, we can easily write custom drivers; that’s exactly what TeamTnt has done by providing a TNTSearch driver for Laravel Scout.

    Getting started

    First thing, let’s install a fresh copy of Laravel 5.3, I am using the Laravel installer, hence:

    laravel new scout-tntsearch

    Now let’s install the required packages for running Scout and TntSearch. First install Laravel Scout:

    composer require laravel/scout

    Then, install the TNTSearch Driver

    composer require teamtnt/laravel-scout-tntsearch-driver

    Next, we’ll add the ScoutServiceProvider and the TNTSearchScoutServiceProvider to our providers array in config/app.php

    'providers' => [
         * Package Service Providers...

    Now, let’s publish Laravel Scout config file:

    php artisan vendor:publish --provider="Laravel\Scout\ScoutServiceProvider"

    A new config file scout.php should be available in our config directory. Let’s set the config correctly so that Scout knows that we want to use TntSearch driver instead of Algolia.

    In our .env file we’ll add the following:


    Next, in config/scout.php we’ll add this:

    'tntsearch' => [
        'storage'  => storage_path(),

    This essentially specifies the directory where the index files will be stored.

    We have now successfully configured our app with Laravel Scout and TNTSearch driver and we are ready to start searching our Eloquent Models.

    Creating the database

    Our App database doesn’t contain any data for the moment and we will need an actual database to test our application. So let’s grab the sample Sakila film database from MySQL that is a sample database intended to provide a standard schema that can be used for examples. Then import it into our app’s database.

    Now we have some data to test out some of the features of Laravel Scout. Let’s make an Eloquent Model for the film table.

    php artisan make:model Models/Film

    We’ll set the primaryKey and table attribute on our Model so that Eloquent knows what to use for these values.

    We now have an Eloquent Model for our film table, let’s see if we can query some data with it.

    Our film table contains 1000 records, thus a perfect place to start testing the capabilities of Laravel Scout and TntSearch.

    Model Indexes

    From the Laravel documentation, we read the following: “Each Eloquent model is synced with a given search “index”, which contains all of the searchable records for that model. In other words, you can think of each index like a MySQL table. By default, each model will be persisted to an index matching the model’s typical “table” name. Typically, this is the plural form of the model name; however, you are free to customize the model’s index by overriding the searchableAs method on the model:”

    Ok, so first will add the Searchable trait on our Model, then we will customize the index name that will be created and saved. This index will be used to perform searches instead of querying the database, hence we gain much more speed while doing searches.


    We will first need to create the Index file for the first time.

    php artisan scout:import "App\Models\Film"

    We can clearly notice here how Laravel Scout chunks the data and imports it in the index 100 rows at a time, hence preventing our script from crashing or timing out. That’s pretty cool if you ask me !!.

    We now have in our storage directory a films_index.index file which Laravel Scout will use when performing searches on the Film Model.

    Now you might be asking yourself well what happens when I update my film table, do I need to import the data again and recreate the Index. Well no, Laravel Scout already takes care of updating the Index whenever you are updating your Model. i.e when you are creating new records, updating records and deleting records.

    Searching with TNT Search

    We can now search our Model using the search method provided by the Searchable trait.

    App\Models\Film::search('ANGELS LIFE')->get();

    We get 3 results, all of which contains in their title, some of the keywords we have specified to our search method. Say goodbye to WHERE LIKE %% queries.

    Also notice that all the fields that were indexed will be used during the search hence description, release_year and so on.

    The speed at which these results are returned is simply amazing, and therefore will really boost your Application when you have large sets of data to search.

    Final words

    I would really recommend using Laravel Scout for querying large databases, this will be where it will be at it’s most useful and powerful. Make sure you also have a look through the Laravel Scout official Documentation, there is some pretty cool stuff to learn over there.

    I have also published the code for this demo to GitHub, check it out for some reference.

  •    Podcast: Laravel 5.3.18, Yarn, Leanpub, and more.  

    In this episode, we discuss Yarn, Facebook's new JavaScript package manger, the new Laravel Links section, and lots of other random topics.

    This is our last podcast episode for 2016 and we will be taking a break until next year.

    Show Links

  •    Laravel v5.3.19 is now released 

    Laravel released v5.3.19 which includes a few small changes and improvements as well as a complete rewrite of the middleware sorting so that middleware calls with parameters now work properly.

    PHP Artisan make:model

    A new addition to Laravel is the ability to specify the creation of a resourceful controller when you are creating a new Model through Artisan. This means you can pass a -c or --controller flag to make:model:

    php artisan make:model Post --controller

    Laravel Image Dimensions Validation

    New in Laravel v5.3 is the ability to validate image files to ensure they meet certain dimensions and through the validator this can be setup with a string format:

    'avatar' => 'dimensions:min_width=100,min_height=200,ratio=3/2'

    Now in v5.3.19 this can be specified through a fluent syntax similar to unique and exists validation rules:


    Laravel Validation in and not_in

    The in and not_in validation received the ability to pass an array.

    // Previous
    // New

    Then the same for not_in

    // Previous
    // New
    Rule::notIn(['php', 'laravel'])

    Either style is valid and the new object-based style parses down into the old way. So you are free to use whichever suits your app.

    After Validation Hook

    Now your controllers can have a new withValidator method so you can easily call any hooks after validation:

    protected function withValidator($validator) 
      $validator->after(function($validator) {
        if ($this->somethingElseIsInvalid()) {
            $validator->errors()->add('field', 'Something is wrong with this field!');

    Previously you had to manually setup the $validator = Validator::make() before you could use an after hook which meant you lost the ability to utilize the ValidatesRequests trait.

    Upgrading Laravel

    To get this latest version all you need to do is run composer update and you can find a complete list of changes in the changelog

  •    Insomnia – A simple, beautiful, and free REST API client 

    Working with API’s is a common task we all face and one tool that makes this is easier is the Insomnia REST client created by Gregory Schier. It’s cross-platform compatible and works on Mac, Windows, and Linux.

    With the app, you can quickly create requests by specifying the URL, payload, headers, and authorization all in one place. Once you hit send it gives you all the details on every response. View status code, body, headers, cookies, and more.

    Besides being simple to use it also includes environment variables so you can share common variables across requests and manage them in one place.

    If you’ve been testing API’s through the console or manually give this app a try and save yourself some time and hassle.



  Solution / 2014年11月29日 23:46


  DB / 2014年11月03日 16:31


  Paginator / 2014年09月27日 22:09


  DB / 2014年09月27日 22:09


  DB / 2014年09月27日 22:09

   Bladeで @while を使用する

  Blade / 2014年09月27日 22:09


  DB / 2014年09月10日 10:56


  Core Extension / 2014年09月10日 10:56


  Testing / 2014年09月09日 00:49


  Testing / 2014年09月09日 00:49


  Service Provider / 2014年09月09日 00:49

   LaravelプロジェクトでTravis CIを使った継続的インテグレーション

  Solution / 2014年09月09日 00:49


  Route / 2014年09月09日 00:49


  Middleware / 2014年09月09日 00:49


  Middleware / 2014年09月09日 00:49


  Lang / 2014年09月09日 00:49


  Lang / 2014年09月09日 00:49


  Lang / 2014年09月09日 00:49


  Lang / 2014年09月09日 00:49


  Lang / 2014年09月09日 00:49


  Lang / 2014年09月09日 00:49


  Installation / 2014年09月09日 00:49


  Installation / 2014年09月09日 00:49


  Installation / 2014年09月09日 00:49


  Installation / 2014年09月09日 00:49

このサイトはLaravel Recipesのレシピを日本語訳にしたものと、

View all Packages for your Laravel projects