RFFRED
3 months ago
335
2
Laravel

Editing robots.txt

Posted 3 months ago by RFFRED

Hello,

I would like to edit the robots.txt in my CMS in a textarea input field. I am not quite sure how to access the file and load its content. I am using the laravel filesystem but the public and local drives do not point to the /public folder.

Should I create a new drive pointing to /public? Should I move my robots.txt to the public drive (/storage/app/public)? Should I get the content using PHP file functions (file_get_contents() / file_put_contents)?

I am just not quite sure how to approach this?

thanks

Please sign in or create an account to participate in this conversation.