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
<form method="POST" action="/registation" id="reg-form"> | |
{{ csrf_field() }} | |
<div class="modal-form-padding"> | |
<div class="row"> | |
<div class="col-md-6"> | |
<div class="form-group {{ $errors->has('first_name') ? 'has-error' :'' }}"> | |
<input type="text" class="modal-input-control" placeholder="First Name" name="first_name" id="first_name" value="{{ old('first_name') }}" required> | |
@if ($errors->has('first_name')) | |
<span class="help-block text-danger"> | |
<strong>{{ $errors->first('first_name') }}</strong> |
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
<li> | |
<a href="{{ route('logout') }}" | |
onclick="event.preventDefault(); | |
document.getElementById('logout-form').submit();"> | |
<i class="fa fa-sign-out"></i>Logout | |
</a> | |
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;"> | |
{{ csrf_field() }} | |
</form> | |
</li> |
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
$user->image_url = "profile.jpg"; | |
if ($request->hasFile('user_image_url')) { | |
$image = $request->file('user_image_url'); | |
$image_url = time().$image->getClientOriginalName(); | |
$destinationPath = public_path('/profile-images'); | |
$image->move($destinationPath, $image_url); | |
$user->image_url = $image_url; | |
} |
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
public function userValidation($request) | |
{ | |
$request->validate([ | |
'first_name' => 'required|max:25', | |
'last_name' => 'required|max:25', | |
'email' => 'required|max:50', | |
'user_image_url' => 'image|mimes:jpeg,png,jpg,gif,svg|max: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
$('.tutorial').on('click', function(){ | |
var href = $(this).attr('href'); | |
swal({ | |
title: "Are you sure?", | |
type: "warning", | |
showCancelButton: true, | |
confirmButtonColor: "#DD6B55", | |
confirmButtonText: "Yes, delete it!", | |
cancelButtonText: "No, cancel plx!", |
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
// | |
// Write below codes in class file | |
// _______________________________ | |
<?php | |
/** | |
* Here should be all table and column which will create table | |
*/ | |
class InstallTable | |
{ | |
public static function event() |
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 | |
/** | |
* | |
*/ | |
class ShortCode | |
{ | |
public static function init() | |
{ |
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 | |
$OpsState = new OpsState; | |
$results = $OpsState->index(); | |
?> | |
<div class="bootstrap-wrapper"> | |
<form class="" action="<?php echo esc_url(admin_url('admin-post.php')); ?>" method="POST"> | |
<input type="hidden" name="action" value="update_states_link"> | |
<?php wp_nonce_field('updateStatesLink-nonce', 'updateStatesLink');?> | |
<div class="row"> |
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://winnipeg.canadianskal.club/wp-admin/admin-post.php?action=test |
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
<script> | |
jQuery(function($){ | |
$('#eventStatus').on('change', function (e) { | |
var status = this.value; | |
e.preventDefault(); | |
$('#eventStatus').fadeOut(300); | |
console.log("testing"); |
OlderNewer