mirror of
https://github.com/michaelachrisco/ReadOnlyTraitLaravel.git
synced 2024-12-25 15:17: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
|
||||
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;
|
||||
class User extends Illuminate\Database\Eloquent\Model {
|
||||
use Michael\ReadOnly\ReadOnlyTrait;
|
||||
use MichaelAChrisco\ReadOnly\ReadOnlyTrait;
|
||||
}
|
||||
|
||||
$legacyUser = new User;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "michael/readonly",
|
||||
"name": "michaelachrisco/readonly",
|
||||
"description": "Readonly Models for Laravel 5",
|
||||
"authors": [
|
||||
{
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<?php
|
||||
require_once('src/ReadOnlyTrait.php');
|
||||
// use Michael\ReadOnlyTrait;
|
||||
// use MichaelAChrisco\ReadOnlyTrait;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
class User extends Illuminate\Database\Eloquent\Model {
|
||||
use Michael\ReadOnly\ReadOnlyTrait;
|
||||
use MichaelAChrisco\ReadOnly\ReadOnlyTrait;
|
||||
}
|
||||
|
||||
describe("User", function() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
namespace Michael\ReadOnly;
|
||||
namespace MichaelAChrisco\ReadOnly;
|
||||
trait ReadOnlyTrait {
|
||||
public function save(array $options = []){
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue