• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Laravel 5: Is there a non-case sensitive way to sort a collection by an attribute?

phplaravelsortingeloquent


PHP Snippet 1:

$collection->sort(function($a, $b){
    return strtolower($a) <=> strtolower($b);
});

Related Snippets

Error when uploading certain .png files "Interlace handling should be turned on when using png_read_image"

How to convert the int value to inch in PHP [closed]

Unable to run composer install

Laravel relationship belongsToMany with composite primary keys

disable two buttons after clicking another button

Normalize DateInterval in PHP

PHP my timezone is no setting up in PHP.ini File in xampp

php code to send checkbox form results to email

(Cache::lock()) -> get() -- Under what conditions does it return false?

How to install php_imagick on wamp64

How do I call Validator from a namespace with an already existing Validator class

php retrieve specific data onclick from database in a list format

Show Custom Data in Woocommerce Order Details Admin Area

Laravel You requested 1 items, but there are only 0 items available

Split comma separated value from table column into rows using mysql?

About Contact Privacy policy Terms and conditions