Skip to content

Commit f9fe36b

Browse files
committed
Push fix
1 parent c56469b commit f9fe36b

3 files changed

Lines changed: 16 additions & 5 deletions

File tree

app/Helpers/Slugger.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
}

config/tags.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@
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.

deploy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@
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))

0 commit comments

Comments
 (0)