When using artisan tinker, after an exception, database connection is closed
up vote
0
down vote
favorite
When I am saving in php artisan tinker I get this error
php fatal error: call to undefined function save() in psy shell code
on line 1
php artisan tinker
$r = AppRequisition::find(1);
$r->inspector_user_id = 4;
$r->save();

laravel-5.4
add a comment |
up vote
0
down vote
favorite
When I am saving in php artisan tinker I get this error
php fatal error: call to undefined function save() in psy shell code
on line 1
php artisan tinker
$r = AppRequisition::find(1);
$r->inspector_user_id = 4;
$r->save();

laravel-5.4
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
When I am saving in php artisan tinker I get this error
php fatal error: call to undefined function save() in psy shell code
on line 1
php artisan tinker
$r = AppRequisition::find(1);
$r->inspector_user_id = 4;
$r->save();

laravel-5.4
When I am saving in php artisan tinker I get this error
php fatal error: call to undefined function save() in psy shell code
on line 1
php artisan tinker
$r = AppRequisition::find(1);
$r->inspector_user_id = 4;
$r->save();

laravel-5.4
laravel-5.4
asked Nov 9 at 22:44
Mahmoud Khosravi
5618
5618
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53234213%2fwhen-using-artisan-tinker-after-an-exception-database-connection-is-closed%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown