Laravel Tinker query expression without quotes

Laravel put some quotes in your where you need to use DB::raw

Alternatively you can use whereRaw.

As you can see this is a command in Tinker but you can use in your php code same version.

PhpOffice\PhpSpreadsheet\Style\Conditional How to create a condition and format cells according a rule

 

How to move into lines using Vim, how to show number lines on the side of Vim


We see how to go to the end of file, just press CTRL + End on the keyboard.
To go at first line of file press CTRL + Home.
To go a specific line press number of life followed by G.

Laravel using Orm Model – How to use Tinker in Laravel

Hi all using Laravel probably you cannot miss the opportunity to use this wonderful tool called tinker.

To use tinker is really simple task.

Just type in your terminal:

php artisan tinker

 

 

BuddyPress if not showing the avatar

BuddyPress is the best plugin to manage communities in WordPress.
If happens that you don’t see the avatar, put in your functions.php theme:

This i discovered in

function bp_core_fetch_avatar( $args = ” ) {
$bp = buddypress();

It appears logic that this COSTANT makes to appear or disappear the avatars for users.

How to import php file acf

The new acf plugin of Wp manages only json files.

The old version managed php files.

Let us see this plugin able to import php acf files.

You can find it here: https://github.com/BeAPI/ACF-PHP-Recovery

It is a php file put in your plugin directory, and WordPress will recognize it.