Trix Editor for Laravel

Since Trix is CSS and JavaScript, you can already integrate with Laravel, but laravel-trix is a package that makes it easier to set it up.

First, install the Composer package:

composer require te7a-houdini/laravel-trix
php artisan vendor:publish --provider="Te7aHoudini\LaravelTrix\LaravelTrixServiceProvider"
php artisan migrate
After you install the package, it looks like you have an Article Model, and on it you want the Trix editor to create and update the forms. All you have to do is use Blade :
html>head> @trixassets  head>body>formmethod="POST"action="route('article.store')"> @csrf @trix(\App\Article::class, 'content')  inputtype="submit">form>body>html>
The package includes many more features, such as using uploaded files, creating for existing models, and advanced configuration. Learn more about this package Can find it on Github and read the full user manual.

  Quote

KARABAY A, 2019 . Trix Editor for Laravel,

https://www.karabayyazilim.com/blog/php/framework/laravel/laravel-icin-trix-editor-2019-11-26-181908

(Accessed November 26, 2019).


  Share this post

Comments (0)

Comment

Subscribe
Sign up for the email newsletter to be the first to know about my blog posts