- https://speakerdeck.com/willroth/50-laravel-tricks-in-50-minutes
- https://www.reddit.com/r/laravel/comments/3to60i/50_laravel_tricks/
- 1. Automatic Model Validation
{ | |
"status": 2, | |
"message": "Server is down for Maintainance", | |
"checkpass": "cc34838b16715f266a2b7759a41f04ab" | |
} |
{ | |
"station": | |
[ | |
{ "name": "Meethi Mirchi Radio", "streamURL": "https://meethimirchihdl-lh.akamaihd.net/i/MeethiMirchiHDLive_1_1@320572/master.m3u8", "imageURL": "https://traderblog.net/images/india/74904.v8.png", "desc": " pop, soul, bollywood, indian, hits", "longDesc": "Radio Mirchi's free internet radio station plays a selection of modern Bollywood Melodies, that will ease your work day." }, | |
{ "name": "Mehfil-E-Ghazal Radio", "streamURL": "https://mirchimahfil-lh.akamaihd.net/i/MirchiMehfl_1@120798/index_1_a-p.m3u8", "imageURL": "https://traderblog.net/images/india/74921.v4.png", "desc": " pop, bollywood, indian", "longDesc": "For every mood and for every emotion, thereТs a ghazal. And you can find your ghazal here at Mehfil-e-Ghazal. From Jagjit Singh to Ghulam Ali, from Pankaj Udhas to Chandan Das to Roop Kumar Rathod youТll find all your favourite ghazals in this Mehfil. Sprinkled with some beautiful shayri and poetry the station will refresh your old memories and create some new...So just choose you |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, | |
b, u, i, center, | |
dl, dt, dd, ol, ul, li, | |
fieldset, form, label, legend, | |
table, caption, tbody, tfoot, thead, tr, th, td, | |
article, aside, canvas, details, embed, |
const { Client } = require("whatsapp-web.js"); | |
const qrcode = require("qrcode-terminal"); | |
const client = new Client(); | |
client.on("qr", (qr) => { | |
qrcode.generate(qr, { small: true }); | |
}); | |
client.on("ready", () => { | |
console.log("Client is ready!"); |
{ | |
"name": "whatsappbot", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "ISC", |
const mongoose = require("mongoose"); | |
const connect = async () => { | |
console.log(process.env.ENV); | |
try { | |
mongoose.connect(process.env.MONGODB_URI, dbConfig, { | |
useNewUrlParser: true, | |
useUnifiedTopology: true, | |
}); | |
} catch (err) { |
const express = require("express") | |
const path = require("path") | |
const multer = require("multer") | |
const app = express() | |
app.set("views",path.join(__dirname,"views")) | |
app.set("view engine","ejs") | |
var storage = multer.diskStorage({ | |
destination: function (req, file, cb) { |
const redux = require("redux"); | |
const applyMiddleware = redux.applyMiddleware; | |
const createStore = redux.createStore; | |
const thunkMiddleware = require("redux-thunk").default; | |
const axios = require("axios"); | |
const initialState = { | |
loading: false, | |
users: [], | |
error: "", |