Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update master.stub #1669

Merged
merged 2 commits into from
Oct 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 25 additions & 15 deletions src/Commands/stubs/views/master.stub
Original file line number Diff line number Diff line change
@@ -1,19 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Module $STUDLY_NAME$</title>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">

{{-- Laravel Vite - CSS File --}}
{{-- {{ module_vite('build-$LOWER_NAME$', 'Resources/assets/sass/app.scss') }} --}}
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

</head>
<body>
@yield('content')
<title>$STUDLY_NAME$ Module - {{ config('app.name', 'Laravel') }}</title>

{{-- Laravel Vite - JS File --}}
{{-- {{ module_vite('build-$LOWER_NAME$', 'Resources/assets/js/app.js') }} --}}
</body>
</html>
<meta name="description" content="{{ $description ?? '' }}">
<meta name="keywords" content="{{ $keywords ?? '' }}">
<meta name="author" content="{{ $author ?? '' }}">

<!-- Fonts -->
<link rel="preconnect" href="https://fonts.bunny.net">
<link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet" />

{{-- Vite CSS --}}
{{-- {{ module_vite('build-$LOWER_NAME$', 'resources/sass/app.scss') }} --}}
</head>

<body>
{{ $slot }}

{{-- Vite JS --}}
{{-- {{ module_vite('build-$LOWER_NAME$', 'resources/js/app.js') }} --}}
</body>
Loading