Laravel app name is not showing as wanted - laravel

I have a website and it's domain name is
doiniqbazar.com
I developed this site using laravel framework.When i send a link "doiniqbazar.com" to my friends in facebook messenger it show the applicaation name "Laravel".
I changed both .env file and config/app.php file but still not
working.
Is there any procedure to change laravel app name??

This display has nothing necessarily to do with your app name.
It'll grab this from the <title> or og:title meta tags in your HTML. (You may be outputting the APP_NAME value here.)
Facebook has a handy tool for debugging this sort of sharing metadata issue.
Note: It may also be cached. Facebook's debugger reported the same Laravel title in your title tag; when I did a re-scrape it picked up your new title. Apple will likely do the same after a while; I'm not aware of a re-scrape API on their end.
See also: Best Practices for Link Previews in Messages

Related

How to customize "Return" link in Laravel Spark?

I'm using Laravel Spark (not classic, v11) to scaffold out my newest SaaS application. Everything is going well, but the only thing I'm not able to customize is the "Return to [Application Link]" once users are actually in the billing portal.
Right now, it defaults to www.example.com, which returns users to my home page. Instead, I'd like it to return users to www.example.com/dashboard.
I've read every page of the documentation thoroughly, but don't see any sort of default customization built in for this.
I'm using Spark-Stripe (as opposed to Spark-Paddle) if it makes a difference, though I don't think it would.
Thanks in advance.
That URL should default to /dashboard, but you can customize it by adding this line to your spark.php config file:
'dashboard_url' => '/dashboard',
For more details on how Spark is using this config value, see these files:
../vendor/laravel/spark-stripe/src/FrontendState.php
../vendor/laravel/spark-stripe/resources/js/Pages/BillingPortal.vue

Problem with joomla with photos and redirection

I deleted the pictures through the Joomla panel and I get such an error on the page as you can see in the picture. How to deal with this?
How to add redirection but without domain?
Your first issue about the pictures seems to be an issue with the component you're using, which is com_joomgallery in your case. When you delete the picture, it gets deleted but somehow its showing up in your JoomGallery image listing and so is the error.
Can you let me know from where you've deleted the photos? Was it from JoomGallery or from somewhere else?
If you haven't deleted them from JoomGallery then that's the reason for your issue, because JoomGallery database table still have those records and when it tries to list them its unable to find the thumbnails/images that you've deleted.
About your second question, how are you redirecting to external URL? If you're trying to open the external URL from an anchor tag try doing it like
Link
But you're using Route::_ to open the external URL, then don't. As Route::_ isn't used for external links but is meant only for internal URLs. If you want to open or redirect using Joomla, then try like this
$url = Uri::getInstance("//www.facebook.com");
$url->setScheme("https");
$externalURL = $url->toString();
echo "<a href='$externalURL'>Link</a><br>";
I hope this helps.

Joomla com_users component unable to load some templates

I have modified the users component of Joomla, specifically the file components/com_users/controllers/profile.php and included some custom templates in components/com_users/views/profile/tmpl
It is mostly some forms which I am submitting and then redirecting to specific pages for further actions.
Example scenario :
Above option is accessible to user right after login. I have put it on the profile page by modifying default profile template.
So when someone enters a name, and presses search, then this form is submitted through form
action="<?php echo JRoute::_('index.php?option=com_users&task=profile.selectSendMessage'); ?>"
This in turn calls the function named selectSendMessage which is placed in profile.php file. The function looks like :
As you can see the function redirects to
index.php?option=com_users&view=profile&layout=sendMessage
I have placed sendMessage.php template in com_users/views/profile/tmpl
Everything works fine on localhost which I have set up on MAMP in MacOS
I moved the website to a live server a few days ago. I have followed all proper steps to migrate website and database from localhost to live server. Still any of the custom templates I have put in are never reached.
The strange thin is that Edit User Profile which is redirected to from the same profile.php file from a function edit(), with template in the same location as I have put in edit.php in views/profile/tmpl works as expected.
I am using 1and1 shared hosting plan 1&1 Unlimited for hosting the website.
I have been trying to fix this for quite some time now, but cannot understand the problem. I have tried reinstalling the website several times, tried installing from web apps from 1&1 control panel and modifying it, but no success.
Any tips and insights are welcome. Thank you.
It turns out that 1and1.com hosting somehow doesn't support layout names with a capital letter in it. I changed all layout names to lower case alphabets and everything worked fine like it should.
If someone faces the same issue, this is worth a try. It was particularly hard to debug since you will never suspect that could be a problem. I accidentally stumbled on the solution while playing around.
Thanks.

Magento - Allow user to manage social media URLs

Ok so I’m trying to implement social media into the footer. However, they are images that change color when hovered over that I’m working into the CSS.
But my question is, if the end user changed their Facebook URL, how will they update the url? I obviously can’t just put it directly into the theme because then the end-user will know how to program and where to look just to change the URL.
How do I go about implementing this the right way so the end-user can update their social media URLs to their Facebook/Twitter/YouTube/Etc easily..?
What do you mean by saying "user changed their Facebook URL"?
You talking about customer or administrator?
If you mean administrator, then the you can create custom settings for social media links
For customers store theirs social uids
In order to do this, you will need to create an extension, albeit not a very complicated one. If you've never done this before, Alan storm wrote an excellent tutorial.
One file that is often included in extensions (but seems not to be mentioned in the above mentioned tutorial) is etc/system.xml. This file lets you define a new page in the System->Configuration section of the Magento admin panel. Magento provides a good tutorial on writing those.
Any fields you put in etc/system.xml will be modifiable in the Magento admin panel, and you can access them anywhere in your code with Mage::getStoreConfig('your extension's name/the name of the field'), e.g., Mage::getStoreConfig('facebook/enabled');

Facebook like button issue image, title, description

I have created a Facebook like button on my website 6 months ago it was working fine and showing image, title and description while posting the comment. But now from 2 days it's not showing any information showing shared URL instead of the image, title and description while posting comment.
Here is my website link.
https://www.whatyourneighbourpaid.com
Please see at the footer for share icon.
Have you checked your page in the Facebook Debuger (AKA linter)?
It says:
Errors That Must Be Fixed
Object Base Domain Not Allowed: Object at URL
'https://us.whatyourneighbourpaid.com/' of type 'website' is invalid
because the domain 'us.whatyourneighbourpaid.com' is not allowed for
the specified application id '391421600878949'. You can verify your
configured 'App Domain' at
https://developers.facebook.com/apps/391421600878949.
My guess is that in the app settings the url you used is not us.whatyourneighbourpaid.com, maybe www.whatyourneighbourpaid.com or just plain whatyourneighbourpaid.com?
If that's the case then just add this to the App Domains in the app settings and things should work fine.

Resources