Skip to content

Commit 5f09888

Browse files
committed
Updated README.md
1 parent 8214281 commit 5f09888

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
.idea
33
/node_modules
44
/vendor
5+
.phpunit.*

.phpunit.result.cache

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,18 @@ Greate! You can start to use **Laravel Jotform** Package.
2424
1- You can use `jotform()` helper function in order to access Jotform API:
2525
```php
2626
<?php
27-
# in routes/web.php or routes/api.php
2827

29-
Route::get('my-forms', function() {
30-
$myForms = jotform()->getForms();
31-
return response()->json($myForms);
32-
});
28+
$myForms = jotform()->getForms();
3329
```
3430
2- You can use Facade:
3531
```php
3632
<?php
37-
# in routes/web.php or routes/api.php
3833

3934
use Jotform\Facade\Jotform;
4035

41-
Route::get('my-forms', function() {
42-
$myForms = Jotform::getForms();
43-
return response()->json($myForms);
44-
});
36+
$myForms = Jotform::getForms();
4537
```
46-
You can find all methods that will be able to use with this package by using [this documentation](https://github.com/jotform/jotform-api-php).
38+
You can find **all methods** that will be able to use with this package by using [this documentation](https://github.com/jotform/jotform-api-php).
4739

4840
## Config
4941
You can change the package configs via `config/jotform.php` file or directly using `.env` file variables.

0 commit comments

Comments
 (0)