I hereby claim:
- I am gjrdiesel on github.
- I am gjrdiesel (https://keybase.io/gjrdiesel) on keybase.
- I have a public key ASAGfDS7Bw9ef491tFS0uNbSzEjEUAW0zMWwLUrN2Tu5sgo
To claim this, I am signing this object:
<?php | |
class Car { | |
function __construct($title,$description,$image){ | |
$this->title = $title; | |
$this->description = $description; | |
$this->image = $image; | |
} | |
} |
FROM alpine:latest | |
RUN echo "http://dl-4.alpinelinux.org/alpine/edge/main" > /etc/apk/repositories | |
RUN echo "http://dl-4.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories | |
RUN apk add --update \ | |
curl \ | |
php7 \ | |
php7-opcache \ | |
php7-openssl \ |
Vue.component('name',{ | |
methods: { | |
post(){ | |
let data = Object.assign({},this.$data); | |
console.log(data); | |
} | |
} | |
}); |
<?php | |
class Handler extends ExceptionHandler | |
{ | |
... | |
public function render($request, Exception $e) | |
{ | |
// Render full exception details in debug mode | |
if(config('app.debug')) { |
import React from 'react'; | |
const ReactShallowRenderer = require('react-test-renderer/shallow'); | |
const renderer = new ReactShallowRenderer(); | |
import {LoginScreen} from "../LoginScreen"; | |
import {AsyncStorage} from 'react-native'; |
I hereby claim:
To claim this, I am signing this object:
testtesttest |
SSR is cool, it has a lot advantages from a laravel perspective. You can write a frontend using your favorite UI framework and still write phpunit tests for it. That alone is the coolest thing. No need to spin up a chrome instance and render the whole page, just let SSR do it and best of all we have the benefits of SSR (SEO and speed) with Laravel.
So what do we have todo in order to do that?
One thing that made it possible in Vue is just recently they patched vue to work with any renderer, and I believe react has had this for a while. This post will dive into this setup.
// Rough example of a blade macro; | |
// I think you actually need to use raw php in the return not blade | |
// check the docs @ | |
function boot(){ | |
Blade::directive('select_condition',function($name){ | |
return '<select name="'.$name.'" id="selectize11"> | |
@foreach(range(0,10) as $n) | |
<option @if(old(\''.$name.'\') == $n) {{ 'selected' }} @endif>$n</option> | |
@endforeach | |
</select>'; |
{ | |
"name": "roots/bedrock", | |
"type": "project", | |
"license": "MIT", | |
"description": "WordPress boilerplate with modern development tools, easier configuration, and an improved folder structure", | |
"homepage": "https://roots.io/bedrock/", | |
"authors": [ | |
{ | |
"name": "Scott Walkinshaw", | |
"email": "[email protected]", |