1. Go to this page and download the library: Download moonshine/tinymce library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
moonshine / tinymce example snippets
use MoonShine\TinyMce\Fields\TinyMce;
TinyMce::make('Description')
use Illuminate\Support\Facades\Route;
use UniSharp\LaravelFilemanager\Lfm;
Route::prefix('laravel-filemanager')->group(function () {
Lfm::routes();
});
public function boot()
{
// ...
$this->routes(function () {
// ...
Route::middleware('moonshine')
->namespace($this->namespace)
->group(base_path('routes/moonshine.php'));
});
}
use MoonShine\Laravel\Http\Middleware\Authenticate;
// ...
public function boot()
{
// ...
$this->routes(function () {
// ...
Route::middleware(['moonshine', Authenticate::class])
->namespace($this->namespace)
->group(base_path('routes/moonshine.php'));
});
}