How to set value in for-loop on Laravel blade Basically {{ $last= date('Y')-120 }} in this part you are showing the value but you need to…
How to use PHP count() Function The php count() function returns the number of elements in an array. Syntax count(array, mode)…
Cross-browser method to fit a child div to its parent’s width The solution to fit child div to it’s parent is to simply not declare width: 100%.…
How to add a new column to the existing table of Laravel in a migration To create a migration to add a new column, you may use the migrate:make command…
How to use Soft Deleted Models As noted above, soft deleted models will automatically be excluded from query results. However, you…
How to use Laravel Eloquent “WHERE NOT IN” Query Builder: Eloquent: select can be replaced with an array in get. SO is faster than searching…
Convert number to month name in PHP The recommended way to do this: Nowadays, you should really be using DateTime objects for…
How to Get Month Name from Date in Laravel? Use below codes for get month name from date. This code can use in Laravel…
How to use PHP number_format() function Below code can use for that Outputs will be Syntax number_format(number,decimals,decimalpoint,separator)
How To Format Laravel Blade file in Visual Studio Code First go to “Visual Studio Code” Settings and search for the option “files.associations” If that option is…