Skip to content
forked from akat03/wptrait

Use Wordpress wpautop() function in Laravel Model

License

Notifications You must be signed in to change notification settings

nick322/wptrait

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 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

  • PHP 100.0%