Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel lumen

<?php

/**
 * Reimagine what you expect...
 */
$app->get('/', function() {
	return ['version' => '5.3']
});

/**
 * From your micro-framework...
 */
$app->post('framework/{id}', function($framework) {

	$this->dispatch(new Energy($framework));
});


$app->get('api/users/{id}', function($id) {
	return User::find($id);
});
Source by lumen.laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #lumen
ADD COMMENT
Topic
Name
7+7 =