@@ -41,7 +41,7 @@ GET, POST, PUT, PATCH, DELETE
41
41
To use PUT, PATCH, DELETE methods your form method must be 'POST'
42
42
inside the form you must put:
43
43
``` <input type='hidden' name='_method' value="PUT'> ```
44
- csrf_method('PUT') will echo this automatically.
44
+ csrf_method('PUT') will echo this automatically.
45
45
46
46
#### Basic routes examples:
47
47
``` php
@@ -261,7 +261,7 @@ contaienr()->MyClass->someMethod();
261
261
262
262
#### IOC Service Provider:
263
263
264
- Service provider located in ``` App/Services.php ```
264
+ Service provider located in ``` App/Services.php ```
265
265
It contains aliases and sevices that should be loaded when the application start:
266
266
267
267
``` php
@@ -282,7 +282,7 @@ It contains aliases and sevices that should be loaded when the application start
282
282
283
283
#### The global $container:
284
284
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),
286
286
287
287
288
288
@@ -414,11 +414,18 @@ container();
414
414
## Box (Command Line Tool):
415
415
Box is a command line tool to create Controllers, models & middlewares templates
416
416
for example:
417
+
417
418
```
419
+ // to create a controller:
418
420
php box Controller TestC
419
- // or
421
+
422
+ // to create resourceful controller
423
+ php box Controller TestC -r
424
+
425
+ // to create a Model
420
426
php box Model TestC
421
- // or
427
+
428
+ // to create a Middleware
422
429
php box Middleware TestC
423
430
```
424
431
0 commit comments