It would be nice if we had a plugin that allows Laravel to play nice with Ember. Put simply I would like to create an easy way for Laravel to output JSON strings in a way that Ember likes.
return Model::find($id);
<?php | |
class Users_Controller extends Base_Controller { | |
public function action_index() { | |
$id = Input::get('id'); | |
if ($id) { | |
$user = DB::table('users')->where('id', $id)->first(); | |
@turquoise: #95A5A6; | |
@emerald: #2ECC71; | |
@peter-river: #3498DB; | |
@amethyst: #9B59B6; | |
@wet-asphalt: #34495E; | |
@green-sea: #16A085; | |
@nephritis: #27AE60; | |
@belize-hole: #2980B9; | |
@wisteria: #8E44AD; | |
@midnight-blue: #2C3E50; |
There's no shortage of good resources for learning laravel. So instead of the usual introductory tutorial were just gonna learn Laravel by building a project from scratch and that's gonna be a User Management System.
I don't know if my definition of a User Management System is correct but here's my idea of what's it's capable of doing:
<?php | |
// Use in the "Post-Receive URLs" section of your GitHub repo. | |
if ( $_POST['payload'] ) { | |
shell_exec( 'cd /srv/www/git-repo/ && git reset --hard HEAD && git pull' ); | |
} | |
?>hi |
angular.module('Prism', []). | |
directive('prism', [function() { | |
return { | |
restrict: 'A', | |
link: function ($scope, element, attrs) { | |
element.ready(function() { | |
Prism.highlightElement(element[0]); | |
}); | |
} | |
} |
Meteor.Router.add({ | |
'/inbound': function() { | |
post = this.request.body; | |
color = post.subject; | |
Colors.update({pos: 1},{ $set: { "name": color } } ); | |
return [200, "Success"] | |
} | |
}); |
Tags: Sublime Text 2 License Key, Sublime Text 3 License Key, Sublime Text Full Version, Sublime Text 3 version 3103. | |
Go to menu Help > Enter License. | |
—– BEGIN LICENSE —– | |
Michael Barnes | |
Single User License |