Laravel provides the Blade templating engine for rendering data quicky and easily on views. We can combine this rendering engine with our data to process and display user and/or Discord data on the application.
For example, we can use the following snippet to display the currently logged in user's name anywhere on the page:
@auth
Hello, {{ Auth::user()->getDisplayName() }}!
@endauth
Or we can use a simple foreach
loop to display the user's guilds:
@foreach (Auth::user()->guilds as $guild)
{{ $guild->name }}
@endforeach