@@ -186,16 +186,16 @@ php bow serve
186186
187187``` php
188188// routes/app.php
189- $app ->get('/', function () {
189+ $route ->get('/', function () {
190190 return 'Hello World!';
191191});
192192
193- $app ->get('/users/:id', function ($id) {
193+ $route ->get('/users/:id', function ($id) {
194194 return "User ID: $id";
195195});
196196
197197// RESTful resource routing
198- $app ->rest('/api/posts', PostController::class);
198+ $route ->rest('/api/posts', PostController::class);
199199```
200200
201201** Create a Controller:**
@@ -204,6 +204,7 @@ $app->rest('/api/posts', PostController::class);
204204namespace App\Controllers;
205205
206206use Bow\Http\Request;
207+ use App\Models\Post;
207208
208209class PostController
209210{
@@ -274,7 +275,6 @@ The Bow ecosystem includes several packages:
274275- ** [ bowphp/app] ( https://github.com/bowphp/app ) ** : Application skeleton
275276- ** [ bowphp/tintin] ( https://github.com/bowphp/tintin ) ** : Template engine
276277- ** [ bowphp/policier] ( https://github.com/bowphp/policier ) ** : Authentication & authorization
277- - ** [ bowphp/slack-webhook] ( https://github.com/bowphp/slack-webhook ) ** : Slack integration
278278- ** [ bowphp/payment] ( https://github.com/bowphp/payment ) ** : Payment gateway integration
279279
280280## Contributing
@@ -300,7 +300,6 @@ For more detailed information, refer to the `CONTRIBUTING.md` file.
300300- [ Official Documentation] ( https://bowphp.com )
301301- [ API Reference] ( https://bowphp.com/api )
302302- [ Tutorials & Guides] ( https://bowphp.com/docs )
303- - [ Community Forum] ( https://bowphp.slack.com )
304303
305304## Support & Community
306305
@@ -309,7 +308,6 @@ For more detailed information, refer to the `CONTRIBUTING.md` file.
309308- ** Documentation** : [ https://bowphp.com ] ( https://bowphp.com )
310309- ** Issues** : [ GitHub Issues] ( https://github.com/bowphp/framework/issues )
311310- ** Discussions** : [ GitHub Discussions] ( https://github.com/bowphp/framework/discussions )
312- - ** Slack** : [ Join our Slack] ( https://join.slack.com/t/bowphp/shared_invite/enQtNzMxOTQ0MTM2ODM5LTQ3MWQ3Mzc1NDFiNDYxMTAyNzBkNDJlMTgwNDJjM2QyMzA2YTk4NDYyN2NiMzM0YTZmNjU1YjBhNmJjZThiM2Q )
313311
314312### Stay Updated
315313
@@ -320,24 +318,12 @@ For more detailed information, refer to the `CONTRIBUTING.md` file.
320318
321319The Bow Framework is open-source software licensed under the [ MIT license] ( LICENSE ) .
322320
323- ## Credits
324-
325- ** Created and maintained by:**
326-
327- - [ Franck DAKIA] ( https://github.com/papac ) - Lead Developer
328-
329- ** Special thanks to:**
330-
331- - [ All contributors] ( https://github.com/bowphp/framework/graphs/contributors )
332- - The PHP community
333-
334321## Contact
335322
336323- Email: [ papac@bowphp.com ] ( mailto:papac@bowphp.com )
337324- Twitter: [ @papacdev ] ( https://twitter.com/papacdev )
338325
339326For bug reports, please use [ GitHub Issues] ( https://github.com/bowphp/framework/issues ) .
340- For questions and discussions, join us on [ Slack] ( https://bowphp.slack.com ) .
341327
342328---
343329
0 commit comments