Skip to main content
Edit in Answer
Source Link
Ajay Reddy
  • 3.9k
  • 2
  • 25
  • 38

You try the code.

    $images = [
      'target_id' => 1,
      'alt' => '',
      'title' => '',
      'width'=>1440,
      'height'=>557
    ];
    $paragraph = Paragraph::create([
                                     'type' => 'paragraph_type',
                                     'field_images' => $images
                                   ]);
    $paragraph->save();

You try the code.

$images = [
      'target_id' => 1,
      'alt' => '',
      'title' => '',
      'width'=>1440,
      'height'=>557
    ];
    $paragraph = Paragraph::create([
                                     'type' => 'paragraph_type',
                                     'field_images' => $images
                                   ]);
    $paragraph->save();

You try the code.

    $images = [
      'target_id' => 1,
      'alt' => '',
      'title' => '',
      'width'=>1440,
      'height'=>557
    ];
    $paragraph = Paragraph::create([
      'type' => 'paragraph_type',
      'field_images' => $images
    ]);
    $paragraph->save();
Post Undeleted by vinhdv
added 53 characters in body
Source Link
vinhdv
  • 1.4k
  • 8
  • 13

You try the code.

$images = [
      'target_id' => 1,
      'alt' => '',
      'title' => '',
      'width'=>1440,
      'height'=>557
    ];
    $paragraph = Paragraph::create([
                                     'type' => 'paragraph_type',
                                     'field_images' => $images
                                   ]);
    $paragraph->save();

You try the code.

$images = [
      'target_id' => 1,
      'alt' => '',
      'title' => '',
    ];
    $paragraph = Paragraph::create([
                                     'type' => 'paragraph_type',
                                     'field_images' => $images
                                   ]);
    $paragraph->save();

You try the code.

$images = [
      'target_id' => 1,
      'alt' => '',
      'title' => '',
      'width'=>1440,
      'height'=>557
    ];
    $paragraph = Paragraph::create([
                                     'type' => 'paragraph_type',
                                     'field_images' => $images
                                   ]);
    $paragraph->save();
Post Deleted by vinhdv
Source Link
vinhdv
  • 1.4k
  • 8
  • 13

You try the code.

$images = [
      'target_id' => 1,
      'alt' => '',
      'title' => '',
    ];
    $paragraph = Paragraph::create([
                                     'type' => 'paragraph_type',
                                     'field_images' => $images
                                   ]);
    $paragraph->save();