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 _grid = $("#companies").data("kendoGrid"); | |
$("#companies").data("kendoGrid").dataSource.bind("change", function(e) { | |
// let's check whether the event is fired by a filter? | |
var filter = _grid.dataSource.filter(); | |
if(filter) { | |
console.log("there is a filter now"); | |
/* I know this because I have added a filter to the "id" column when the grid initialized. Nevertheless, we should control whether filter is our predefined filter or not.*/ | |
if(filter.filters[0].field=="id") { |
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 events = [ | |
{ | |
"id": 37, | |
"projectId": 145, | |
"description": "", | |
"dutiesId": "2", | |
"title": "Halı saha ", | |
"start": "2014-09-15T00:00:00.000Z", | |
"end": "2014-09-22T00:00:00.000Z", | |
"isAllDay": 1, |
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
$this->sqlquerybuilder->select(array( | |
"project.id", | |
"company.explanation AS companyName", | |
"project.projectCode", | |
"project.projectName" | |
)) | |
->from("c_project project") | |
->join("left", "p_company company", array("company.id=cariNo")) | |
->join("left", "p_projectStatus projectStatus", array("projectStatus.id=project.projectStatus")) | |
->join("left", "c_users technicPersonal", array("project.projectTechnicAuthorized=technicPersonal.usrId")) |
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 namespace App\DBModel; | |
use Illuminate\Auth\Authenticatable; | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Auth\Passwords\CanResetPassword; | |
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; | |
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract; | |
class User extends Model implements AuthenticatableContract, CanResetPasswordContract { |
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 namespace App\DBModel; | |
use Illuminate\Database\Eloquent\Model; | |
class Role extends Model { | |
// | |
public $timestamps = false; | |
public function user() |
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 | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class CreateUsersTable extends Migration { | |
/** | |
* Run the migrations. | |
* |
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 | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class CreateRolesTable extends Migration { | |
/** | |
* Run the migrations. | |
* |
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
"autoload": { | |
"classmap": [ | |
"database" | |
], | |
"psr-4": { | |
"App\\": "app/", | |
"Modules\\": "app/modules" | |
} | |
}, |
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 [ | |
'modules'=>array( | |
"admin", | |
"applicant", | |
"employer", | |
"home", | |
"auth" | |
), | |
]; |
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 namespace App\Modules; | |
class ServiceProvider extends \Illuminate\Support\ServiceProvider | |
{ | |
public function boot() | |
{ | |
$modules = config("module.modules"); | |
while (list(,$module) = each($modules)) { | |
if(file_exists(__DIR__.'/'.$module.'/routes.php')) { | |
include __DIR__.'/'.$module.'/routes.php'; |