This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$query->andWhere(['>=','date(i_date)',date("Y-m-d")]); | |
$query->andWhere(['<=','date(i_date)',date("Y-m-d")]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#mySelect2') | |
.empty() //empty select | |
.append($("<option/>") //add option tag in select | |
.val("20") //set value for option to post it | |
.text("nabi")) //set a text for show in select | |
.val("20") //select option of select2 | |
.trigger("change"); //apply to select2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#mySelect2").val("{{ids}}").trigger('change'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var values="Test,Prof,Off"; | |
$.each(values.split(","), function(i,e){ | |
$("#strings option[value='" + e + "']").prop("selected", true); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.get('/*', function(req,res,next) { | |
req.session.flash = []; | |
next(); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hooks : { | |
beforeCreate : (record, options) => { | |
record.dataValues.createdAt = Math.floor(Date.now() / 1000); | |
record.dataValues.updatedAt = Math.floor(Date.now() / 1000); | |
}, | |
beforeUpdate : (record, options) => { | |
record.dataValues.updatedAt = Math.floor(Date.now() / 1000); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require( 'express' ), | |
bodyParser = require( 'body-parser' ), | |
pjax = require( './pjax-helper' ); | |
var app = express(); | |
app.set( 'views', __dirname + '/views' ); | |
app.set( 'view engine', 'jade' ); | |
app.use( pjax() ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return [ | |
'Andhra Pradesh (AP)'=>[ | |
'Adilabad', | |
'Anantapur', | |
'Chittoor', | |
'Kakinada', | |
'Guntur', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/topics/laravel-admin-panel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -O https://getcomposer.org/composer.phar | |
mv composer.phar composer | |
chmod +x composer | |
sudo mv composer /usr/local/bin | |
composer |
OlderNewer