racl101 + json   104

Build a modern web application with Laravel and Vue
Really good tutorial demonstrating how to build a single page application (SPA) with a backend powered by Laravel with Passport and a front-end powered by VueJS. As of February 2019, it is 5 parts.

I'm using this tutorial as the basis for Onboard V3 Prototype app.
blog  tutorial  laravel  laravel5  spa  app  single  page  application  web  passport  json  token  jwt  api  vue  vuejs  vue2  javascript  framework 
february 2019 by racl101
Solving the Error: route [login] not defined in laravel 5.5
This is important if building an api with Passport on Laravel5.

Also, if using a roles and permissions library such as the Spatie Laravel Permissions library consider doing something like this:

public function render($request, Exception $exception)
if($exception instanceof \Spatie\Permission\Exceptions\UnauthorizedException && $request->expectsJson()) {
return response()->json([
'status' => $exception->getStatusCode(),
'success' => false,
'error' => [
'code' => null,
'message' => 'User does not have the right permissions'
], $exception->getStatusCode());

return parent::render($request, $exception);
medium  blog  howto  example  fix  troubleshoot  route  not  defined  error  response  json  javascript  exception  handler  401 
february 2019 by racl101
Home - jwt-auth
Even though Laravel 5.5 has introduced its Passport feature this library might still have some use for its ability to support multiple Laravel authentication guards.
jwt-auth  laravel  library  json  web  token  authentication  php  project  lumen  documentation  guide  reference  tutorial  quickstart 
february 2019 by racl101
javascript - SyntaxError: Unexpected token o in JSON at position 1 - Stack Overflow
Encountered this issue with Vue and Vuex store library when setting some getters and the initial value of the state object property is an object.
stackoverflow  howto  example  troubleshoot  fix  json  class  parse  method  empty  object  guide  reference  javascript 
february 2019 by racl101
Fractal - Output complex, flexible, AJAX/RESTful data structures
Really good, standalone library for API resource (data) transformation that is independent from PHP frameworks (like Laravel).
php  theleague  fractal  library  api  RESTful  standalone  github  transformer  resource  data  documentation  guide  reference  howto  example  tutorial  backend  json 
february 2019 by racl101
Using aws-cli --query Option To Simplify Output - Alestic.com
Nice little tutorial demonstrating how to capture AWS command output from Bash Shell scripts into variables to use in scripts.

e.g. Get the status of an RDS Instance e.g. started, stopped, starting, stopping, modifying that sort of thing. You can do it like this:

rds_instance_status=$(aws --profile my-profile rds describe-db-instances --db-instance-identifier helis-staging-rds-instance-1 --query 'DBInstances[0].DBInstanceStatus')

Note that the query option drills down the output, which, by default is returned as JSON text.
blog  tutorial  howto  example  guide  reference  capture  aws  cli  commandline  output  bash  shell  script  query  json  totry  tolearn  tounderstand 
july 2018 by racl101
PHP: addslashes - Manual
Use this function to escape JSON endoded data that might contain backslashes, single and double quotes (such as URLs). And then use JavaScript's JSON.parse to convert it to an array or object.

var server_data = '<?php echo addslashes(json_encode($data)); ?>';
var data_object = JSON.parse(server_data);
php  manual  guide  reference  documentation  addslashes  function  escape  javascript  json  json_encode  parse 
june 2018 by racl101
Build a React App With a Laravel RESTful Back End: Part 1, Laravel 5.5 API
Decent tutorial introducing ReactJS to Laravel 5.5 users but it is definitely not in-depth nor does it have any info on building Single Page Application (SPA) nor any info on routing nor authentication with ReactJS.
blog  tutorial  tuts  howto  reactjs  react  app  laravel  laravel5.5  ajax  json  example  guide  reference  JavaScript 
january 2018 by racl101
JMESPath Specification — JMESPath
Important for working with Amazon AWS on the command line.
jmespath  json  javascript  tutorial  example  howto  amazon  aws  cli  query  language  guide  reference  documentation 
december 2017 by racl101
jQuery formBuilder | Drag & Drop Form Creation
Took ideas from this for Onboard V2. Might need to implement it fully later on.
drag  drop  form  builder  jquery  plugin  editor  json  javascript  library 
october 2017 by racl101
json - json_contains in MySQL 5.7.8 - Stack Overflow
Really useful bugfix for when you use JSON_CONTAINS clause and looking for a string value.
stackoverflow  howto  mysql  json_contains  json  database  string  troubleshoot  fix  example  guide  Reference 
september 2017 by racl101
How to use Composer packages in Wordpress - Creo
This kind of worked for me but I had to use the vendor-dir option to make it work me.
Blog  Tutorial  Howto  Composer  WordPress  config  Package  json  example  integration 
october 2015 by racl101
JSON Web Token Tutorial: Example using AngularJS & Laravel | Toptal
This might seem like an easier version of that tutorial I saw earlier about Laravel and Angular integration with JWT. Seems to use less angular addons.
Reference  example  Blog  Guide  json  jwt  Laravel  Angularjs  Howto  Tutorial 
august 2015 by racl101
jquery save json data object in cookie - Stack Overflow
Stringify - converts JavaScript objects to JSON notation (string)
Parse - converts JSON notation back to JavaScript objects
example  cookie  String  Howto  parse  Reference  json  Guide  Stringify  JavaScript  Stackoverflow 
august 2015 by racl101
Returning JSON from a PHP Script - Stack Overflow
Shows to return a JSON respons using just regular PHP, no frameworks.
Stackoverflow  HTTP  Raw  example  PHP  Howto  json  request 
may 2015 by racl101
WordPress › JSON API « WordPress Plugins
JSON API allows you to retrieve and manipulate WordPress content using HTTP requests. There are three main goals: Provide a simple, consistent external interface Create a stable, understandable internal implementation Enable new types of extensions for WordPress.
WordPress  content  json  Plugins  totry  APi 
may 2015 by racl101
jquery - Testing a static jsonp response - Stack Overflow
Shows the correct way of return a JSONP response. Useful for the jQuery Fullcalendar plugin.
stackoverflow  ajax  JQuery  jsonp  json  response  howto  fullcalendar  PHP  Server 
february 2014 by racl101
« earlier      
per page:    204080120160

related tags

--query  ACCEpt  accessor  actionscript  additional  address  addslashes  ajax  amazon  Angularjs  api  app  application  array  asset  attribute  authentication  auto-populating  aws  backbonejs  backend  base64  bash  beginner  best  bestpractices  blob  blog  boolean  builder  capture  cast  character  cheatsheet  check  checker  class  cli  code  collation  column  comma  command  commandline  comparison  composer  config  console  content  contenttype  control  convert  cookie  cookies  css  csv  cURL  custom  data  database  date  debugger  debugging  decode  decoder  decoding  default  defined  dependencies  developer  development  dict  dictionary  differences  docs  documentation  drag  drop  editor  ee2  eloquent  email  empty  encode  encoder  encoding  error  escape  event  example  examples  exception  exmplae  explanation  export  expressionengine  fake  feed  field  fields  file  filter  filters  fix  fonts  force  form  format  formatting  forms  forum  fractal  framework  fullcalendar  function  functions  github  Google  guide  handler  header  headers  highlight  hooks  howto  http  hudson  images  import  importer  index  install  integration  issue  javascript  JAvscript  jmespath  jq  jquery  js  json  json.tool  jsonify  jsonp  jsonwebtokens  json_contains  json_decode  json_encode  jwt  jwt-auth  jwts  language  laracasts  laravel  laravel5  laravel5.5  library  line  lint  linter  linux  list  local  lumen  Mac  macosx  MAke  management  manager  manual  MDn  medium  method  mimetype  model  module  Mozilla  msyql  mtool.json  multiple  multiple_select_boxes  mustachio  mysql  mysql5.7  naming  node  nodejs  not  npm  object  Obtain  official  opensource  orm  output  package  package.json  page  pagination  parse  passport  payload  performance  php  placeholder  plugin  Plugins  POST  postmark  postmarkapp  practices  pretty  prettyprint  print  printing  processor  programming  project  python  python2.7  query  quickstart  Raw  react  reactjs  reference  remote  request  resource  response  responses  rest  RESTful  return  route  save  script  search  select  select_menu  send  separated  serialization  serialized  Server  service  shell  shopify  single  solspace  sources  spa  spreadsheet  sql  stackexchange  stackoverflow  standalone  storage  store  string  Stringify  styles  support  syntax  template  Terminal  testing  text  theleague  time  titan  to  toarray  token  tolearn  tool  toread  totry  tounderstand  transformer  troubleshoot  troubleshooting  tutorial  tutorials  tuts  twitter  Tymon  type  types  unicode  unix  Unix.stackexchange  unjsonify  validator  values  View  vue  vue2  vuejs  w3schols  w3schools  wants  web  web2.0  webdev  webhooks  webpack  where  wildbit  wordpress  workaround  wp_localize_script  Xhr  xml 

Copy this bookmark: