Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Development
Habbo Web Application for Arcturus Emulator (Laravel, Inertia.js and Tailwindcss)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Laravel" data-source="post: 466516" data-attributes="member: 97455"><p>I like to give people the easy and more understandable way when they're reading their code, but the flexibility is there, you can do the following:</p><p></p><p>[CODE=php] /**</p><p> * Handle the incoming request.</p><p> *</p><p> * @param \Illuminate\Http\Request $request</p><p> * @return \Illuminate\Http\Response</p><p> */</p><p> public function __invoke(Request $request, RconService $rcon)</p><p> {</p><p> $rcon->giveDiamonds($request->user(), $product->reward);</p><p> $rcon->sendPacket('givepoints', [</p><p> 'user_id' => $request->user()->id,</p><p> 'points' => 10000,</p><p> 'type' => 5,</p><p> ]);</p><p> }[/CODE]</p><p></p><p>As for the .env thing, from my experience with working on Laravel (and building libraries for Laravel), You use the env file as long as it makes sense to sit in the environment as it's then passed to the configuration files.</p><p></p><p>I don't know if this is a Habbo dev thing, but having everything in the database is not always the best thing to do, I save you tons of queries by having config files <img src="/styles/default/xenforo/smilies/emojione/biggrin.png" class="smilie" loading="lazy" alt=":D" title="Big Grin :D" data-shortname=":D" /></p><p>[automerge]1609621389[/automerge]</p><p><strong>As a quick update:</strong></p><p>I have added the ability to "top up your account" via PayPal and implemented a store to purchase diamonds and Duckets <img src="/styles/default/xenforo/smilies/emojione/biggrin.png" class="smilie" loading="lazy" alt=":D" title="Big Grin :D" data-shortname=":D" /></p><p>[automerge]1609621443[/automerge]</p><p>[URL unfurl="true"]https://pabbo-hotel.com/store[/URL]</p><p>[ATTACH=full]11884[/ATTACH]</p></blockquote><p></p>
[QUOTE="Laravel, post: 466516, member: 97455"] I like to give people the easy and more understandable way when they're reading their code, but the flexibility is there, you can do the following: [CODE=php] /** * Handle the incoming request. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function __invoke(Request $request, RconService $rcon) { $rcon->giveDiamonds($request->user(), $product->reward); $rcon->sendPacket('givepoints', [ 'user_id' => $request->user()->id, 'points' => 10000, 'type' => 5, ]); }[/CODE] As for the .env thing, from my experience with working on Laravel (and building libraries for Laravel), You use the env file as long as it makes sense to sit in the environment as it's then passed to the configuration files. I don't know if this is a Habbo dev thing, but having everything in the database is not always the best thing to do, I save you tons of queries by having config files :D [automerge]1609621389[/automerge] [B]As a quick update:[/B] I have added the ability to "top up your account" via PayPal and implemented a store to purchase diamonds and Duckets :D [automerge]1609621443[/automerge] [URL unfurl="true"]https://pabbo-hotel.com/store[/URL] [ATTACH type="full"]11884[/ATTACH] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Development
Habbo Web Application for Arcturus Emulator (Laravel, Inertia.js and Tailwindcss)
Top