the idea is to make a livebuilder with livewire
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function saveImage() | |
{ | |
if ($this->image_url) { | |
$image = file_get_contents($this->image_url); | |
$imageName = Str::random(10).'.jpg'; | |
Storage::disk('local_files')->put('products/'.$imageName, $image, 'public'); | |
$this->product->image = $imageName; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div x-data="mySliderComponent"> | |
<div class="swiper-container"> | |
<div class="swiper-wrapper"> | |
<div class="swiper-slide"> | |
<img src="{{ asset('images/products/'.$image) }}" alt="product image" class="w-full h-full object-cover"> | |
</div> | |
</div> | |
// enable paginatiion \\ | |
{{-- | |
<div class="swiper-button-next"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
<IfModule mod_negotiation.c> | |
Options -MultiViews -Indexes | |
</IfModule> | |
<Files .htaccess> | |
order allow,deny | |
deny from all | |
</Files> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import imaplib | |
import email | |
import re | |
import os | |
import datetime | |
from reportlab.lib.pagesizes import letter | |
from reportlab.pdfgen import canvas | |
from argparse import ArgumentParser | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function doGet() { | |
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Data"); | |
var range = sheet.getDataRange(); | |
var values = range.getValues(); | |
var headers = values[0]; | |
var data = values.slice(1); | |
var json = {}; | |
for (var col = 0; col < headers.length; col++) { | |
var header = headers[col]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
namespace App\Http\Livewire; | |
use Livewire\Component; | |
use Illuminate\Contracts\View\View; | |
use Illuminate\Support\Facades\Gate; | |
use SimpleSoftwareIO\QrCode\Facades\QrCode; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Livewire; | |
use Livewire\Component; | |
class Quill extends Component | |
{ | |
public const EVENT_VALUE_UPDATED = 'quill_value_updated'; |
حسنًا ، هل يمكن للجميع سماعي على ما أعتقد حتى في الخلفية ، وهو أمر رائع
مرحبًا به لمطوري PHP لأولئك الذين لا يعرفونني ، اسمي Nuno مبتكر أدوات متعددة مفتوحة المصدر على نظام PHP الإيكولوجي مثل Pest Collision Larastan
والمزيد من مشروعي الأساسي إلى جانب العمل من أجل Laravel PHP إذا كنت لا تعرف ما هو إلى حد
كبير إطار اختبار PHP أنيق