{
public function show($path)
{
- \Debugbar::disable();
- return "a";
+
$server = ServerFactory::create([
- 'response' => new LaravelResponseFactory($request),
+ 'response' => new LaravelResponseFactory(request()),
'source' => Storage::cloud()->getDriver(),
- 'cache' => $filesystem->getDriver(),
+ 'cache' => Storage::getDriver(),
'cache_path_prefix' => '.cache',
'base_url' => 'images',
'driver' => 'imagick',
]);
- $img = $server->makeImage($path, request()->all());
-
-// $file = Storage::get($img);
-// $type = Storage::mimeType($img);
-//
-// $response = Response::make($file, 200);
-//
-// $response->header("Content-Type", $type);
-
-// return $response;
-
- \Image::make($filesystem->get($img))->response();
+// return \Image::make(Storage::get($server->makeImage($path, request()->all())))->response();
return $server->getImageResponse($path, request()->all());
];
public $mediasParams = [
- 'cover' => [
- 'desktop' => [
+ 'image' => [
+ 'preview' => [
[
- 'name' => 'desktop',
+ 'name' => 'Miniature',
'ratio' => 16 / 9,
],
],
- 'mobile' => [
- [
- 'name' => 'mobile',
- 'ratio' => 1,
- ],
- ],
- 'flexible' => [
- [
- 'name' => 'free',
- 'ratio' => 0,
- ],
- [
- 'name' => 'landscape',
- 'ratio' => 16 / 9,
- ],
- [
- 'name' => 'portrait',
- 'ratio' => 3 / 5,
- ],
- ],
+
],
];
}
| in web browsers. You are free to adjust these settings as needed.
|
| To learn more: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
+ @todo SET THIS
|
*/
- 'paths' => ['api/*'],
+ 'paths' => ['/*'],
'allowed_methods' => ['*'],
'route' => '/publish',
'raw' => true
],
- 'pdfFiles' => [
- 'title' => 'PdfFiles',
- 'module' => true
- ],
'adCampaigns' => [
- 'title' => 'AdCampaigns',
+ 'title' => 'Campagnes publicitaires',
'module' => true
],
'events' => [
- 'title' => 'Events',
+ 'title' => 'Evénements',
'module' => true
],
'articles' => [
- 'title' => 'Articles',
- 'module' => true
+ 'title' => 'Articles',
+ 'module' => true
],
-
-
-
'featured' => [
'title' => 'Features',
'route' => 'admin.featured.homepage',
],
-
];
'media_library' => [
'image_service' => \A17\Twill\Services\MediaLibrary\Glide::class,
- ]
+ ],
+ 'block_editor' => [
+ 'block_single_layout' => 'site.layouts.block', // layout to use when rendering a single block in the editor
+ 'block_views_path' => 'site.blocks', // path where a view file per block type is stored
+ 'block_views_mappings' => [], // custom mapping of block types and views
+ 'block_preview_render_childs' => true, // indicates if childs should be rendered when using repeater in blocks
+ 'block_presenter_path' => null, // allow to set a custom presenter to a block model
+ // Indicates if blocks templates should be inlined in HTML.
+ // When setting to false, make sure to build Twill with your all your custom blocks using php artisan twill:build.
+ 'inline_blocks_templates' => true,
+ 'custom_vue_blocks_resource_path' => 'assets/js/blocks', // path to custom vue blocks in your resources directory
+ 'blocks' => [
+ 'text' => [
+ 'title' => 'Body text',
+ 'icon' => 'text',
+ 'component' => 'a17-block-wysiwyg',
+ ],
+ 'image' => [
+ 'title' => 'Image',
+ 'icon' => 'image',
+ 'component' => 'a17-block-image',
+ ],
+ ],
+ 'crops' => [
+ 'image' => [
+ 'desktop' => [
+ [
+ 'name' => 'desktop',
+ 'ratio' => 16 / 9,
+ 'minValues' => [
+ 'width' => 100,
+ 'height' => 100,
+ ],
+ ],
+ ],
+ 'tablet' => [
+ [
+ 'name' => 'tablet',
+ 'ratio' => 4 / 3,
+ 'minValues' => [
+ 'width' => 100,
+ 'height' => 100,
+ ],
+ ],
+ ],
+ 'mobile' => [
+ [
+ 'name' => 'mobile',
+ 'ratio' => 1,
+ 'minValues' => [
+ 'width' => 100,
+ 'height' => 100,
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'repeaters' => [],
+ ],
];
// your generated model and form include a description field, to get you started, but feel free to get rid of it if you don't need it
$table->text('description')->nullable();
- $table->dateTime('start_date');
+ $table->dateTime('start_date')->nullable();
$table->dateTime('end_date')->nullable();
$table->string('organizer')->nullable();
'label' => 'Description',
'maxlength' => 400
])
- @formField('block_editor', [
- 'blocks' => ['title', 'quote', 'text', 'image', 'grid', 'test', 'publications', 'news']
- ])
+ @formField('block_editor')
@stop
--- /dev/null
+{!! $block->input('html') !!}
--- /dev/null
+@extends('layouts.app', ['hideNav' => true])
+
+@section('content')
+ @yield('content')
+@endsection
+