•    DD and Dump Is coming to Collections in Laravel 5.5 

    Coming to Laravel 5.5 is two brand new methods on the Collections class that will make debugging easier than ever before. These are dd and dump.

    Pretend you have a simple collection setup and are piping it through a few filters:

    collect([1,2,3])->map(function($i){
        return $i * 2;
    })->reject(function($i){
        return $i < 3;
    });
    

    Knowing what happens in each step of the chain is can be difficult and now you’ll have the option to either “dump” it out at a certain point, or “dump and die”. For example:

    collect([1,2,3])->map(function($i){
        return $i * 2;
    })->dump()->reject(function($i){
        return $i < 3;
    });
    

    dump() outputs the results at that moment and then continues processing, here is the results when running that code:

    Collection {#181 ▼
      #items: array:3 [▼
        0 => 2
        1 => 4
        2 => 6
      ]
    }
    

    dd() on the other hand stops the process immediately and dumps out the results:

    collect([1,2,3])->map(function($i){
        return $i * 2;
    })->dd()->reject(function($i){
        return $i < 3;
    });
    

    And the results:

    array:3 [▼
      0 => 2
      1 => 4
      2 => 6
    ]
    

    These will be welcomed features in Laravel 5.5 and if you’d like to start using these today, Spatie released a 3rd party package named Collection Macros that includes both of these methods and a few additional helpers.

  •    Email Notifications from Understand.io – sponsor 

    Built specifically for Laravel, Understand.io is a very powerful tool used by hundreds of developers to stay on top of their application’s health. In addition to performing live search and analysis on your log data, you can also set up custom alerts. Alerts can be used to automatically send a variety of notifications via email, Slack or a webhook when something important takes place in your application.

    Understand has recently introduced a daily email digest, which will further help you to proactively monitor your web app. The daily email digest contains a summary of the total volume of events from the previous day and week. Also included is an incredible Anomaly Detector, which will automatically spot unexpected patterns and unusual activity in your logs, thereby surfacing issues without your intervention.

    Understand.io helps you to keep your customers happy. Get started now with a free trial. Plans start from only $9 per month.


    Many thanks to Understand.io for sponsoring Laravel News this week

  •    Monica is a Laravel Powered Personal Relationship Manager 

    Monica is a new kind of CRM that is designed to organize interactions with your friends and family and it’s built on Laravel.

    Monica allows people to keep track of everything that’s important about their friends and family. Like the activities done with them. When you last called someone. What you talked about. It will help you remember the name and the age of the kids. It can also remind you to call someone you haven’t talked to in a while.

    Monica is available as a download from Github or a hosted edition that you can signup for on their website.

  •    Coaster CMS 

    Coaster CMS is a Laravel powered CMS created by the full-service digital agency Web-Feet.co.uk. Being an agency, they specialize in offering solutions to a wide range of clients, and this is where Coaster CMS was born.

    “With eight years of combined developer experience of multiple CMS systems led us to a belief that there was still a market out there for a “block based CMS system” that didn’t confuse a user when they logged in to manage content.”, said senior developer Daniel Chadwick, “We had a pretty strong set of core ideas that keeps Coaster tied to being flexible in development and simple for the end user.”

    Coaster CMS made its first official launch in March of 2016 they released it as open source to give back to the community and give people a different CMS option. Since then, the project has grown, and they just released v5.4 which includes a new WordPress importer, a new theme, full page caching, and more.

    Coaster CMS Administration Highlights

    Coaster CMS Dashboard
    Coaster CMS Pages
    Coaster CMS Edit Page
    Coaster CMS Media Manager

    The admin also features an advanced permissions setup and unique time specific content versioning, which allows pages to show different content at different times of the day.

    Coaster CMS Beacons

    Beacons are something I haven’t heard of before and from the Coaster CMS site here is what they are:

    A beacon is a small Bluetooth radio transmitter. Think of it like a small lighthouse: it constantly transmits a signal that devices can see. Instead of light, they emit a very short-range radio signal transmitted on a regular interval of approximately 1/10th of a second. A Bluetooth-equipped device like a smartphone can “see” a beacon once it is in range. Depending on both devices’ proximity, a smartphone can perform several different actions. It can update an indoor map with your location, open a lock, or even change the music in your house as you walk from room to room. Beacons are a key technology in connecting the power of the Internet to our everyday life.

    The key to the power of Beacons is that they are ‘location aware’ meaning that the information they broadcast is tailored to their location. This means that the user experience is incredibly valuable as there is no need to sift through irrelevant data. The experience can also be very personal to the user, as mobile phones are very personal devices.

    As an example, you could have a page dedicated to an event that your company will be attending and linked to a beacon at the conference stand. The, when people are on their phones near the stand, they would see the notification for the page. This would be perfect as a lead generation system where it could have a form on the page to get their information.

    Another example is a museum or an art gallery. You could have content pages that are dedicated to an art collection or individual items; then people could find out more info from their phones.

    Time Specific Versioning

    Time specific versioning is a unique feature that allows you to set up content that should be published at a specific date or time, or go advanced and have special content only appear on particular days of the week or times of the year.

    Developer Friendly Features

    Coaster CMS is also developer friendly, and you’ll feel right at home since it utilizes Laravel and has embraced Laravel’s tooling such as Blade, Mix, migrations, Artisan, etc. Plus it supports powerful features for creating themes, great documentation, and a robust blocks system that includes the following types:

    • String, Dates, and Links
    • Forms
    • Gallery
    • Images
    • Selects
    • Videos
    • Repeaters

    With these different types, you can create some unique and powerful views.

    Getting Involved

    If you’d like to get involved with the Coaster CMS project, they have a growing and active Slack channel, the GitHub repo for pull requests, and would enjoy having more themes created if you are of the designer type.

    You can download the CMS, try it out, and join the community all from the Coaster CMS site. Give it a try and add a new CMS to your arsenal.


    Many thanks to Coaster CMS for sponsoring Laravel News this week.

  •    Laravel.io Launches Its Next Version 

    The Laravel community project, Laravel.io, that includes a forum and Pastebin, launched a brand new version. The release features a new design, a new authentication system, and the entire codebase has been rewritten from scratch.

    The entire portal is open source and can be used as both a learning resource and as a project to contribute too.

    Once you login it features a new dashboard that gives you a quick overview of your stats:

    Another feature is the forums use tags for categorization and it utilizes a markdown editor for replies.

    Check out the new Laravel.io Community Portal and start contributing through helping answer questions or by committing code.

このレシピサイトについて

このサイトはLaravel Recipesのレシピを日本語訳にしたものと、
日本独自のレシピを含んでします。
レシピの要望等がありましたら、お気軽にご連絡ください。
またこのサイトはオープンソースで公開されています。
Laravelの学習等にお役立てください
Laravel.JpRecipe

View all Packages for your Laravel projects