Skip to content

Commit

Permalink
Update to string helper method calls
Browse files Browse the repository at this point in the history
  • Loading branch information
jameswagoner committed Sep 17, 2019
1 parent 8658828 commit 3a75c86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea
2 changes: 1 addition & 1 deletion src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static function resource($path, $controller = '', array $options = [])
{
// auto build controller name
if (empty($controller)) {
$controller = str_replace(' ', '', title_case(str_replace('-', ' ', str_singular($path)))) . 'Controller';
$controller = str_replace(' ', '', \Str::title(str_replace('-', ' ', \Str::singular($path)))) . 'Controller';
}

Route::post($path . '/filter', ['as' => config('laraman.route.prefixDot') . $path . '.filter', 'uses' => $controller . '@filter']);
Expand Down

0 comments on commit 3a75c86

Please sign in to comment.