Skip to content
/ wptrait Public

Use Wordpress wpautop() function in Laravel Model

License

Notifications You must be signed in to change notification settings

akat03/wptrait

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)  !!}

About

Use Wordpress wpautop() function in Laravel Model

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages