PHP code example of kahusoftware / filament-ckeditor-field
1. Go to this page and download the library: Download kahusoftware/filament-ckeditor-field 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/ */
kahusoftware / filament-ckeditor-field example snippets
use Kahusoftware\FilamentCkeditorField\CKEditor;
CKEditor::make('content')
->uploadUrl(null)
return [
/**
* Image upload enabled
*/
'upload_enabled' => true,
/**
* Image URL to upload to if one is not specified on the form field's ->uploadUrl() method
*/
'upload_url' => null,
];
use Illuminate\Http\Request;
public function uploadImage(Request $request)
{
$request->validate([
'upload' => 'n response()->json([
'url' => $url
]);
}