Open in app

Sign In

Write

Sign In

Will Bowman
Will Bowman

287 Followers

Home

About

Published in asked.io

·Apr 9, 2018

A Laravel(ish) Optional helper in Javascript

My attempt at creating an optional helper. @lessworkjs/optional Optionally load object parameterswww.npmjs.com Laravels optional helper can be pretty useful. With its new optional closure you can do even more. I wanted something similar in javascript so I wrote this based on my Laravel(ish) resource/transformer. You can also provide a callback that will be called if the option exists.

Laravel

1 min read

A Laravel(ish) Optional helper in Javascript
A Laravel(ish) Optional helper in Javascript
Laravel

1 min read


Published in asked.io

·Apr 1, 2018

A Laravel(ish) Resource/Transformer in javascript.

My basic attempt at javascript data transformation, resources.js — We‘ve gone serverless at work and we’re using my favorite, nodejs! That means a lot of javascript. I’ve been using callbacks to transform my results but I’ve become accustomed to Fractal and now Laravels own Eloquent Resources. …

Java Script

2 min read

A Laravel(ish) Resource/Transformer in javascript.
A Laravel(ish) Resource/Transformer in javascript.
Java Script

2 min read


Published in asked.io

·Feb 21, 2018

Bookshelf js Simple Pagination

Similar to Laravels Eloquent feature. — UPDATE: I’ve made this plugin a package. npm install --save bookshelf-simplepaginate Use the simplePaginate plugin to call a fetchAll and return single pages with meta data. Intended for use with large datasets as pagination with counts can be slow. Example: bookshelf.plugin(require('./simplepaginate.plugin')); Model.where({ id: 1 }).simplePaginate({ page: 1 }).then(results => { // results.data // results.meta });

Java Script

1 min read

Java Script

1 min read


Published in asked.io

·Feb 16, 2018

Serverless custom authorizer issues on AWS.

If you google around you’ll find plenty of examples on how-to create a custom authorizer for serverless lambda events. I used this example when I was building mine: // Return an IAM policy document for the current endpoint const effect = isAllowed ? 'Allow' : 'Deny'…

AWS

2 min read

AWS

2 min read


Feb 13, 2018

How-to Install PHP 7.2.x, NGINX 1.10.x & Laravel 5.6

Step 1: Get a Server!

Nginx

3 min read

How-to Install PHP 7.2.x, NGINX 1.10.x & Laravel 5.6
How-to Install PHP 7.2.x, NGINX 1.10.x & Laravel 5.6
Nginx

3 min read


Published in asked.io

·Oct 1, 2017

Laravel Validaton: All Your Base Are Belong To Us

We all use Laravels Validation feature to ensure we have the required input and it matches some sort of rule. The available rules cover plenty of situations but they fail to cover one of the most important rules, input Sanitization. TL;DR A typical validator Laravels Auth system comes with a simple User model…

Laravel

4 min read

Laravel Validaton: All Your Base Are Belong To Us
Laravel Validaton: All Your Base Are Belong To Us
Laravel

4 min read


Published in asked.io

·Oct 1, 2017

Cascading SoftDeletes with Laravel 5

Laravels Soft Deleting allows you to retain deleted records in your database so they can be used or restored at a later point. …

Laravel

2 min read

Laravel

2 min read


Published in asked.io

·Oct 1, 2017

How-to Install PHP 7.0, NGINX 1.9.x & Laravel 5.x

UPDATE: There is a new version of this article. — Step 1: Get a Server!

Nginx

3 min read

How-to Install PHP 7.0, NGINX 1.9.x & Laravel 5.x
How-to Install PHP 7.0, NGINX 1.9.x & Laravel 5.x
Nginx

3 min read


Published in asked.io

·Oct 1, 2017

Creating a Ratchet Web Socket Server with Laravel

TL;DR: Check out the package. I’ve been building an api for the past couple months and we’ve come to the point where the frontend needs to do some status checks. Status checks currently ping the crap out of the current api and are pretty darn slow. The solution for us…

Laravel

2 min read

Creating a Ratchet Web Socket Server with Laravel
Creating a Ratchet Web Socket Server with Laravel
Laravel

2 min read


Oct 1, 2017

Creating a Ratchet Web Socket Server with Laravel

TL;DR: Check out the package. I’ve been building an api for the past couple months and we’ve come to the point where the frontend needs to do some status checks. Status checks currently ping the crap out of the current api and are pretty darn slow. The solution for us…

Laravel

2 min read

Creating a Ratchet Web Socket Server with Laravel
Creating a Ratchet Web Socket Server with Laravel
Laravel

2 min read

Will Bowman

Will Bowman

287 Followers

Web Developer Since 1998

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech