Level 2
By using skip
$p = \App\Product::skip(1)->first(); // get a second
$p = \App\Product::skip(2)->first(); // get a third
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
In video, Jeff changed first price using
$p = All\Product::first();
$p->price = 8000
$p->save();
But how to change second, or third? There is no second, or third? There is no REPL within php artisan tinker?
Please or to participate in this conversation.