Skip to content

Releases: walkor/webman-framework

v1.0.15

05 May 07:07
0a9e5b2
Compare
Choose a tag to compare

support php8

v1.0.14

21 Jan 09:20
Compare
Choose a tag to compare

optimizations

v1.0.13

20 Jan 04:26
Compare
Choose a tag to compare

add Route::disableDefaultRoute() method.

v1.0.12

24 Dec 07:37
Compare
Choose a tag to compare

Support route middleware. For example.
config/route.php

Route::any('/admin', 'app\admin\controller\Index@index')->middleware([
    support\middleware\MiddlewareA::class,
    support\middleware\MiddlewareB::class,
]);

Route::group('/blog', function () {
   Route::any('/create', function () {return response('create');});
   Route::any('/edit', function () {return response('edit');});
   Route::any('/view/{id}', function ($r, $id) {response("view $id");});
})->middleware([
    support\middleware\MiddlewareA::class,
    support\middleware\MiddlewareB::class,
]);

v1.0.11

15 Dec 04:46
de2a0eb
Compare
Choose a tag to compare
Update App.php

v1.0.10

07 Dec 09:24
c2d673d
Compare
Choose a tag to compare

Support named route.For example.
config/route.php

Route::any('/blog/{id}', $some_callback)->name('blog');

Then

use Webman\Route;
echo Route::getByName('blog')->url(['id'=>100]);

Will output /blog/100.

v1.0.9

01 Dec 03:11
0fab3b0
Compare
Choose a tag to compare

Add group method for Route.
For example.

Route::group('/a', function () {
   Route::any('/b', function () {return 'b';});
   Route::any('/c', function () {return 'c';});
   Route::any('/d/{e}', function ($r, $e) {return $e;});
});

v1.0.8

25 Nov 02:14
7b5290c
Compare
Choose a tag to compare
Update App.php

Fix https://github.com/walkor/webman/issues/83

v1.0.7

01 Nov 03:07
d5057ec
Compare
Choose a tag to compare
Update Route.php

https://github.com/walkor/webman/issues/68

v1.0.6

17 Oct 09:14
7b614e2
Compare
Choose a tag to compare
Update Middleware.php