Skip to content

Instantly share code, notes, and snippets.

View talha08's full-sized avatar
👨‍💻
Easy Life, Busy Day

Md Abu Talha talha08

👨‍💻
Easy Life, Busy Day
View GitHub Profile
class ApiController extends Controller
{
/**
* Section dependant dropdown system
* This is for committee create
*
* @return \Illuminate\Http\Response
*/
public function sectionDropDownData()
{
........................................................
Route:
........................................................
Route::get('events/file-upload', array('as' => 'event.eventFileUpload', 'uses' => 'EventController@fileUploadView'));
Route::post('dropzone/uploadFiles', array('as' => 'event.upload', 'uses' => 'EventController@fileUpload'));
........................................................
Function:
........................................................
//view method
<br/>
<!-- Vertical Steps Example -->
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
@include('includes.alert')
<div class="panel-heading">
<h3 class="panel-title">Sign Up Form</h3>
</div>
<!-- Wizard with Validation -->
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Wizard with Validation</h3>
</div>
<div class="panel-body">
<form id="wizard-validation-form" action="#">
<div>
<?PHP
$banglaDate = '০১:৫১, জুন ০৬, ২০১৬';
$search_array= array("১", "২", "৩", "৪", "৫", "৬", "৭", "৮", "৯", "০", "জানুয়ারি", "ফেব্রুয়ারি", "মার্চ", "এপ্রিল", "মে", "জুন", "জুলাই", "আগস্ট ", "সেপ্টেম্বর", "অক্টোবর", "নভেম্বর", "ডিসেম্বর", ":", ",");
$replace_array= array("1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ":", ",");
// convert all bangle char to English char
$en_number = str_replace($search_array, $replace_array, $banglaDate);
<!DOCTYPE html>
<html>
<body>
<?php
$string = "A dowry deaths is a murder or suicide of a married woman caused by a dispute over her dowry.[4] In some cases, husbands and in-laws will attempt to extort a greater dowry through continuous harassment and torture which sometimes results in the wife committing suicide";
$words = array("women", "murder","rape","female","dowry");
.................................
Function
.................................
Route::get('company/search', function(){
$data = Input::get('term');
$company = App\Company::where('name', 'LIKE', $data.'%' )->get();
foreach ($company as $query)
{
$results[] = [ 'id' => $query->id, 'value' => $query->name];
...................................
View
...................................
{!! Form::open(array('route' => 'jobSeeker.educationStore', 'novalidate' => 'novalidate' , 'method' => 'post', 'class' => 'cmxform form-horizontal tasi-form')) !!}
<div class="form-control">
{!! Form::label('institution', "School/University Name*", array('class' => '')) !!}
{!! Form::text('institution[]', null, array('class' => 'form-control', 'placeholder' => '', 'required' => 'required', 'aria-required' =>'true')) !!}
<br>
</div>
@talha08
talha08 / countries.sql
Created December 1, 2016 14:51 — forked from adhipg/countries.sql
Sql dump of all the Countries, Country Codes, Phone codes.
CREATE TABLE IF NOT EXISTS `country` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`iso` char(2) NOT NULL,
`name` varchar(80) NOT NULL,
`nicename` varchar(80) NOT NULL,
`iso3` char(3) DEFAULT NULL,
`numcode` smallint(6) DEFAULT NULL,
`phonecode` int(5) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;