Generating String Acronym in Laravel Get link Facebook X Pinterest Email Other Apps May 27, 2026 use Illuminate\Support\Str;Str::acronym('Gideon Asare') // GA Get link Facebook X Pinterest Email Other Apps Comments
Running MyPhpAdmin on Linux May 27, 2026 sudo / opt / lampp / lampp start // if this error appears on the prompt // XAMPP: Starting Apache...fail. // run this command sudo / etc / init.d / apache2 stop sudo / opt / lampp / lampp start // run this xhost si:localuser:root sudo / opt / lampp$ ls -l manager * // check the link http: // localhost: 8080 / dashboard / // get access xampp.config cd .. / .. / opt / lampp / etc / extra // retriction access to htdocs sudo chmod -R 777 / opt / lampp / htdocs // moving wordprss folder from linux folder to wordpress folder in htdocs mv . / wordpess .. / .. / opt / lampp / htdocs / wordpress // access to wordpress directory cd .. / .. / opt / lampp / htdocs / wordpress // open directory code . Read more
Laravel Working with Dates and Time May 27, 2026 use Carbon\Carbon ; $oldDate = '2023-7-15' ; $todayDate = date ( 'Y-m-d' ) ; //Todday's date 30-07-23 $futureDate = '2023-08-3' ; $parseOldDate = Carbon :: parse ( $oldDate ) ; $parseTodayDate = Carbon :: parse ( $todayDate ) ; $parseFutureDate = Carbon :: parse ( $futureDate ) ; if ( $parseOldDate -> isPast ( ) ) { return "this $oldDate is in the past " ; // check if date is in the past } ... Read more
Comments
Post a Comment