The essential news about content management systems and mobile technology. Powered by Perfect Publisher and XT Search for Algolia.
The News Site publishes posts to the following channels: Facebook, Instagram, Twitter, Telegram, Web Push, Bluesky, and Blogger.
In this episode, we are joined by Josh Cirre to discuss his journey from creative beginnings in music and graphic design to his current role at Laravel and his passion for video production. Josh shares valuable insights on starting a YouTube channel, finding comfort in front of the camera, and the importance of using tools like OBS for efficient video editing.
Sorry, the video on my side is jumpy. Had some technical issues during the recording 😢
You can also view all the past Laravel Creator series interviews on our site.
The post How to Create Tech Videos for YouTube with Josh Cirre appeared first on Laravel News.
Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.
Read more https://laravel-news.com/how-to-create-tech-videos-for-youtube-with-josh-cirre
The Laravel Unsplash package provides an easy way to integrate your Laravel project with the Unsplash API. Use the API to fetch photos, collections, and user data from Unsplash:
use Xchimx\UnsplashApi\Facades\Unsplash;
$photos = Unsplash::searchPhotos('Nature');
$randomPhoto = Unsplash::getRandomPhoto('Nature');
$downloadLink = Unsplash::getPhotoDownloadLink($id);
$user = Unsplash::getUser($name);
$userPhotos = Unsplash::getUserPhotos($username, 15, $page);
This package is available on GitHub at xchimx/laravel-unsplash. The readme includes installation, configuration details, usage instructions, and controller examples. To get started with the Unsplash API, you will need to register as a developer by visiting the official developer documentation.
You can install this package with Composer:
$ composer require xchimx/laravel-unsplash
$ php artisan vendor:publish \
--provider="Xchimx\UnsplashApi\UnsplashServiceProvider" --tag="config"
The post Integrate Unsplash in Your Laravel Application appeared first on Laravel News.
Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.
Read more https://laravel-news.com/unsplash-package-for-laravel
Managing PHP dependencies can be challenging, but Composer
simplifies this process. By defining dependencies in a
composer.json
file, developers can streamline
collaboration, reduce code bloat, and maintain consistency across
environments. Composer’s powerful autoloading and version control
make it an essential tool for modern PHP projects. This
comprehensive guide covers everything from setup to advanced usage,
ensuring seamless development.
Read more @ How to Efficiently Manage PHP Dependencies with Composer
The post Streamline PHP Projects with Composer: A Guide to Efficient Dependency Management appeared first on PHP Prefixer Blog.
Blasp is a Laravel profanity filter package that helps detect and mask profane words. It provides profanity detection, substitution options, obfuscation, and more.
use Blaspsoft\Blasp\Facades\Blasp;
$sentence = 'Laravel News kicks ass!';
$blasp = Blasp::check($sentence);
$blasp->getSourceString(); // "Laravel News kicks ass!"
$blasp->getCleanString(); // "Laravel News kicks ***!"
$blasp->hasProfanity(); // true
$blasp->getProfanitiesCount(); // 1
$blasp->getUniqueProfanitiesFound(); // ['ass']
Besides straight matches, this package also matches various like
substitution (i.e., a$$
), obscured profanity (i.e.,
a-s-s
), repeated letters, and combinations of all of
them. Along with the Blasp
facade, this package
provides a validation rule you can use to validate form input for
profanity:
$validated = $request->validate([
'sentence' => ['blasp_check'],
]);
// If the sentence contains profanities, validation will fail.
You can learn more about this package, get full installation instructions, and view the source code on GitHub.
The post Blasp is a Profanity Filter Package for Laravel appeared first on Laravel News.
Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.
Read more https://laravel-news.com/blasp-profanity-filter-package-for-laravel
Struggling to keep your multilingual Laravel application's translations up-to-date? Casper Bottelet's Translation Checker is the solution. This package scans your project's code for strings that need translation and compares them to your language files. If it finds a missing translation key, it will add it with an empty value, making it easy for you to fill in the correct translation. What is also nice about this package is that even though it works with Laravel, it supports various frontend frameworks like Vue.js, React, and Svelte as well.
To install this package, run:
composer require bottelet/translation-checker --dev
Next you can use the versatile check
command to
check, manage, and update translations:
php artisan translations:check en
The Translation Checker can also be configured to use translation services (from Google, OpenAI or DeepL), specify source paths, and define the language folder. You can publish a configuration file with the following command:
php artisan vendor:publish --provider="Bottelet\TranslationChecker\TranslationCheckerServiceProvider"
The package has some additional commands that you can also use:
translations:clean
- Will clean translations by
removing unused keystranslations:find-missing
- Will find and add any
missing translationstranslations:sort
- Will sort your translation
filestranslations:sync
- Will sync translations between
language filesLearn more about this package by reading the documentation and view the source code on Github at Bottelet/translation-checker.
The post Translation Checker appeared first on Laravel News.
Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.
Read more https://laravel-news.com/translation-checker