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 handle() | |
{ | |
$this->storeReport->update(['ingestion_started_at' => now()->toDateTimeString()]); | |
Log::info("Downloading and processing {$this->storeReport->title}"); | |
foreach($this->storeReport->documents as $document) { | |
$downloader = new DownloadFromDisk($document->file_name, $document->disk); | |
$downloader->uniquely()->download(); |
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
<template> | |
<div> | |
<transition name="slide"> | |
<div | |
class="flex-1 bg-white text-oa-purple border-2 border-oa-medium-gray rounded-lg" | |
:class="{'border-none rounded-lg' : open }" | |
> | |
<div :class="{'bg-oa-purple rounded-b-none text-white rounded-lg' : open }"> | |
<slot name="heading" /> | |
</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
I'm using Jetstream and Livewire 2 | |
Blade: | |
<x-app-layout> | |
<x-slot name="header"> | |
<div class="flex justify-between"> | |
<div> | |
<h2 class="font-semibold text-xl text-gray-800 leading-tight"> | |
Tasks |
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
HTML/Blade | |
This is within a foreach loop | |
<input | |
type="checkbox" | |
class="form-checkbox border-cool-gray-300 block transition duration-150 ease-in-out sm:text-sm sm:leading-5" | |
wire:model="taskComplete({{ $task->id }})" | |
/> | |
Then the livewire component: | |
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
<template> | |
<div> | |
<div class="content-narrow"> | |
<div class="bg-body-light mt-5 shadow-sm"> | |
<div class="content content-full"> | |
<div class="d-flex flex-column flex-sm-row justify-content-sm-between align-items-center"> | |
<h1 class="flex-sm-fill h3 my-2"> | |
<small class="d-block d-sm-inline-block mt-2 mt-sm-0 font-size-base font-w400 text-muted"> | |
<div class="font-size-sm font-w600 text-uppercase text-dark mb-2">Type of review | |
</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
<x-layout> | |
<x-section> | |
<x-tabs active="First"> | |
<x-tab name="First"> | |
First content goes here. | |
</x-tab> | |
<x-tab name="Second"> | |
Second content goes here. | |
</x-tab> |
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\Charts; | |
use App\Support\Livewire\ChartComponentData; | |
use ConsoleTVs\Charts\Classes\Chartjs\Chart; | |
/** | |
* Class WanSpeedTestsChart | |
* |
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
I have a Livewire component: | |
class AddTask extends Component | |
{ | |
public $name; | |
public $due_date; | |
public $assigned_to; | |
public $calendar; | |
public $description; |
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
//Form within catergories.blade.php in livewire dir | |
<form wire:submit.prevent="add"> | |
<div> | |
<label for="email" class="block text-sm font-medium leading-5 text-gray-700"> | |
Email address | |
</label> | |
<div class="mt-1 rounded-md shadow-sm"> | |
<input wire:model="email" id="email" type="text" autofocus class="@error('email') border-red-500 @enderror appearance-none block w-full px-3 py-2 border border-gray-300 rounded-md placeholder-gray-400 focus:outline-none focus:shadow-outline-blue focus:border-blue-300 transition duration-150 ease-in-out sm:text-sm sm:leading-5" /> | |
</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
@section('content') | |
<h4>Address:</h4> | |
<div class="row"> | |
<div class="col-md-12"> | |
<div class="form-group"> | |
<label class="label-control" for="postcode">Search for address</label> | |
<input type="text" class="form-control" id="form-address" name="address"> | |
</div> | |
</div> |
NewerOlder