-
using laravel queue
Laravel queue can be used for queuing for example sending push notifications to all users, which otherwise using foreach can put strain on server when it needs to iterate over large number of reciepients. the above command creates a new file in apps/jobs directory as SendPushNotification, the contents of which can be like then in…
-
Adding new controller Laravel
-
adding new livewire component from laravel shell
for creating a livewire component including related view you typically run the above command will create a livewire component StaffLogin and a related staff-login.blade.php
-
Integrating web socket in flutter
Then you typically create a service folder and create a dart file like chat_screen.dart with below code and include this class in main.dart
-
Live chat in Laravel using Ratchet
Install ratchet library using composer. Then create a websocket server file example websocker-server.php in project root. example code Then you need to create the chat class which will have methods for socket evens like onOpen, onMessage and onClose etc. like example below. This file Chat.php is typically placed in App/Websockets folder. and finally the chat…
-
Displaying google map and plotting marker dynamically form result
-
Auto complete address from google api
you need to get your api key from google api console for place api and also add the domain where it is being used. Note: Also your input field should have the ID of autocomplete-address as per the code above
-
Joomla query from database and from module example
-
Creating a Module for Joomla
steps are as follows. example content of xml file. Note the admin fields can also be added here with type of field under <config>. step3 – add file mod_myweb_advancedsearch.php with contents like below.This file include require_once for helper.php which is a typical backend for the moduleAlso this file contains links to css and Js.and the…
-
laravel logs path
storages/logs for adding logging in laravel follow this steps
-
vue methods
The v-on directive is used on the <div> element to listen to the ‘click’ event. When the ‘click’ event occurs the ‘writeText’ method is called and the text is changed. example
-
vue on click v:on
v-on on the <button> tag to listen to the ‘click’ event example: