PinnedMember-onlyHow to write Swagger documentation for Laravel API. Tips & examplesAPI documentation becomes very necessary when you split the team into Backend and Frontend. And even more when you divide your monorepo into parts or even microservices. I will show you how easily create API documentation for your Laravel API using swagger. Let’s start. I prefer using this package. This…Laravel6 min readLaravel6 min read
Sep 25, 2022Member-onlyTop MySQL 8/AWS RDS 3 features that can improve your appRecently AWS announced a long waited support of MySQL 8 for their RDS Aurora. Of course, you could use MySQL 8 engine on RDS way before, but Aurora has lots of good features like replication. Version 5.7 …Mysql 83 min readMysql 83 min read
Aug 21, 2021Member-onlyWays of deploying Laravel AppThere are many-many variations of how you can deploy your app. Of course, it heavily depends on the type of app: whether it’s a simple one-page website or a high-load SAAS. I try to follow two main concepts when it comes to deployment: - it should be as automated as…Laravel2 min readLaravel2 min read
Mar 14, 2021Member-onlyLaravel Vapor. Migrating existing app to serverless. Easy or not?App autoscaling is not a trivial task as it might look. I was really excited when I read about Vapor. I would like to share my experience of playing with this great tool. Project size Our project is nearly 650Mb and Lambda has limitations of 250Mb unzipped. We had a…Laravel5 min readLaravel5 min read
Apr 28, 2020How to fork and maintain laravel package with easeThere are a lot of amazing ready to use laravel packages on Github and packages. Every project uses open-source packages. The only problem with open source is the lack of maintenance as it is not a full time paid job for contributors. Laravel is a very rapidly developed PHP framework…Laravel3 min readLaravel3 min read
Apr 14, 2020Laravel 7 package development from scratchThis article is an updated version of Larave 5.5 package development article Step 1. Create a new project I prefer using the Laravel installer. You can read more about the installation here: https://laravel.com/docs/7.x/installation laravel new lara-dg I prefer using SQLite for testing and package development. Adjust your.env file DB_CONNECTION=sqlite DB_DATABASE=/Users/ivan/code/packages/test-project/database/database.sqlitePHP4 min readPHP4 min read
Oct 19, 2018How to speed up your PHPunit tests in Laravel 5?Testing is good. I’m a big fan of well tested code but nobody likes waiting tests to be finished. It is ok when you have a few hundreds of them or less. But when we reached a 2K number it became a really frustrating issue. In our case all integration…Laravel2 min readLaravel2 min read
Jul 6, 2018Laravel command logger packageLet me introduce our new laravel package for logging console commands. It was developed specially for our Tenantcloud project. It is rather simple but at the same time really useful. In our development process we faced with the problem of many cron jobs and console commands. Some of them were…Laravel1 min readLaravel1 min read
Jan 3, 2018Laravel 5.5 package development from scratchFirst of all I want to thank Cristian Tăbăcitu for his cool article about package development.My article is just an extension of his article. Here I will cover all steps of creating, maintaining and using packages. I will be using my laravel-boolean-softdeletes package as an example. Step 1. Create new project I prefer using Laravel…PHP4 min readPHP4 min read
Mar 17, 2017How to prioritize queues in Laravel 5.3 eventsThere is no predefined interface for changing queue for event listeners in Laravel 5.3. By default, it is always taken from your config. My solution: Create an abstract class for your listeners: namespace App\Listeners; /** * Class BaseListener */ abstract class BaseListener { /**…Laravel2 min readLaravel2 min read