April 5, 2022 in Tips and Tricks
Register your App We recommend this setup to be done by someone with an admin role in the Business Manager containing your WhatsApp Business Accounts. This avoids permission errors. Register a Facebook app on the Facebook Developers website using your personal profile (don’t worry, the app will belong to the Business Manager in the end). Your app type needs […]
April 5, 2022 in Tips and Tricks
At current time, these APIs are available only to selected Meta partners, if you are one of their Partners you can request those permissions from the key account manager, you are communicating with. WhatsApp Business App WhatsApp Business is free to download and was built with the small business owner in mind. The app makes […]
March 28, 2022 in Php, Tips and Tricks
To avoid this or to avoid connect your app to some url you can do another trick to implement this using PHP and JS. You must create an intent-filter on your app’s main activity like this: Create PHP file redirect_to_app.php which will work in case user have the app installed. Create HTML/PHP file check_redirect_to_app.php which must be shown for […]
March 28, 2022 in Laravel, Tips and Tricks
How do I restrict API access in Laravel? You can use Middleware to restrict access to public. You can simply generate token and pass it into headers, or use basic authentication with username and password and check it in your middleware. For that purpose you can use Laravel Airlock. Is Laravel API secure?Laravel Passport is an OAuth […]
March 28, 2022 in Laravel, Php, Tips and Tricks
Laravel Framework 8.60.0 Usage:command [options] [arguments] Options:-h, –help Display help for the given command. When no command is given display help for the list command-q, –quiet Do not output any message-V, –version Display this application version–ansi|–no-ansi Force (or disable –no-ansi) ANSI output-n, –no-interaction Do not ask any interactive question–env[=ENV] The environment the command should run […]
March 28, 2022 in Technology, Tips and Tricks
Here is an explanation of the crontab format. So according to this your 5 8 * * 0 would run 8:05 every Sunday. 30 18 * * * curl URL >/dev/null 2>&130 18 * * * curl URL >/dev/null 2>&130 18 * 1 * curl URL >/dev/null 2>&130 18 * * 1 curl URL >/dev/null 2>&1
March 28, 2022 in Laravel, Php, Technology, Tips and Tricks
added a new middleware and then added to my route you could also restrict access by adding throttling which would stop someone from hammering your API, with token or not. There are probably many approaches. A simple but effective one would be sessions. You can save the user in a session. This way you can […]
March 28, 2022 in Laravel, Php, Technology, Tips and Tricks
I stumbled upon the same problem today and did some debugging. When registering the /login route, Fortify applies the Illuminate\Routing\Middleware\ThrottleRequests:login middleware to it. This means, for every request to that route, the ThrottleRequests middleware will call the RateLimiter instance for that specified key. Apparently, Fortify doesn’t register a RateLimiter for the login key. Due to the missing key in the $limiters property of the RateLimiter instance, the ThrottleRequests middleware uses its […]
March 28, 2022 in Laravel, Technology, Tips and Tricks
Route Model Binding When injecting a model ID to a route or controller action, you will often query the database to retrieve the model that corresponds to that ID. Laravel route model binding provides a convenient way to automatically inject the model instances directly into your routes. For example, instead of injecting a user’s ID, […]