Skip to content

Commit

Permalink
4 espaces to php code in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
arandilopez committed Sep 27, 2017
1 parent 0f02589 commit df0af9a
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ Add the `ProfaneServiceProvider` class in your `config/app.php` file.
```php
<?php
return [
// ...

'providers' => [
// ...
LaravelProfane\ProfaneServiceProvider::class,
];

// ...
'providers' => [
// ...
LaravelProfane\ProfaneServiceProvider::class,
];

// ...
];
```

Expand All @@ -48,14 +48,14 @@ This package register a custom validator. You can use in your controller's `vali
// ...
class MyController extends Controller
{
public function store(Request $request)
{
$this->validate($request, [
'username' => 'required|profane'
]);

// ...
}
public function store(Request $request)
{
$this->validate($request, [
'username' => 'required|profane'
]);

// ...
}
}
```

Expand All @@ -68,14 +68,14 @@ If you want to use others dictionaries you can pass them as parameters in the va
// ...
class MyController extends Controller
{
public function store(Request $request)
{
$this->validate($request, [
'username' => 'required|profane:es,en'
]);

// ...
}
public function store(Request $request)
{
$this->validate($request, [
'username' => 'required|profane:es,en'
]);

// ...
}
}
```

Expand All @@ -86,14 +86,14 @@ You can also send as parameter a path of a file which is a dictionary in order t
// ...
class MyController extends Controller
{
public function store(Request $request)
{
$this->validate($request, [
'username' => 'required|profane:es,en,'.resource_path('lang/fr/dict.php')
]);

// ...
}
public function store(Request $request)
{
$this->validate($request, [
'username' => 'required|profane:es,en,'.resource_path('lang/fr/dict.php')
]);

// ...
}
}
```

Expand Down

0 comments on commit df0af9a

Please sign in to comment.