Giter VIP home page Giter VIP logo

voyager-projects's Introduction

Voyager Projects

This package provides a basic model and views for the laravel voyager admin panel.

Note: This package does not use the hooks extension management from voyager.

Installation

You can install this package using composer.

composer require tjventurini/voyager-projects 

This package needs to have the voyager.prefix settings available in the voyager configuration file. Put the following to the top of your voyager configuration file configuration.

return [

    /*
    |--------------------------------------------------------------------------
    | Voyager Prefix
    |--------------------------------------------------------------------------
    |
    | The global voyager prefix (eg. `admin`). Make sure that it is the same
    | slug, as in voyager.user.redirect setting below.
    |
    */
    
    'prefix' => 'admin',

    ...

After updating the voyager configuration, you can just call the install command of this package.

php artisan voyager-projects:install

If you want to install voyager or the demo content with it, you can add the following flags.

php artisan voyager-projects:install --voyager --demo

If you ever need to republish all assets of this package, you can use the --force flag for that.

php artisan voyager-projects:install --force

Of course you can combine all of these flags.

Projects Widget

The project widget is a small utility, that helps you select the project scope you want to work with and save it to the session. To add it to the voyager navigation, just copy the following line into your resources/views /vendor/voyager/dashboard/sidebar.blade.php file inside of your voyager resources.

</div>
    <!-- past this line in around line 30, just before the adminmenu container -->
    @include('voyager::projects.dashboard.project_select')
<div id="adminmenu">

Now you should have a drop-down item in the navigation of your voyager admin panel. There you can select the project you want to work in.

voyager-projects's People

Contributors

devig avatar tjventurini avatar

Watchers

 avatar

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.