Check if string contains substring in PHP

Get the length of a string in PHP

Get the last element of an array in PHP

4 ways to clean up your Laravel routes files