PHPackages                             latevaweb/laravel-tinymce-upload-media - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. latevaweb/laravel-tinymce-upload-media

ActiveLibrary[Image &amp; Media](/categories/media)

latevaweb/laravel-tinymce-upload-media
======================================

13[2 PRs](https://github.com/latevaweb/laravel-tinymce-upload-media/pulls)PHP

Since Jan 22Pushed 3y ago1 watchersCompare

[ Source](https://github.com/latevaweb/laravel-tinymce-upload-media)[ Packagist](https://packagist.org/packages/latevaweb/laravel-tinymce-upload-media)[ RSS](/packages/latevaweb-laravel-tinymce-upload-media/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (3)Used By (0)

Laravel TinyMCE Upload Media
============================

[](#laravel-tinymce-upload-media)

Upload media to Laravel from tinyMCE jQuery plugin

[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)[![Laravel 6.x](https://camo.githubusercontent.com/8333c1fae9a342ecc33e082cf504539043e98f24028a9df0513db89db6a82d1b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d362e782d6f72616e67652e737667)](http://laravel.com)

In the view that contain setup for TinyMCE, you need to include the upload view, add this line at the bottom,

`@include('tinymce::upload_form')`

This form is hidden from your view, no-one will see it because it is display: none.

Next step is to add this config to the tinymce object,

```
tinymce.init({
    // .. your config here
    relative_urls: false,
    file_browser_callback: function(field_name, url, type) {
        // trigger file upload form
        if (type == 'image') $('#formUpload input').click();
    }
});
```

Now you should be able to upload image directly to the editor while writing content.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require latevaweb/laravel-tinymce-upload-media
```

If you want to change the hidden view to manage the upload:

```
php artisan vendor:publish --provider="LaTevaWeb\TinyMCE\TinyMCEServiceProvider" --tag=view
```

If you want to change the service that manages the file upload or any other configuration

```
php artisan vendor:publish --provider="LaTevaWeb\TinyMCE\TinyMCEServiceProvider" --tag=config
```

Example
-------

[](#example)

```
>

            tinymce.init({
                selector: 'textarea',
                relative_urls: false,
                file_browser_callback: function (field_name, url, type) {
                    // trigger file upload form
                    if (type == 'image') $('#formUpload input').click();
                },
                toolbar: [ "code" ],
                menubar: true,
                plugins: [
                    "image link code"
                ]
            });

        @include('tinymce::upload_form')

```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/51783643?v=4)[La Teva Web](/maintainers/LaTevaWeb)[@latevaweb](https://github.com/latevaweb)

---

Tags

laravelmediatinymceupload

### Embed Badge

![Health badge](/badges/latevaweb-laravel-tinymce-upload-media/health.svg)

```
[![Health](https://phpackages.com/badges/latevaweb-laravel-tinymce-upload-media/health.svg)](https://phpackages.com/packages/latevaweb-laravel-tinymce-upload-media)
```

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

135911.1k3](/packages/goat1000-svggraph)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

16653.6k2](/packages/gravatarphp-gravatar)[rsoury/wp-imgix

Rewrites WordPress image URLs to use ImgIX

167.2k](/packages/rsoury-wp-imgix)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
