Laravel recaptcha not rendering - laravel

I am using this package to add recaptcha in my laravel app, and when I add #captcha to my view it just print as is without rendering any captcha or badge.
Did anyone had the same issue with this package? how to fix it?

in .env you have this?:
INVISIBLE_RECAPTCHA_SITEKEY={siteKey}
INVISIBLE_RECAPTCHA_SECRETKEY={secretKey}
and make sure siteKey and secretKey is right.
after you add this to .env try run:
php artisan config:clear
Do you see any error in console?

Solved
I've changed my package to this one which is based on my question package and also supports laravel 8 now everything works fine.

Related

Vite did not Work Properly loading asset on laravel 9?

Vite didnt load asset properly on my laravel 9 project. i've been facing this problem when using laravel 9 with Vite. first when i install laravel breeze i though the breeze is the problem, but now i try using jetstream it has the same issue. please see the screenshot below. can someone help me ?
I think you need to run the Vite server using npm run dev. That will also take care of hot reloading
I run "npm run dev" command by mistake. And website is started using dev url. I searched for a solution but never found. I found solution myself. You need to delete "hot" file in your public folder on your hosting.
In you hosting go to "public" path and delete named "hot" file.

How to use Vue with Lumen?

I have created a RESTful API with lumen and tested it with postman. It works fine. Now I wanna develop the front end for it with Vue. What is the best way to go about it? Do I need to create a separate directory for Vue or is there a way to use it in the same lumen project directory? I have tried installing composer require laravel/ui which works fine. But then when I run php artisan ui vue it says "ui not defined". Help me out here.
I would suggest to use something like this starter kit. Down the line it will save your time.

Clean Laravel To Bake New Project

I just did a fresh install of Laravel v5.5.25. I want to create a brand new project so I want to clear out some files in Laravel. For example, I want to delete all readymade templates (welcome page too), delete bootstrap from Laravel, etc. I just want to do ultimate start. So, will you please guide me what else should I delete too to make it a skeleton? And please tell me how can I remove bootstrap completely and replace it with Bulma.
You can run:
php artisan preset none
to remove default preset.
There is no Bulma preset of of the box, available options are:
none
bootstrap
vue
react
You can use Laravel Presets for that. If you want a “skeleton” as you said you should use php artisan preset none. There is also one for Bulma: composer require laravel-frontend-presets/bulma and then php artisan preset bulma.

Laravel 5.2 reCaptcha fails after succeeds

So, I have placed the reCaptcha in my login form. I click on "im not a robot" and click on the right images and it says it succeeded, but when I submit the form it returns me the message of "The Captcha field is not correct." and it also thrown and exception saying:
'Illuminate\Foundation\Validation\ValidationException' with message
'The given data failed to pass validation.'
I am using "greggilbert/recaptcha" in my Laravel 5.2 project. I have set my keys and everything is working great in production and in other localhost's but not in mine.
My team and I work in the same git repository and it works for everyone but not for me.
I have re-installed the plugin, also the whole composer (by deleting vendor and then composer install).
I have cleared the configuration with php artisan config:clear and I've done the composer dump-autoload and have re-publish the ServiceProvider with php artisan vendor:publish --provider="Greggilbert\Recaptcha\RecaptchaServiceProvider"
Does somebody have any idea on how to fix this? Please!
Thank you a lot for reading this! Happy coding!

Laravel 4.2 view:publish from custom location

I'm currently developing a package in L4.2 but I'm not using the workbench I have a complete custom structure.
But now I'm facing the problem that when I execute the artisan command view:publish I get the following error:
[InvalidArgumentException]
Views not found.
It seems like I have to give Laravel the location of my views but I can't find how to do this, so I hope anybody could help me.
My views are located at: vendor/package/src/views
My service provider at: vendor/package/src/serviceprovider.php
I also tried to use php artisan view:publish vendor/package --path="src/views" but no luck so far.
I hope somebody can help me,
Thanks,
Joren
php artisan view:publish td/longstack --path="packages/vendorname/packagename/src/views/"
Never mind I forgot to specify the folder where alle my packages are located. It works now.

Resources