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
class ApiController extends Controller | |
{ | |
/** | |
* Section dependant dropdown system | |
* This is for committee create | |
* | |
* @return \Illuminate\Http\Response | |
*/ | |
public function sectionDropDownData() | |
{ |
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
........................................................ | |
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 |
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
<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> |
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
<!-- 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> |
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 | |
$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); |
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
<!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"); | |
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
//text | |
public function searchPostOrUser(Request $request){ | |
$text = '%'. $request->search_text.'%'; | |
// $ips_list = \DB::table('app_post')->where('title', '=', '1')->limit(5); | |
$recipes = DB::table("app_post")->select("id", "title") | |
->where("title", 'LIKE' , $text); |
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
................................. | |
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]; |
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
................................... | |
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> |
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
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; |