<tag>
- eg: v0.0.1
$ git add.
$ git commit -m "Initial release"
$ git tag <tag>
$ git push origin master --tags
# Access PostgreSQL: Once PostgreSQL is installed, you can access it using the command-line tool psql. | |
# Open your terminal or command prompt and run: | |
psql -U postgres | |
# Create a Database: To create a new database, you can use the following SQL command inside the psql prompt: | |
CREATE DATABASE yourdbname; | |
# Create a User with a Password: You can create a new user and set a password for that user using the following SQL commands: | |
CREATE USER yourusername WITH PASSWORD 'yourpassword'; |
old : https://github.com/<username>/<username/project_name.git> | |
new : https://<username>:<personal_token>@github.com/<username/project_name.git> | |
- generate personal token | |
Settings > Developer settings > Personal access tokens | |
git remote set-url origin <url> | |
git remote -v (view remote url) |
$.ajax({ | |
url: '../example.php', | |
type: 'post', | |
data: {}, | |
success: function( data, textStatus, jQxhr ){ | |
// console.log(data); | |
var itemID = <?php echo json_encode($item_id); ?>; | |
// console.log(itemID); | |
$.each(data['data'], function(key, value) { | |
$('select#select_item').append($("<option></option>").attr("value",key).text(value)).trigger('change'); |
$file_name = str_replace(base_url().'/uploads/email/', '', $src); // striping host to get relative path | |
if(unlink($file_name)) | |
{ | |
echo 'File Delete Successfully'; | |
} |
//Model | |
namespace App; | |
use Illuminate\Database\Eloquent\Model; | |
class ModelName extends Model | |
{ | |
protected $table = 'table_name_dB'; | |
} |
//html | |
<input type="checkbox" class="checkbox" name="checkbox[]" value="checkbox 1"/> | |
<input type="checkbox" class="checkbox" name="checkbox[]" value="checkbox 2"/> | |
<p id="validation"></p> | |
//form submit | |
$('#form-id').submit(function(evt){ | |
evt.preventDefault(); | |
... | |
if(!$('.checkbox').is(":checked")) { |