Support the ongoing development of Laravel.io →
Database Eloquent Packages

I'm new to laravel. I'm using sjousse/laravel-unique-reference

I don't know how to configure/ generate reference number.

Already there have given example of usage. But it not enough for me. How to update last inserted record with reference?


<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use SJousse\UniqueReference\UniqueReference;


class Application extends Model {

	use UniqueReference;

When should i call to generate number?

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

malinga91 malinga91 Joined 21 Jun 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.