Category: Laravel

Laravel Telescope Beta Now Available

The first beta release of Laravel Telescope is now out and available for everyone. If you are not familiar with Telescope here is the quick overview: Laravel Telescope is an elegant debug assistant for the Laravel framework. Telescope provides insight into the requests coming into your application, exceptions, log entries, database queries, queued jobs, mail, notifications, cache operations, scheduled tasks, variable dumps and more. Telescope makes a wonderful companion to your local Laravel development environment. You can get the beta by installing it through Composer: composer require laravel/telescope --dev Then finishing the install with the following: php artisan telescope:install...

Read More

Larastan: Discover Bugs in Your Code Before Running It

Larastan is a static analysis command-line tool by Nuno Maduro built on top of PHPStan and focuses on finding errors in your Laravel code before running it. If you’ve ever used PhpStorm, you’ve probably experienced static analysis of your PHP code both in realtime and within code inspections. Laravel takes advantage of PHP’s magic methods (i.e., __get()) for some of the framework functionality, and Larastan aims to analyze code that relies on magic methods and report any possible bugs. Once you install Larastan with Composer, you can use the project’s Artisan command on Laravel applications: # Install composer require...

Read More

Laravel Telescope Announced at Laracon AU

Taylor Otwell dropped a fantastic announcement and demo at Laracon AU—Laravel Telescope. What is Telescope you ask? It’s a new application debugging assistant for Laravel built by Mohamed Said and Taylor Otwell. It will be open-source on GitHub with an anticipated release of next week some time. During my time with Symfony 2, one of the things I enjoyed was the out-of-the-box debug toolbar. I am excited that Laravel is getting a Laravel-created debugging tool! In typical Laravel fashion, Mohamed and Taylor built a valuable tool that is going to help you develop Laravel applications faster and get to...

Read More

Building and Maintaining a Laravel Translation Package

In this multi-part series, we’ll be documenting the process of building and maintaining an open-source package for Laravel. We will cover everything from bootstrapping the package to dealing with your first issues and pull requests and as much as we possibly can in between. What Will We Build During this series, we will build a translation package to complement Laravel’s native localization features. Laravel’s baked-in localization allows your app to handle multiple locales and serve translated content accordingly. Handling various locales is a three-step process: Taking content out of your templates and moving into language files stored in either...

Read More

Introduction to the JSON API

JSON API was originally drafted in May 2013 by Yehuda Katz and reached stable in May 2015, and it is about making your API calls efficient. You can fetch data as you need, adding or removing attributes or relations as your requirements change. This minimizes the amount of data and round trips needed when making API calls. JSON API documents work as any other API format, you send a request to an endpoint and receive your document. The JSON API specification defines how resources are structured. This structure helps in normalizing how you consume the API. For example when...

Read More