Download the PHP package agenciafmd/admix-categories without Composer

On this page you can find all versions of the php package agenciafmd/admix-categories. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package admix-categories

F&MD - Categories

Área Administrativa

Downloads

Instalação

Configurações

Publique o arquivo de configuração

No arquivo config/admix-categories.php adicione as categorias que serão utilizadas.

Os slugs são utilizados para identificar as categorias na rota.

Incorporando ao seu pacote

Vamos usar o pacote admix-articles como exemplo

Mova o arquivo config/admix-categories.php e para packages/agenciafmd/admix-articles/config/admix-categories.php

Carregue os arquivos em packages/agenciafmd/admix-articles/src/Providers/ArticleServiceProvider.php

Permissões (TODO)

No arquivo packages/agenciafmd/admix-articles/config/gate.php adicione antes das configurações do pacote

Politicas (TODO)

Crie o arquivo packages/agenciafmd/admix-articles/src/Policies/CategoryPolicy.php

Registrando as politicas (TODO)

No arquivo packages/agenciafmd/admix-articles/src/Providers/AuthServiceProviders.php adicione

Menu

No arquivo packages/agenciafmd/admix-articles/src/Http/Components/Aside/Article.php modifique a estrutura para aceitar as categorias

Listagem

No arquivo packages/agenciafmd/admix-articles/src/Livewire/Pages/Article/Index.php

Traga o builder da BaseIndex e faça o Eager Loading da categoria

Monte o filters e adicione o filtro da categoria

Monte o columns e adicione a coluna da categoria

Formulário

No arquivo packages/agenciafmd/admix-articles/src/Livewire/Pages/Article/Form.php

Declare o campo, usando o valor que temos no type no singular para "hasOne" e no plural para "hasMany".

Vamos usar category para o hasOne e tags para o hasMany

Alimente os campos no método setModel()

Valide os campos no método rules()

Adicione os campos no método validationAttributes()

Faça o sync no método save()

No arquivo packages/agenciafmd/admix-articles/resources/views/pages/article/form.blade.php use o componente <x-categories::form.select .../>

Model

No arquivo packages/agenciafmd/admix-articles/src/Models/Article.php e adicione

Factory e Seed

Na factory do ArticleFactory adicione o método withTags (note o nome no plural por conta do hasMany) e o método withCategory (note o nome no singular por conta do hasOne "simulado")

Crie o arquivo packages/agenciafmd/admix-articles/src/database/seeds/ArticleCategoryTableSeeder.php e adicione

Faça o mesmo para a tags, mudando o nome do arquivo e o type

No arquivo packages/agenciafmd/admix-articles/src/database/seeds/ArticleTableSeeder.php adicione o método withCategory e o método withTags


All versions of admix-categories with dependencies

PHP Build Version
Package Version
Requires laravel/framework Version 5.8.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package agenciafmd/admix-categories contains the following files

Loading the files please wait ....