artincms/laravel_portfolio

Official ArtinCMS.com Laravel Gallery Systems Package

v1.0 2018-09-03 04:21 UTC

This package is auto-updated.

Last update: 2024-03-13 16:08:47 UTC


README

laravel Portfolio manager is a laravel package

Requiments

  • PHP >= 7.0
  • Laravel 5.5|5.6
  • vue js (if you want use our vue js template)

Installation

Quick installation

composer require artincms/laravel_portfolio
publish vendor
 $ php artisan vendor:publish --provider="ArtinCMS\LPM\LPMServiceProvider" --force
migrate tabales
   $ php artisan migrate
   
seed larave file manager data to lfm_file_mime_type table
  php artisan db:seed --class="ArtinCMS\LFM\Database\Seeds\FilemanagerTableSeeder"
  
for more learn about laravel file manager setup you can visit laravel file manager

usage

for Manage portfolio manager backend url is :
 http://yourDomain/LPM/Portfolio
  

for use laravel portfolio in frontend of site you should use encode below html code in your project :

   <div id="portfolio">
        <laravel_portfolio :category_id="1" :lang_id=1 :rtl=true></laravel_portfolio>
    </div>

and create javascript file as sample bellow .

window.Vue = require('vue');
Vue.component('laravel_portfolio', require('./components/laravel_portfolio/laravel_portfolio.vue'));
window.onload = function () {
    const portfolio = new Vue({
        el: '#portfolio',
    });
}

if you dont want devlope this template you can just load this javascript file

    <script src="{{ asset('vendor/laravel_portfolio/components/portfolio.min.js') }}" defer></script>

Props

Props Type Default Description
gallery_id Number 0 gallery you want show if you set it to 0 show all gallery in main root
lang_id Number null The language item if set to null select all language
rtl Boolean true the direction of page rtl set true and ltr set to false

Other my Vue JS plugins

Project Description npm install
axios Promise based HTTP client for the browser and node.js npm install axios
Vue Translate Plugin A VueJS (1.x, 2.0+) plugin for basic translations. npm i vue-translate-plugin