I am a big fan of PHP, Laravel, Angular, Vue, Node, Javascript, JQuery, Codeigniter and Bootstrap from the early stage. I believe in Hardworking and Consistency. Follow Me: Subscribe me on: Youtube We are Recommending you How to Call External API in Laravel? Larave...
Ready to try your first CRUD operation in Laravel? From PHP 8.0 or higher, Laravel installation, and database support to web servers like Apache or Nginx, Cloudways has got you covered. Try Now! Create a Laravel Project In this article, I’ll use Cloudways to create a Laravel project for...
Hello, I have 3 party API endpoints where there are customers, I want to retrieve these customers using Pagination and display them on the page in a filament. I can't save these customers in the database, so I won't be able to make a query. Have you
In Laravel 5 REST API project sometime we need to create create our own custom header for security. like : 'X-hardik':'123456'. this was example, that means in your current project your every request with pass your own custom header like i give you example.this custom he...
to your Backpack Login page, without any third-party composer packages. It's arguable whether to use external libraries or not. My rule of thumb is: if there are no official packages and it's simple enough, try not to use third-party packages. But, this article isn't mea...
With the application bootstrapped, we now need to install 2 external packages: s-ichikawa/laravel-sendgrid-driver: To send emails through Twilio SendGrid. This is because Laravel doesn't provide a native email transport for Twilio SendGrid. I picked this library as it's the only package de...
We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or...
we can make is usingUser::findOrFail()instead of justfind()- then if user is not found, Laravel would show 404 page with text"Sorry, the page you are looking for could not be found.". But this is a default 404 page for the whole project, so not massively helpful to user, is it...
Now, let’s get to real tips how to make API errors better. Tip 1. Switch APP_DEBUG=false Even Locally There’s one important setting in.envfile of Laravel – it’sAPP_DEBUGwhich can befalseortrue. If you turn it on astrue, then all your errors will be shown with all the details...
For example, if the error below pops up, you must check the file name in the code or directory, as the script may not find it due to the syntax error. <?php echo "Warning error"'; include ("external_file.php"); ? > There is no file named “external_file,” so the output will...