Answers for "laravel 9 with lumen"

PHP
0

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);
});
Posted by: Guest on February-03-2022

Browse Popular Code Answers by Language