• 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

How can I get a div content in php

How to set a domain name with php artisan serve

WordPress + Nginx on non-standard port behind AWS ELB results in broken links

Laravel Livewire: jQuery not working in child component loaded via @if statement

backup files to google drive using PHP

No definition found for function in vendor vscode

php: command not found Command PhaseScriptExecution failed with a nonzero exit code

How can i hide dt if dd got empty value

Laravel SQL query midnight time not showing

How to pass security cloudflare server with php curl

file_put_content...fail to open stream:Permission denied in Laravel 5

curl returning 301 error after migrating to https

PHP Fatal error: Class not found - PHPUnit

Laravel implode array items to new lines

PHP Deprecated issue when running artisan command

About Contact Privacy policy Terms and conditions