From 7c6cd1f9cddb944353ffc85c024d173a5db4aea1 Mon Sep 17 00:00:00 2001 From: Sleeping Owl Date: Sat, 8 Nov 2014 00:52:06 +0400 Subject: [PATCH] Demo file User.php updated to support php 5.4 --- src/SleepingOwl/Admin/Commands/stubs/User.stub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SleepingOwl/Admin/Commands/stubs/User.stub b/src/SleepingOwl/Admin/Commands/stubs/User.stub index a8bac7d6..36b02765 100644 --- a/src/SleepingOwl/Admin/Commands/stubs/User.stub +++ b/src/SleepingOwl/Admin/Commands/stubs/User.stub @@ -6,7 +6,7 @@ */ // Create admin model from User class with title and url alias -Admin::model(User::class)->title('Users')->as('users-alias-name')->denyCreating(function () +Admin::model('\User')->title('Users')->as('users-alias-name')->denyCreating(function () { // Deny creating on thursday return date('w') == 4;