Hello hello,
Another Thursday, which brought us quite a lot of new articles from community who are competing for $1,500 from Taylor himself! Of course, not all entries are worth mentioning here, so I've picked only the best ones so far. We will probably have more entries in next week issue.
Also, finally written something on LaravelDaily blog and released a new demo-project with Vue Generator (see below). I finally can "breathe" and create my own content, feels good to be back.
Enjoy the links!
Resources from LaravelDaily Team
How to (Easily) Create a Custom Validation Rule
laraveldaily.com
For some reason, only now I’ve found out about a feature that was introduced in Laravel 5.5 – artisan command that makes your validation rule, similar to Request classes. Let’s see it in action. As I said, it’s similar to Requests classes for validation. We fill in the methods.
LaravelDaily/Classimax-Directory-Laravel-Vue
github.com
Simple Vue.js+Laravel adminpanel to manage directory of companies and their categories/cities. It is a Vue version of the project that we had done before in Laravel-only way: directory based on Classimax Bootstrap theme. It is a demo project for demonstrating what can be generated with Vue.
Articles from Laravel community
Introduction to Laravel… for an Eight-Year-Old
medium.com
Laravel is a popular framework that thousands of developers use to build amazing web sites and web applications, but it can also be a great tool to use to introduce kids (and beginners in general) to programming and web development.
Masking IDs in URLs using hashids in Laravel
sampo.co.uk
By default a URL generated by a Laravel app will contain the ID of a model like this https://app.name/users/1 where 1 is the ID of the item. Often this is absolutely fine, but sometimes you might want to hide it (or obfuscate it). The two main use cases for this I've come across so far are:
Integrating Laravel with DataTables
medium.com
In this tutorial I’m going to show you how to integrate the whole power of Eloquent ORM and with datatables to make a nice, configurable tables. This tutorial will be too useful while creating dashboards. In this tutorial, I’m going to use datatables to list posts.
How Laravel Collections lead to Zen Code
medium.com
Laravel offers some truly wonderful components that make it, in my opinion, the best web framework currently on offer. Out of the box, we have views, authentication, sessions, caching, Eloquent, queues, data validation and so much more. We even get development tools (Valet & Homestead).
Get the latest record on the group in the most Eloquent way ?
medium.com
Ok, so we need the latest record of each group from the database. Or we can say we want the latest messages of each user from the messages table. So to solve all these problems we need to come up with a query which uses Eloquent query builder and then convert it to raw SQL statement.
Laravel Vue Chat Application Tutorial
appdividend.com
In this tutorial, we will build a Real-time Chat application using Laravel 5.6 and Vue.js. For this tutorial, we use Pusher real-time messaging service and at the client side, we use Laravel Echo and Pusher.js library to update our UI in real-time.
victorlap/laravel-approvable
github.com
Easily add an approval process to any laravel model. Laravel Approvable is a package which helps when you have certain models in your application that should be editable by users, but the fields that they edit need to be approved first.
How to create custom 404 page in Laravel
tutsforweb.com
In this tutorial, we will see how to create custom 404 page in Laravel. PHP Exceptions are similar to the exceptions in other programming languages. Exceptions are thrown when an error or an unknown event occurs. All PHP Exceptions extends the base Exception class.
webribs/laravel-best-practices
github.com
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together. It's not a Laravel adaptation of SOLID principles, patterns etc. Here you'll find the best practices which are usually ignored in real life Laravel projects.
That's it for this week, see you next Thursday! Povilas Korop LaravelDaily Team
|