定制 nfgarching/laravel-starter 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

nfgarching/laravel-starter

最新稳定版本:1.1

Composer 安装命令:

composer create-project nfgarching/laravel-starter

包简介

Laravel 12 Template with Livewire Auth + Bootstrap 5.3

README 文档

README

Stable Version Total Downloads License

About this template

This is a laravel template repository project, which can be used as a basis for future projects. This template comes with Livewire Auth and Bootstrap 5 CDN. Optional You can use node_modules or sail.

Features

The Laravel template project comes with the following features:

Installation

Create the project with composer

# Create application
composer create-project nfgarching/laravel-starter {project_name} --stability=dev

# Go into app's directory
cd {my-project}

# Start application
php artisan serve

Create own Git-Repository

# Go into app's directory
cd {my-project}

# Start a new Git-Repository
git init
git add .
git commit -m 'initial commit'

Optional install sail

composer require laravel/sail --dev
php artisan sail:install
./vendor/bin/sail up

Use of Bootstrap 5

Default with CDN

Template include Bootstrap’s production-ready CSS and JavaScript via CDN without the need for any build steps.

Optional install Bootsrap 5 with Vite

Goto directory resource/views/components/layouts/app/

Add in head.blade.php

@vite(['resources/css/app.scss', 'resources/js/app.js'])

Remove in head.blade.php

<!-- Bootstrap CSS + Icons -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"
    integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">

Remove in script.blade.php

<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
    integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous">
</script>

Running Vite

cd {my-project}
npm install && npm run build
composer run dev

License

Distributed under the MIT License. See LICENSE for more information.

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-23