Web Backend/Laravel

Laravel integrate Adminlte

xProgrammer 2020. 7. 16. 21:49

$ composer require jeroennoten/laravel-adminlte
$ php artisan adminlte:install

routes/web.php

Route::get('/admin','AdminController@index');

$ php artisan make:controller AdminController

app/Http/Controllers/AdminController.php

<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class AdminController extends Controller
{
    //
    
    public function index(Request $request)
    {
        return view('admin');
    }
}

resources/views/admin.blade.php

@extends('adminlte::page')

@section('title', 'Dashboard')

@section('content_header')
    <h1>Dashboard</h1>
@stop

@section('content')
    <p>Welcome to AdminLTE</p>
@stop

Useful link

  • config/adminlte.php: edit menu, ......

$ composer update jeroennoten/laravel-adminlte
$ php artisan adminlte:update

'Web Backend > Laravel' 카테고리의 다른 글

Laravel Debugbar  (0) 2020.10.10
Laravel Login  (0) 2020.07.15
Laravel Project with Eclipse  (0) 2020.07.08
Laravel Development Environment (on Windows)  (0) 2020.07.07