Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 278 Bytes

readme.md

File metadata and controls

23 lines (14 loc) · 278 Bytes

Laravel Wordpress wpautop Trait

Usage

Step 1: Copy WpTrait.php in your /app

Step 2: Use Trait

class Mymodel extends Model
{
	use WpTrait;    
}

Step 3: Use wpautop() in Laravel Blade View

	{!! $mymodel->wpautop($mymodel->contents)  !!}