mirror of
https://github.com/michaelachrisco/ReadOnlyTraitLaravel.git
synced 2024-12-26 07:37:20 -08:00
Change vendor name. Michael already taken.
This commit is contained in:
parent
77e0de5566
commit
40dbb9ef0b
4 changed files with 6 additions and 6 deletions
|
@ -8,10 +8,10 @@ This is only a simple demonstration of the model.
|
||||||
```php
|
```php
|
||||||
<?php
|
<?php
|
||||||
require_once('src/ReadOnlyTrait.php'); //Or register under your config/App.php
|
require_once('src/ReadOnlyTrait.php'); //Or register under your config/App.php
|
||||||
// use Michael\ReadOnlyTrait; //optional
|
// use MichaelAChrisco\ReadOnlyTrait; //optional
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
class User extends Illuminate\Database\Eloquent\Model {
|
class User extends Illuminate\Database\Eloquent\Model {
|
||||||
use Michael\ReadOnly\ReadOnlyTrait;
|
use MichaelAChrisco\ReadOnly\ReadOnlyTrait;
|
||||||
}
|
}
|
||||||
|
|
||||||
$legacyUser = new User;
|
$legacyUser = new User;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "michael/readonly",
|
"name": "michaelachrisco/readonly",
|
||||||
"description": "Readonly Models for Laravel 5",
|
"description": "Readonly Models for Laravel 5",
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
require_once('src/ReadOnlyTrait.php');
|
require_once('src/ReadOnlyTrait.php');
|
||||||
// use Michael\ReadOnlyTrait;
|
// use MichaelAChrisco\ReadOnlyTrait;
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
class User extends Illuminate\Database\Eloquent\Model {
|
class User extends Illuminate\Database\Eloquent\Model {
|
||||||
use Michael\ReadOnly\ReadOnlyTrait;
|
use MichaelAChrisco\ReadOnly\ReadOnlyTrait;
|
||||||
}
|
}
|
||||||
|
|
||||||
describe("User", function() {
|
describe("User", function() {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
namespace Michael\ReadOnly;
|
namespace MichaelAChrisco\ReadOnly;
|
||||||
trait ReadOnlyTrait {
|
trait ReadOnlyTrait {
|
||||||
public function save(array $options = []){
|
public function save(array $options = []){
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue