Hey, Usual Thursday with LaravelDaily newsletter, with content both from myself and the community. New thing - at the end of the newsletter, I decided to include my own random thoughts from Twitter, maybe you would want to retweet or follow me there.
Have a good read!
From LaravelDaily.com
5 Less-Known Features of Spatie Media Library
laraveldaily.com
Spatie Laravel MediaLibrary is one of the most popular Laravel packages, with almost million downloads. But have you read all of its documentation, with all the features? Let’s dive in. In general, I notice that developers rarely read FULL documentation of the packages.
How to Ban/Suspend Users in Laravel Project
laraveldaily.com
Laravel Auth system has a lot of features, but it doesn’t include suspending users for some time, like banning some angry forum user for 14 days to calm down. Luckily, it’s easy to implement, with Middleware. This article will show you how.
From Laravel community
Blazing Fast Migrations For Laravel Testing
dustinfraker.com
I recently purchased a course called “PHP Package Development” by @marcelpociot. The course was really good. If you are interested in package development for Laravel apps, I highly recommend it. After completing the course I decided to take a stab at developing a package.
Building a Vue SPA with Laravel Part 4
laravel-news.com
We left off building a real users endpoint and learned about a new way to fetch component data with Vue router in part 3. Now we’re ready to move our attention to creating CRUD functionality for our users—this tutorial will focus on editing existing users.
Must have Visual Studio Code Extensions for Laravel
medium.com
Are you switching from PHP Storm, Web Storm or Sublime? I personally love JetBrains’ IDEs and of course Sublime is amazing. I used both of them for many years now. But when ever I go online I look at people’s working on Visual Studio Code everywhere.
What is a command bus and why should you use it?
barryvanveen.nl
This article explains the basic concepts of the command bus. Why should you use it and how? Pointers are given to advanced use cases and good resources. A command is an object that signals an intent, like RegisterUser. The command is passed to the command bus.
PHP Enums
stitcher.io
An enumeration type, "enum" for short, is a data type to categorise named values. Enums can be used instead of hard coded strings to represent, for example, the status of a blog post in a structured and typed way. PHP doesn't have a native enum type.
Laravel Tinker Server Package
laravel-news.com
Laravel Tinker Server is a package by Marcel Pociot that enables you to tinker with your variables in real-time while working on your Laravel app. This package collects data via calls to a tinker() helper that ships with the package and allow you to then interact with those variables on the fly.
How to use Repository Pattern in Laravel
www.larashout.com
The Repository Pattern in Laravel is a very useful pattern with a couple of great uses. The first use is the abstraction that it provides. Meaning, it adds another layer between your application logic and your database. Spread the word! Share with your fellow developers.
ben182/laravel-auto-translate
github.com
With this package you can translate your language files using a translator service. Currently the package ships only with Google Translate. Specify a source language and a target language and it will automatically translate your files.
Laravel API Form Request validation errors
cwhite.me
This is a quick tip post about a nice way to format your validation errors when working with a Laravel API. While the above is a pretty sensible default format, it might be inconsistent with the rest of your API and thus cause confusion with your API consumers.
Non-Laravel but Still Intresting
My Random Tweets
Work-Life Balance
twitter.com
Power of getting up very early, at 4-5am. This week 3yr old daughter was ill and stayed at home all week, meanwhile wife worked full-time. Without grandparents/aunties/nannies, I still managed to squeeze in 32 hours of work this week, according to my RescueTime (see image attached).
Why do People Make Things so Complicated to Themselves?
twitter.com
Whenever I read Laracasts forum, I'm fascinated how developers do things in certain way only they can understand, and then try looking for help on forums so someone would understand their messed up code. Many times code samples in questions just beg to be rewritten from zero.
The Final Stretch
twitter.com
"I'm almost done, there's just small piece to refactor and I will push the code soon" - famous last words by every developer ever.
RTFM
twitter.com
I'm still amazed how many questions developers ask me (and generally online on forums) when they can find answer in the official documentations, just too "lazy" to read to that Page 9 or scroll down a few times.
God Save Project Managers
twitter.com
With every project I work on, more and more I realize value of a project manager. Cause team of developers, especially remote, especially with non-tech clients, can do MAGIC, both in good and bad sense.
That's it for this week, see you in the next newsletter issue! Povilas Korop LaravelDaily.com
|