DeveloperBreeze

Blade View in Laravel Extending Layout

@extends('layouts.app')

@section('content')
    <div class="container">
        <h1>Welcome to My Page</h1>
    </div>
@endsection

Related Posts

More content you might like

Tutorial

Creating Personal Access Tokens for a Custom Model in Laravel

Let's assume you have a custom model called Customer. We'll configure this model to issue personal access tokens.

use Laravel\Sanctum\HasApiTokens;
use Illuminate\Foundation\Auth\User as Authenticatable;

class Customer extends Authenticatable
{
    use HasApiTokens;

    protected $fillable = ['name', 'email'];

    // Define the relationship with tokens
    public function tokens()
    {
        return $this->morphMany(\Laravel\Sanctum\PersonalAccessToken::class, 'tokenable');
    }
}

Oct 24, 2024
Read More

Discussion 0

Please sign in to join the discussion.

No comments yet. Be the first to share your thoughts!