The Clean Coder’s Guide to Laravel

https://ashallendesign.ams3.digitaloceanspaces.com/public/blog/27/clean-coders-guide-to-laravel-blog-post.png

What Is It?

Last week, I released a free PDF called “The Clean Coder’s Guide to Laravel”. It’s a 70-page PDF that covers 6 different topics of how to write clean code in your Laravel projects.

What Topics Does It Cover?

The guide contains the following 6 chapters:

  1. Cleaning Up Laravel Controllers – Learn how to clean up “bloated” controllers by extracting your authorisation, validation and business logic out into separate classes. This chapter shows how you can achieve this by using form requests and DTOs (data transfer objects).
  2. Quick & Easy Tips to Speed Up Your Application – Learn about several different tips that you can implement quickly to speed up your Laravel applications. This chapter discusses caching, optimising database queries, and reducing uneeded bloat from packages.
  3. How to Create Your Own Helper Functions – Learn how to create your own helper functions in Laravel and then register them using Composer.
  4. Using Interfaces to Write Better PHP Code – Learn about how you can use interfaces to decouple your code. This chapter discusses how you can use interfaces to make your code more testable, extendable and maintainable.
  5. Using the Strategy Pattern – Learn about how to use the strategy pattern to make your code more extendable and readable.
  6. Making Your Laravel Application More Testable – Learn about how to make your code more testable. This chapter also briefly discusses topics such as dependency injection, the Laravel service container and mocking.

How Do I Get My Copy?

This download is completely FREE! If you haven’t already downloaded it, you can simply drop your email address into the text box at the top or bottom of this post.

Laravel News Links

Need Large, Durable Tarps? You Can Buy Ex-Highway-Billboard Vinyls for Cheap

https://s3files.core77.com/blog/images/1204259_81_109615_P3ewkYvOr.jpg

At the local home centers, small tarps are cheap, but large tarps (30 feet or above in either dimension) get pretty pricey, up into the hundreds. If you need something large but don’t want to pay a lot, there are at least two companies selling repurposed heavy-duty tarps at affordable prices.

"Each of our vinyls was once posted high in the sky alongside a freeway," writes Billboard Vinyls. "Once their lives as advertising billboards are over, billboard tarpaulin can be re-purposed for a wide range of applications. These high quality vinyls are created to be waterproof, weather resistant, and are UV protected."

"Vinyl billboard tarps are perfect for a variety of applications inlcuding hay tarps, roof covers, boat and vehicle covers, construction, weed barriers, rv skirting, dividers, slip’n’slides, agriculture, wood pile covers, vapor barriers, drop cloths, ground covers, and anything else that needs waterproofing," writes competitor Billboard Tarps. "The 3-ply design is durable, tough and long-lasting with vinyl coating and UV protection on both sides. They are specifically designed to withstand harsh outdoor weather conditions."

You don’t have a choice of what the printed ad is, of course, and the reverse sides are either black or white. Also, the sizes don’t quite correspond with what the big-boxes sell; because these were billboards, they all have letterbox aspect ratios. But you can get a lot of durable material for little money. A 14′ x 48′ reused vinyl tarp at either site goes for $75, for instance.

I’ve looked through both sites, and at press time Billboard Vinyls had a much wider range of sizes in stock.

Core77

FieldGoal – Don’t build a whole backend just for one stupid form.

https://laravelnews.imgix.net/images/fieldgoal-featured-thumb.png?ixlib=php-3.3.1

FieldGoal provides form endpoints as a service, so your simple sites can stay simple. Build your form your way, point your form at FieldGoal, submissions are delivered to wherever you want.

The post FieldGoal – Don’t build a whole backend just for one stupid form. appeared first on Laravel News.


Join the Laravel Newsletter to get Laravel articles like this directly in your inbox.

Laravel News

Memes that made me laugh 69

https://1.bp.blogspot.com/-p9KbHaFdZ9o/YQYkd_3IdBI/AAAAAAAAtUw/P9g_NxfiQG4qyhL0O6hOfv-d-OvxQZVFgCPcBGAsYHg/

 

Gathered from here and there over the past week.  Click any image for a larger view.

(Verily, the mind doth boggle . . . because you know the only reason that warning label is there must be because somebody did that!)

More next week.

Peter

Bayou Renaissance Man

Lodata


Discoverable APIs

OData RESTful APIs are easy to consume. The OData metadata, a machine-readable description of the data model of the APIs,
enables the creation of powerful generic client proxies and tools.

The metadata is available as standard OpenAPI v3(opens new window)
which can be loaded into API collaboration platforms like Postman.

Discover insights

Easily connect to, model, and visualize your data in off-the-shelf business intelligence tools.

Microsoft Power BI(opens new window) supports OData as a first class data connector. Develop
reports locally, and then publish them to the PowerBI Service(opens new window)
where they’ll refresh themselves unattended, directly from your Lodata service.

Laravel News Links

Aimeos 2021.07 Release

https://laravelnews.s3.amazonaws.com/images/aimeos-2021.07.jpg

Aimeos, the open-source Laravel e-commerce app, just released v2021.07, which includes a new default theme, a new settings panel, and more.

New Theme

Here is a screenshot of the product list page of the new theme and it also fully supports right to left languages like Arabic as the previous theme did. Colors can be customized easily by using the defined CSS variables and you can adapt the theme totally to your needs.

Admin settings panel

There’s a new panel in the admin backend available for adding configuration options per site including images, shop and theme related settings with is available in “Configuration > Settings”. It’s especially useful in multi-site environments because it allows site admins (shop owners) to configure basic settings themselves and also to choose one of the available themes.

If you use Laravel and the Aimeos installation is configured as multi-site setup with custom domains, shop owners can also set their custom domain name in that panel.

Extended order management

In the new release, the detail view of the Aimeos order panel has been extended and contains warehouse management related fields now.

In addition to the already available status and “Delivery in” fields, it’s possible to handle partial deliveries in Aimeos now if e.g. only one product is available for some reasons but two has been ordered. By tracking which and how many products you’ve already sent to the customer, you get lean warehouse management functionality in case you don’t have a specialized system for that kind of task.

More…

To see everything in this release check out the official release announcement and if you are interested in trying it out you can find setup instructions on their Laravel landing page

Laravel News

Making Patterned Edge-Grain Plywood

https://theawesomer.com/photos/2021/07/making_edge_grained_plywood_t.jpg

Making Patterned Edge-Grain Plywood

Link

Thanks to its layered structure, plywood is a strong and versatile material that costs less than hardwood boards. Carpenters often work to hide exposed plywood edges, but Michael Alm came up with a better solution – he created his own custom plywood with beautiful and intricate edge patterns which you’d never want to hide.

The Awesomer

Robot Sets Up 100,000 Dominoes

http://img.youtube.com/vi/8HEfIJlcFbs/0.jpg

Robot Sets Up 100,000 Dominoes

Link

Setting up dominoes can be time-consuming and requires a steady hand. We’ve seen robots that can stand one domino at a time. Mark Rober and his engineering pals presents DOM – a custom-built robot that can set up 300 dominoes at a time. The robot arm and Hot Wheels track loading system is equally awesome.

The Awesomer