Toggle main menu visibility
下載輕鬆架
套件下載
使用手冊
發問討論
網站地圖
:::
登入
登入
帳號
密碼
登入
:::
所有書籍
「南市Laravel研習範例」目錄
MarkDown
2-1 config\app.php
1. VSCode設定
2. config
2-1 config\app.php
2-2 config\admin.php
3. .env
4. routes\web.php
5. resources\views\
5-1 resources\views\layouts\app.blade.php
5-2 resources\views\layouts\nav.blade.php
5-3 resources\views\home.blade.php
5-4 resources\views\welcome.blade.php
5-5 resources\views\auth\register.blade.php
5-6 resources\views\product\index.blade.php
5-7 resources\views\product\show.blade.php
5-8 resources\views\product\add2cart.blade.php
5-9 resources\views\cart\index.blade.php
5-10 resources\lang\zh-TW.json
6. database\migrations
6-1 database\migrations\2019_08_14_101716_change_users_table.php
6-2 database\migrations\2019_08_14_133611_create_products_table.php
6-3 database\migrations\2019_08_15_105956_create_carts_table.php
6-4 database\migrations\2019_08_16_145249_create_orders_table.php
6-5 database\migrations\2019_08_16_145328_create_order_items_table.php
7. app\
7-1 app\Http\Controllers\Auth\RegisterController.php
7-2 app\Http\Controllers\ProductController.php
7-3 app\Http\Controllers\CartController.php
7-4 app\Http\Controllers\OrderController.php
7-5 app\Product.php
7-6 app\User.php
7-7 app\Cart.php
7-8 app\Order.php
7-9 app\OrderItem.php
8. app\Admin\
8-1 app\Admin\routes.php
8-2 app\Admin\Controllers\UserController.php
8-3 app\Admin\Controllers\ProductController.php
3. .env
南市Laravel研習範例 ============= ```php '我的商店-後台管理', /* |-------------------------------------------------------------------------- | Laravel-admin logo |-------------------------------------------------------------------------- | | The logo of all admin pages. You can also set it as an image by using a | `img` tag, eg '
'. | */ 'logo' => '
我的商店
後台管理', /* |-------------------------------------------------------------------------- | Laravel-admin mini logo |-------------------------------------------------------------------------- | | The logo of all admin pages when the sidebar menu is collapsed. You can | also set it as an image by using a `img` tag, eg | '
'. | */ 'logo-mini' => '
後台
', /* |-------------------------------------------------------------------------- | Laravel-admin bootstrap setting |-------------------------------------------------------------------------- | | This value is the path of laravel-admin bootstrap file. | */ 'bootstrap' => app_path('Admin/bootstrap.php'), /* |-------------------------------------------------------------------------- | Laravel-admin route settings |-------------------------------------------------------------------------- | | The routing configuration of the admin page, including the path prefix, | the controller namespace, and the default middleware. If you want to | access through the root path, just set the prefix to empty string. | */ 'route' => [ 'prefix' => env('ADMIN_ROUTE_PREFIX', 'admin'), 'namespace' => 'App\\Admin\\Controllers', 'middleware' => ['web', 'admin'], ], /* |-------------------------------------------------------------------------- | Laravel-admin install directory |-------------------------------------------------------------------------- | | The installation directory of the controller and routing configuration | files of the administration page. The default is `app/Admin`, which must | be set before running `artisan admin::install` to take effect. | */ 'directory' => app_path('Admin'), /* |-------------------------------------------------------------------------- | Laravel-admin html title |-------------------------------------------------------------------------- | | Html title for all pages. | */ 'title' => 'Admin', /* |-------------------------------------------------------------------------- | Access via `https` |-------------------------------------------------------------------------- | | If your page is going to be accessed via https, set it to `true`. | */ 'https' => env('ADMIN_HTTPS', false), /* |-------------------------------------------------------------------------- | Laravel-admin auth setting |-------------------------------------------------------------------------- | | Authentication settings for all admin pages. Include an authentication | guard and a user provider setting of authentication driver. | | You can specify a controller for `login` `logout` and other auth routes. | */ 'auth' => [ 'controller' => App\Admin\Controllers\AuthController::class, 'guard' => 'admin', 'guards' => [ 'admin' => [ 'driver' => 'session', 'provider' => 'admin', ], ], 'providers' => [ 'admin' => [ 'driver' => 'eloquent', 'model' => Encore\Admin\Auth\Database\Administrator::class, ], ], // Add "remember me" to login form 'remember' => true, // Redirect to the specified URI when user is not authorized. 'redirect_to' => 'auth/login', // The URIs that should be excluded from authorization. 'excepts' => [ 'auth/login', 'auth/logout', ], ], /* |-------------------------------------------------------------------------- | Laravel-admin upload setting |-------------------------------------------------------------------------- | | File system configuration for form upload files and images, including | disk and upload path. | */ 'upload' => [ // Disk in `config/filesystem.php`. 'disk' => 'public', // Image and file upload path under the disk above. 'directory' => [ 'image' => 'images', 'file' => 'files', ], ], /* |-------------------------------------------------------------------------- | Laravel-admin database settings |-------------------------------------------------------------------------- | | Here are database settings for laravel-admin builtin model & tables. | */ 'database' => [ // Database connection for following tables. 'connection' => '', // User tables and model. 'users_table' => 'admin_users', 'users_model' => Encore\Admin\Auth\Database\Administrator::class, // Role table and model. 'roles_table' => 'admin_roles', 'roles_model' => Encore\Admin\Auth\Database\Role::class, // Permission table and model. 'permissions_table' => 'admin_permissions', 'permissions_model' => Encore\Admin\Auth\Database\Permission::class, // Menu table and model. 'menu_table' => 'admin_menu', 'menu_model' => Encore\Admin\Auth\Database\Menu::class, // Pivot table for table above. 'operation_log_table' => 'admin_operation_log', 'user_permissions_table' => 'admin_user_permissions', 'role_users_table' => 'admin_role_users', 'role_permissions_table' => 'admin_role_permissions', 'role_menu_table' => 'admin_role_menu', ], /* |-------------------------------------------------------------------------- | User operation log setting |-------------------------------------------------------------------------- | | By setting this option to open or close operation log in laravel-admin. | */ 'operation_log' => [ 'enable' => true, /* * Only logging allowed methods in the list */ 'allowed_methods' => ['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'CONNECT', 'OPTIONS', 'TRACE', 'PATCH'], /* * Routes that will not log to database. * * All method to path like: admin/auth/logs * or specific method to path like: get:admin/auth/logs. */ 'except' => [ 'admin/auth/logs*', ], ], /* |-------------------------------------------------------------------------- | Indicates whether to check route permission. |-------------------------------------------------------------------------- */ 'check_route_permission' => true, /* |-------------------------------------------------------------------------- | Indicates whether to check menu roles. |-------------------------------------------------------------------------- */ 'check_menu_roles' => true, /* |-------------------------------------------------------------------------- | User default avatar |-------------------------------------------------------------------------- | | Set a default avatar for newly created users. | */ 'default_avatar' => '/vendor/laravel-admin/AdminLTE/dist/img/user2-160x160.jpg', /* |-------------------------------------------------------------------------- | Admin map field provider |-------------------------------------------------------------------------- | | Supported: "tencent", "google", "yandex". | */ 'map_provider' => 'google', /* |-------------------------------------------------------------------------- | Application Skin |-------------------------------------------------------------------------- | | This value is the skin of admin pages. | @see https://adminlte.io/docs/2.4/layout | | Supported: | "skin-blue", "skin-blue-light", "skin-yellow", "skin-yellow-light", | "skin-green", "skin-green-light", "skin-purple", "skin-purple-light", | "skin-red", "skin-red-light", "skin-black", "skin-black-light". | */ 'skin' => 'skin-blue-light', /* |-------------------------------------------------------------------------- | Application layout |-------------------------------------------------------------------------- | | This value is the layout of admin pages. | @see https://adminlte.io/docs/2.4/layout | | Supported: "fixed", "layout-boxed", "layout-top-nav", "sidebar-collapse", | "sidebar-mini". | */ 'layout' => ['sidebar-mini', 'sidebar-collapse'], /* |-------------------------------------------------------------------------- | Login page background image |-------------------------------------------------------------------------- | | This value is used to set the background image of login page. | */ 'login_background_image' => '', /* |-------------------------------------------------------------------------- | Show version at footer |-------------------------------------------------------------------------- | | Whether to display the version number of laravel-admin at the footer of | each page | */ 'show_version' => true, /* |-------------------------------------------------------------------------- | Show environment at footer |-------------------------------------------------------------------------- | | Whether to display the environment at the footer of each page | */ 'show_environment' => true, /* |-------------------------------------------------------------------------- | Menu bind to permission |-------------------------------------------------------------------------- | | whether enable menu bind to a permission */ 'menu_bind_permission' => true, /* |-------------------------------------------------------------------------- | Enable default breadcrumb |-------------------------------------------------------------------------- | | Whether enable default breadcrumb for every page content. */ 'enable_default_breadcrumb' => true, /* |-------------------------------------------------------------------------- | Enable/Disable assets minify |-------------------------------------------------------------------------- */ 'minify_assets' => [ // Assets will not be minified. 'excepts' => [ ], ], /* |-------------------------------------------------------------------------- | Enable/Disable sidebar menu search |-------------------------------------------------------------------------- */ 'enable_menu_search' => true, /* |-------------------------------------------------------------------------- | Alert message that will displayed on top of the page. |-------------------------------------------------------------------------- */ 'top_alert' => '', /* |-------------------------------------------------------------------------- | The global Grid action display class. |-------------------------------------------------------------------------- */ 'grid_action_class' => \Encore\Admin\Grid\Displayers\DropdownActions::class, /* |-------------------------------------------------------------------------- | Extension Directory |-------------------------------------------------------------------------- | | When you use command `php artisan admin:extend` to generate extensions, | the extension files will be generated in this directory. */ 'extension_dir' => app_path('Admin/Extensions'), /* |-------------------------------------------------------------------------- | Settings for extensions. |-------------------------------------------------------------------------- | | You can find all available extensions here | https://github.com/laravel-admin-extensions. | */ 'extensions' => [ 'ckeditor' => [ //Set to false if you want to disable this extension 'enable' => true, // Editor configuration 'config' => [ 'lang' => 'zh-TW', 'height' => 300, ], ], ], ]; ```
:::
書籍目錄
展開
|
闔起
快速登入
所有討論區
Tad Search 資料查詢
懶人框架討論區
實戰PHP7+MySQL
XOOPS輕鬆架快速上手
校園網站輕鬆架一般討論區
Booking Helper 預約助手
es_stud_sign 班級報名
es charge 學生收費管理
E-Stud import 學生名冊管理
es_after_school 課後照顧報名
es_exam 學生作業繳交
ES_panel 校務行政面板
es_timetable 課表
ES_youtube 本校影音
info_whats 網路設備記錄
jill booking 場地預約
jill_notice 臨時公告
jill query 簡易查詢
jill receipt 領據填報
kw club 社團報名
kw device 設備借用管理系統
ntpc_oprnid 新北市 OpenID 登入
TinyD嵌入內容模組
ugm contact us 聯絡我們
ugm page 自訂頁面
ugm table 萬用表格
Yaoh Servicelearning 服務學習管理系統
dummy 自訂模組
soone_submit 投稿模組
Tad Adm 站長工具箱
Tad Assignment 作業上傳展示模組
Tad Blocks 進階區塊管理
Tad Book3 線上書籍
Tad Cal 行事曆
Tad Cbox 即時留言簿
Tad Discuss 討論區模組
Tad Embed 崁入模組
Tad Evaluation 評鑑檔案管理
Tad Form 萬用表單模組
Tad FAQ 常見問答
Tad Google 相簿
Tad Gallery 電子相簿
Tad Guide 安裝精靈
Tad Honor 榮譽榜
Tad idioms 背背成語
Tad Link 好站連結
Tad Login 快速登入
Tad Lunch3 午餐資訊
Tad Lunch2 營養午餐公告
Tad Meeting 會議系統
Tad Merage 線上合併套印
Tad News 本站消息
Tad Player 影音播放
Tad RSS 友站新聞
Tad Repair 維修通報
Tad SiteMap網站地圖
Tad Timeline 重要紀事
Tad Themes 佈景管理
Tad Tools 工具包
Tad TV 直播電視
Tad Uploader 檔案上傳模組
Tad Users 大量會員管理
Tad Web 多人網頁模組
MyTabs 我的頁籤
Random Quote 隨機小語
LogCounterX 網站流量統計
Yaoh light 多區塊多層次跑馬燈模組
校園網站輕鬆架功能建議區
佈景討論區
即時留言簿
search
進階搜尋
計數器
今天:
昨天:
總計: