Laravel Custom Validation Rule: Max Word Count
Laravel provides a lot of validation rules, but what if you need to add your own? We’ll show you how to do it, with the rule “max words count is 500”, and we will also make this 500 number as a parameter.
Laravel: Roles/Permissions for Individual Fields
Laravel has a great roles/permissions system out-of-the-box, based on Gates and Policies, and it’s usually used to access the whole menu item or some action, like create/delete. But what if you need to restrict a certain DB COLUMN from being edited? Like, for example, “published” checkbox for articles, that can be ticked only by Administrators, and not by Authors. Let’s see how to do it.
Ordering Datatables Column With “non-standard” Date Format like mm/dd/yyyy
Datatables.net is a really good script to manipulate table data, with ability to order by any column by clicking on its header. But the problem is that it’s ordering by string value of that column, what if we need to order by different value of that column? Typical example is about date formats.
How to Customize View/Edit/Delete Buttons Column in AJAX Datatables
One of the often customization questions from our customers is about action buttons on Datatables. For every table, we generate three actions – View, Edit and Delete. How to customize them?
QuickAdminPanel 2019: New Version is Ready for you
Finally this day has come – after multiple rounds of alpha-testing with existing customers, we can finally announce that you can register for a completely new version of QuickAdminPanel.
Phone Field Validation with Laravel-Phone Package
In our QuickAdminPanel generator, we don’t have specific “phone” field type, but you can put phone number validation easily to any “text” field type, this tutorial will show you how.
Laravel Forms: Select Dependent Dropdowns with jQuery and AJAX
Imagine you have a form where dropdowns depend on each other. Common example is a city select, where you need to choose a country first, and then cities list is refreshed. How to do it in Laravel?
Laravel ColorPicker with Bootstrap and jQuery
Laravel doesn’t have color picker field as a default option, but we can build one easily, please follow this tutorial.
Add Tags to Articles: Laravel Many-to-Many Relationships with Select2
This article is a simple example of belongsToMany() relationships in Laravel, with managing the data in CRUD form and table, using Bootstrap framework and Select2 library.
Laravel: How to Make Menu Item Active by URL/Route
Probably one of the most common operation on every website is to assign “active” CSS class to the menu item which is currently opened. There are quite a few ways to detect that status, let’s review them. We assume that the code will be based…