Hello hello, Usual Thursday newsletter - this time with 25+ links, a few of them from myself. But also quite a few long tutorials about Elasticsearch, Algolia, Dusk and other stuff. Have a good read!
Articles from Laravel Daily blogs
Laravel-related articles from all the web
Laravel 5.5 Pivot Casting
laravel-news.com
Currently, the $casts you set on a traditional model will work in both directions; any model that extends the Eloquent\Model class will look for a $casts property and convert the specified attributes to a data type when reading and writing. For example, from the documentation: In Laravel 5.
Faking Server-Side Rendering With Vue.js and Laravel
dzone.com
Server-side rendering (SSR) is a design concept for full-stack web apps that provides a rendered page to the browser. The idea is that the page can be shown while the user waits for scripts to be downloaded and run. If you aren't using a Node.
Laravel Envoyer and WordPress deployments
www.michiel-gerritsen.com
Deploying an application can be hard. The new code must be pulled in, permissions must be set, migrations must be run, etc. In some cases the whole website goes down while deploying a new version. And the more that must be done manual, the more can, and eventually, will go wrong.
Deep dive into how the Laravel Framework does pluralization
medium.com
Me and a colleague were working on creating some auto generator that would automate the process of writing Controllers and Tests for an application we were working on. One of the issues we encountered while working on the project was how to singularize database names to Controller names.
A guide for prioritizing application errors
laravel-news.com
Bug fixes and building new features are always in competition with each other, and it’s common for teams to have a hard time deciding where they should spend their time when it comes to prioritizing these two conflicting, but equally important tasks.
June-2017.php
jesperjarlskov.dk
Summer is on, June is over, and it’s time for yet another summary of a month passed. This month’s focus will be on PHP and Laravel, with an emphasis on performance, but many of the tricks are also useful if you work with other technologies. There’s also a gem about database encryption.
Optimize Image Automatically On The Fly In Laravel
ctf0.wordpress.com
by pure luck i stumbled upon a package call laravel-image-optimizer and a quick look to the usage it seems very easy to use public function store(Request $request, ImageOptimizer $imageOptimizer) { $picture = $request->file('picture'); // optimize $imageOptimizer->optimizeUploadedImag
Error messages Vs Validation messages — Laravel Blade
hackernoon.com
Whenever I redirect the user back with an error I know the page will be capable of showing the message properly at the top because of the base template. However, if you do this and then setup a Form Validation, you’ll see only the first error message on top of the page.
Why I use type declarations in PHP
medium.com
The ongoing discussions on Twitter and especially in the Laravel community got me thinking about my own code. Should I stop using type declarations? I did not know! It can be really confusing when it comes to topics like this. Every argument risks starting a new holy war in the comment section.
Stop creating your Laravel invoices manually
medium.com
Every Laravel E-commerce project requires processing payments and generating invoices. Yet for the best experience this flow needs to be tailored for each project. Sometimes a successful payment is confirmed with an invoice receipt. That’s the simple use case.
That's it for today. See you next week! Povilas Korop LaravelDaily Team
|