Tag: Laravel
New Features in Laravel 10.4
With the release of version 10.4, the Laravel team added the File::json() function, changed existing HasMany connections to HasOne relationships, added a new test response assertion, and more. File::json() method The File::json() function was added by Laravel 10.4 to make
Send SMS using TWILIO in Laravel
To put it into action, take the following steps: Install the TWILIO package using the command given below: composer require twilio/sdk Now, we require three credentials from the Twilio platform (https://www.twilio.com/console and https://www.twilio.com/console/phone-numbers/incoming). Account SID Auth Token Phone Number Now
Slack Integration With Laravel
Firstly, create a slack channel with the (composer requires laravel/slack-notification-channel ) command. Create a notification in the laravel project with the command (php artisan make: notification SlackNotification). Create toSlack method in the SlackNotification. Add routeNotificationForSlack in the user model to
Auth Session expiring in Laravel – Resolved
I have created a web application in Laravel. I am using an authentication plugin to authorize the users while logging-in on my web application. On my local system, everything was working fine. But when I uploaded my Laravel project from
Laravel Relationships in Eloquent
Laravel relationship tables are frequently associated with each other in the database. Laravel relationships in eloquent support different types of relationships and it’s easily working and managing data. Defining relationships:- One to One One to Many Many to Many Has
Internationalization / Localization in Laravel
Laravel has made it convenient for the developers to create multilingual websites by giving the developer community an easy way to retrieve strings in various languages. These strings are basically stored as constants in the resources/lang directory within our project.
How to create an event in Laravel
Laravel events provide an observable functionality, allowing you to subscribe and listen. Events are stored in the app/Events directory and their listeners are stored in the app/Listener directory. We can generate a Laravel event by running “php artisan event:generate” command.
What is Laravel Socialite?
Most of the sites require User login and registration with Social sites like Facebook, Google+, etc. Laravel provides a simple way to authenticate with OAuth provider Socialite. Laravel currently supports Facebook, Google, Twitter, GitHub, Bitbucket, etc. Installing and configuring composer
Accessor and Mutators in Laravel
Accessor and Mutators are allowed to alter the data before saving and fetching from the database. An accessor is used to change the format while fetching the data from the database and mutators set the format attributes before retrieving the