Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $hashids = new Hashids('SEKALISAHAJAGENERATESALT', 8, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890');
- $host = Host::create([
- 'name' => request('name'),
- 'description' => request('description')
- ]);
- $host->update([
- 'host_id' => $hashids->encode($host->id);
- ]);
- return back();
Add Comment
Please, Sign In to add comment