Git Product home page Git Product logo

Comments (5)

isneezy avatar isneezy commented on May 20, 2024 2

As the docs says to set the default title to false if you do not want it, so the simple way of doing that is to override it in your controller.

/**  Display the specified resource. **/
public function show(Request $request){
  config(['seotools.meta.defaults.title' => false]);
  $this->seo()->setTitle("Your title");
  return view('your.view');
}

Update
If it is necessary that the controller always have to hide the title by default, simply move the configuration line to the constructor

from seotools.

stefkes avatar stefkes commented on May 20, 2024 2

If I may make a suggestion - the way this is explain in the docs is not very clear. "default" usually means the value that's used when none is explicitly set. The fact that it's appended to a value unless explicitly disabled is a little strange.

Great plugin though!

from seotools.

isneezy avatar isneezy commented on May 20, 2024

I don't know what exactly you are trying to achieve here. Do you want to disable/remove the default title on entire site or just for your controller/controller method?

from seotools.

iwasingh avatar iwasingh commented on May 20, 2024

Yes, in a certain way, i want disable/remove the default title for my controller/controller method.

from seotools.

iwasingh avatar iwasingh commented on May 20, 2024

Problem solved, thank you!

from seotools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.