GithubHelp home page GithubHelp logo

AdminLTE integration about ticketit HOT 14 CLOSED

MACscr avatar MACscr commented on July 17, 2024
AdminLTE integration

from ticketit.

Comments (14)

MACscr avatar MACscr commented on July 17, 2024

Well I got it partly working by manually editing the admin template files $master setting to a static value of:

@extends('backend.layouts.master')

and then changing the admin_route in config/ticketit.php:

'admin_route' => 'admin/tickets',

and now it will show the ticket admin index, but when I go to a link, i get:

ErrorException in UrlGenerator.php line 278: Route [admin/tickets.status.create] not defined. (View: /var/www/html/laravel-5-boilerplate/resources/views/vendor/ticketit/admin/status/index.blade.php)

and

InvalidArgumentException in UrlGenerator.php line 278: Route [admin/tickets.status.create] not defined.

Guess I have to figure a way around that. hmm.

from ticketit.

fusiondesign avatar fusiondesign commented on July 17, 2024

Set admin_route to "admin" and main_route to "tickets" right?

from ticketit.

MACscr avatar MACscr commented on July 17, 2024

Nope, I don't think they compound like that. Unfortunately then I only get 404's for any of the ticket admin area.

from ticketit.

fusiondesign avatar fusiondesign commented on July 17, 2024

Easy enough. Change admin_route to dashboard. Now make a blank view for dashboard and you can list users tickets, stats, etc there.

from ticketit.

fusiondesign avatar fusiondesign commented on July 17, 2024

I'm taking a stab in the dark and guessing that the Boilerplate reserves /admin// and so does Ticketit based on your config.

from ticketit.

MACscr avatar MACscr commented on July 17, 2024

but admin/tickets worked fine (I think). Just not any of the sub pages.

from ticketit.

fusiondesign avatar fusiondesign commented on July 17, 2024

Trust me. Just set it to Dashboard or something except admin. Then navigate to /dashboard/priority in url. I'd try a suggestion before saying "but" lol :D

from ticketit.

MACscr avatar MACscr commented on July 17, 2024

ok, so dashboard is my index for my user area already and I am really wanting to integrate the admin area of the ticket system into the actual admin area of the app.

from ticketit.

MACscr avatar MACscr commented on July 17, 2024

Sorry, will try something else. missed that point

from ticketit.

fusiondesign avatar fusiondesign commented on July 17, 2024

You wanted to make it work, I got it to work :)

Until we get some code updates, I'd suggest redirect()->route('admin.index'); for now.

from ticketit.

fusiondesign avatar fusiondesign commented on July 17, 2024

You know the reason you publish views is so you can tweak them :) -- You never actually have to link to the admin route anywhere, ever if you adjust the view html

from ticketit.

MACscr avatar MACscr commented on July 17, 2024

Actually just keeping it at the default of ticket-admin worked. Adjusting the master path in the templates as I mentioned earlier kept the admin view. Thanks!

from ticketit.

fusiondesign avatar fusiondesign commented on July 17, 2024

Good to know!

from ticketit.

MACscr avatar MACscr commented on July 17, 2024

Yep. My admin url might not be as pretty as I would have liked, but this works well enough. Woo hoo!

from ticketit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.