Skip to content

Instantly share code, notes, and snippets.

@jongravois
Created April 29, 2020 20:40
Show Gist options
  • Save jongravois/aff4f647b19a602af4bf13a90dda275e to your computer and use it in GitHub Desktop.
Save jongravois/aff4f647b19a602af4bf13a90dda275e to your computer and use it in GitHub Desktop.
<?php
namespace App\Http\Livewire\Portals\Consignments;
use App\Models\ConsignmentBand;
use Livewire\Component;
class ConsignmentBands extends Component
{
public $newLow;
public $newHigh;
public $newPercent;
public $consignmentID;
public $bands;
public function mount($id)
{
$this->consignmentID = $id;
$this->bands = ConsignmentBand::whereConsignmentId($id)
->orderBy('low')
->get()
->toArray();
} // end function
public function render()
{
return view('livewire.portals.consignments.consignment-bands');
} // end function
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment