File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace App \Helpers ;
4+
5+ class Slugger
6+ {
7+ public static function make (string $ name ): string
8+ {
9+ return mb_strtolower ($ name );
10+ }
11+ }
Original file line number Diff line number Diff line change 66 * The given function generates a URL friendly "slug" from the tag name property before saving it.
77 * Defaults to Str::slug (https://laravel.com/docs/master/helpers#method-str-slug)
88 */
9- 'slugger ' => function (string $ name ) {
10- $ lower = mb_strtolower ($ name );
11-
12- return $ lower ;
13- },
9+ 'slugger ' => [App \Helpers \Slugger::class, 'make ' ],
1410
1511 /*
1612 * The fully qualified class name of the tag model.
Original file line number Diff line number Diff line change 6565 args :
6666 chdir : " {{ project_path }}"
6767
68+ - name : Remove old build directory
69+ command : rm -rf /var/www/ComputerScienceResources.com/public/build
70+ when : not (skip_frontend | default(false))
71+
6872 - name : Swap new_build into build
6973 command : mv /var/www/ComputerScienceResources.com/public/new_build /var/www/ComputerScienceResources.com/public/build
7074 when : not (skip_frontend | default(false))
You can’t perform that action at this time.
0 commit comments