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

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

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

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

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