remove: slugs

This commit is contained in:
Roardom
2023-01-06 15:29:59 -06:00
parent 0b334015a3
commit 54220dcfc8
50 changed files with 105 additions and 1362 deletions

View File

@@ -129,7 +129,6 @@ class TopicController extends Controller
// Create The Topic
$topic = new Topic();
$topic->name = $request->input('title');
$topic->slug = Str::slug($request->input('title'));
$topic->state = 'open';
$topic->first_post_user_id = $user->id;
$topic->last_post_user_id = $user->id;
@@ -141,7 +140,6 @@ class TopicController extends Controller
$v = \validator($topic->toArray(), [
'name' => 'required',
'slug' => 'required',
'state' => 'required',
'num_post' => '',
'first_post_user_id' => 'required',
@@ -181,7 +179,6 @@ class TopicController extends Controller
$forum->num_post = $forum->getPostCount($forum->id);
$forum->last_topic_id = $topic->id;
$forum->last_topic_name = $topic->name;
$forum->last_topic_slug = $topic->slug;
$forum->last_post_user_id = $user->id;
$forum->last_post_user_username = $user->username;
$forum->save();