Skip to content

Commit 6e92afc

Browse files
Mohamed AmineMohamed Amine
authored andcommitted
update readme
1 parent eab8e80 commit 6e92afc

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ GET, POST, PUT, PATCH, DELETE
4141
To use PUT, PATCH, DELETE methods your form method must be 'POST'
4242
inside the form you must put:
4343
```<input type='hidden' name='_method' value="PUT'>```
44-
csrf_method('PUT') will echo this automatically.
44+
csrf_method('PUT') will echo this automatically.
4545

4646
#### Basic routes examples:
4747
```php
@@ -261,7 +261,7 @@ contaienr()->MyClass->someMethod();
261261

262262
#### IOC Service Provider:
263263

264-
Service provider located in ```App/Services.php```
264+
Service provider located in ```App/Services.php```
265265
It contains aliases and sevices that should be loaded when the application start:
266266

267267
```php
@@ -282,7 +282,7 @@ It contains aliases and sevices that should be loaded when the application start
282282

283283
#### The global $container:
284284

285-
the ```container()```function is global in the framework (can be used every where, it contains all the objects created by the IOC container),
285+
the ```container()```function is global in the framework (can be used every where, it contains all the objects created by the IOC container),
286286

287287

288288

@@ -414,11 +414,18 @@ container();
414414
## Box (Command Line Tool):
415415
Box is a command line tool to create Controllers, models & middlewares templates
416416
for example:
417+
417418
```
419+
// to create a controller:
418420
php box Controller TestC
419-
// or
421+
422+
// to create resourceful controller
423+
php box Controller TestC -r
424+
425+
// to create a Model
420426
php box Model TestC
421-
// or
427+
428+
// to create a Middleware
422429
php box Middleware TestC
423430
```
424431

0 commit comments

Comments
 (0)