This file contains 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\Models; | |
class Page extends Eloquent | |
{ | |
protected $table = 'pages'; | |
public function author() | |
{ | |
return $this->belongsTo('User'); | |
} |
This file contains 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\Models; | |
class Article extends Eloquent | |
{ | |
protected $table = 'articles'; | |
public function author() | |
{ | |
return $this->belongsTo('User'); | |
} |
This file contains 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 CreatePagesTable extends Migration { | |
/** | |
* Run the migrations. | |
* |
This file contains 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 CreateArticlesTable extends Migration { | |
/** | |
* Run the migrations. | |
* |
This file contains 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
{ | |
"name": "laravel/laravel", | |
"description": "The Laravel Framework.", | |
"keywords": ["framework", "laravel"], | |
"license": "MIT", | |
"require": { | |
"laravel/framework": "4.0.*", | |
"cartalyst/sentry": "2.0.*", | |
"dflydev/markdown": "v1.0.2", | |
"imagine/Imagine": "v0.4.1" |
This file contains 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> | |
<head> | |
<title>Angular Binding</title> | |
<link rel="stylesheet" href="assets/foundation/foundation.css" /> | |
</head> | |
<body> | |
<div ng-app="MyApp"> | |
<div ng-controller="AvengerCtrl"> | |
<input type="text" ng-model="search.$"/> |
This file contains 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 FirstCtrl($scope) | |
{ | |
$scope.data = {message:"halow"} | |
} |
This file contains 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> | |
<head> | |
<title>Angular Binding</title> | |
<link rel="stylesheet" href="assets/foundation/foundation.css" /> | |
</head> | |
<body> | |
<div ng-app=""> | |
<div ng-controller="FirstCtrl"> | |
<h1>{{data.message + " World"}}</h1> |
This file contains 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> | |
<head> | |
<title>Angular Binding</title> | |
<link rel="stylesheet" href="assets/foundation/foundation.css" /> | |
</head> | |
<body> | |
<div ng-app=""> | |
<input type="text" ng-model="data.message" /> | |
<h1>{{data.message + " World"}}</h1> |
This file contains 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 | |
$active_group = 'default'; | |
$active_record = FALSE; | |
$db['default']['hostname'] = 'Driver={SQL Server};Server=127.0.0.1;Database=databasenya; Uid=sa;Pwd=sa;'; | |
$db['default']['username'] = 'sa'; | |
$db['default']['password'] = 'sa'; | |
$db['default']['database'] = 'databasenya'; | |
$db['default']['dbdriver'] = 'odbc'; | |
$db['default']['dbprefix'] = ''; | |
$db['default']['pconnect'] = FALSE; |
NewerOlder