Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Commit

Permalink
Updating to Laravel 5.1, updating package info and using PSR-4. closes
Browse files Browse the repository at this point in the history
  • Loading branch information
igorsantos07 committed Nov 1, 2015
1 parent c655360 commit 8c2925b
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 26 deletions.
28 changes: 15 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
{
"name": "laravelbook/ardent",
"description": "Self-validating smart models for Laravel 4's Eloquent O/RM",
"name": "laravel-ardent/ardent",
"description": "Self-validating smart models for Laravel 5's Eloquent ORM",
"keywords": ["validation", "laravel", "framework", "eloquent", "database", "sql", "orm", "activerecord", "active record"],
"type": "library",
"homepage": "http://laravelbook.com/",
"license": "BSD-3-Clause",
"authors": [
{
"name": "Igor Santos",
"homepage": "http://www.igorsantos.com.br",
"homepage": "http://igorsantos.com.br",
"email": "[email protected]",
"role": "Developer"
"role": "Maintainer"
},
{
"name": "Max Ehsan",
"role": "Original developer"
}
],
"support": {
"issues": "https://github.com/laravelbook/ardent/issues",
"email": "[email protected]"
"issues": "https://github.com/laravelbook/ardent/issues"
},
"require": {
"php": ">=5.3.0",
"illuminate/support": "~4.1",
"illuminate/database": "~4.1",
"illuminate/validation": "~4.1"
"illuminate/support": "~5.1",
"illuminate/database": "~5.1",
"illuminate/validation": "~5.1",
"illuminate/events": "~5.1"
},
"autoload": {
"psr-0": {
"LaravelBook\\Ardent": "src/"
"psr-4": {
"LaravelArdent\\Ardent": "src/"
}
},
"minimum-stability": "dev"
Expand Down
6 changes: 3 additions & 3 deletions src/LaravelBook/Ardent/Ardent.php → src/Ardent/Ardent.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php namespace LaravelBook\Ardent;
<?php namespace LaravelArdent\Ardent;

/*
* This file is part of the Ardent package.
*
* (c) Max Ehsan <contact@laravelbook.com>
* (c) Max Ehsan <contact@LaravelArdent.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down Expand Up @@ -222,7 +222,7 @@ abstract class Ardent extends Model {
* Create a new Ardent model instance.
*
* @param array $attributes
* @return \LaravelBook\Ardent\Ardent
* @return \LaravelArdent\Ardent\Ardent
*/
public function __construct(array $attributes = array()) {
parent::__construct($attributes);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace LaravelBook\Ardent;
namespace LaravelArdent\Ardent;

class Builder extends \Illuminate\Database\Eloquent\Builder {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php namespace LaravelBook\Ardent\Facades;
<?php namespace LaravelArdent\Ardent\Facades;

/*
* This file is part of the Ardent package.
*
* (c) Max Ehsan <contact@laravelbook.com>
* (c) Max Ehsan <contact@LaravelArdent.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?php namespace LaravelBook\Ardent;
<?php namespace LaravelArdent\Ardent;

/**
* Used when validation fails. Contains the invalid model for easy analysis.
* Class InvalidModelException
* @package LaravelBook\Ardent
* @package LaravelArdent\Ardent
*/
class InvalidModelException extends \RuntimeException {

/**
* The invalid model.
* @var \LaravelBook\Ardent\Ardent
* @var \LaravelArdent\Ardent\Ardent
*/
protected $model;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?php namespace LaravelBook\Ardent\Providers;
<?php namespace LaravelArdent\Ardent\Providers;

/*
* This file is part of the Ardent package.
*
* (c) Max Ehsan <contact@laravelbook.com>
* (c) Max Ehsan <contact@LaravelArdent.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

use Illuminate\Support\ServiceProvider;
use LaravelBook\Ardent\Ardent;
use LaravelArdent\Ardent\Ardent;

class ArdentServiceProvider extends ServiceProvider {

Expand All @@ -28,7 +28,7 @@ class ArdentServiceProvider extends ServiceProvider {
*/
public function boot()
{
$this->package('laravelbook/ardent');
$this->package('LaravelArdent/ardent');
}

/**
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 8c2925b

Please sign in to comment.