Add (ai tool submission)
This commit is contained in:
@@ -13,7 +13,7 @@ class FrontToolController extends Controller
|
||||
{
|
||||
public function show(Request $request, $ai_tool_slug)
|
||||
{
|
||||
$ai_tool = AiTool::where('slug', $ai_tool_slug)->where('status','live')->first();
|
||||
$ai_tool = AiTool::where('slug', $ai_tool_slug)->where('status', 'live')->first();
|
||||
|
||||
if (is_null($ai_tool)) {
|
||||
return abort(404);
|
||||
@@ -74,8 +74,8 @@ public function show(Request $request, $ai_tool_slug)
|
||||
|
||||
$faq_context = Context::create(FAQPage::class, $faqData);
|
||||
|
||||
SEOTools::setTitle($ai_tool->tool_name . ": ". $ai_tool->tagline, false);
|
||||
SEOTools::setDescription(implode(" ",str_extract_sentences($ai_tool->summary, 2)));
|
||||
SEOTools::setTitle($ai_tool->tool_name.': '.$ai_tool->tagline, false);
|
||||
SEOTools::setDescription(implode(' ', str_extract_sentences($ai_tool->summary, 2)));
|
||||
SEOTools::metatags();
|
||||
SEOTools::twitter()->addImage($ai_tool->screenshot_img);
|
||||
SEOTools::opengraph()->addImage($ai_tool->screenshot_img);
|
||||
|
||||
Reference in New Issue
Block a user