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
const tailwindcss = require('tailwindcss') | |
const autoprefixer = require('autoprefixer') | |
const purgecss = require('@fullhuman/postcss-purgecss') | |
module.exports = { | |
plugins: [ | |
tailwindcss('./tailwind.js'), | |
autoprefixer({ | |
add: true, | |
grid: true |
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 class="progress"> | |
@foreach ($steps as $step) | |
<div class="{{ $step[0] }} | |
{{ $loop->iteration > $currentStep ? '' : 'progress__step--active' }} | |
{{ $loop->iteration >= $currentStep ? '' : 'progress__step--done' }}"> | |
{{ $step[1] }} | |
</div> | |
@endforeach | |
</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
/** | |
* Mass (bulk) insert or update on duplicate for Laravel 4/5 | |
* | |
* insertOrUpdate([ | |
* ['id'=>1,'value'=>10], | |
* ['id'=>2,'value'=>60] | |
* ]); | |
* | |
* | |
* @param array $rows |
September 25, 2014
- HTTP Request -> Received by Controller.
- Controller -> Serializes request data into command.
- Controller -> Passes Command off to Command Bus.
- CommandBus -> Resolves Command to Handler.
- Command Handler -> Receives request and resolves any dependencies, fires any command events to modify the command data before and after handler action, then passes it off to a service layer.
- Service -> Receives input and handles creation, retreiving and updating entities. It builds up the entities and related entities and hands it off to the repository for persisting and deleting.