Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
change branding
Browse files Browse the repository at this point in the history
  • Loading branch information
adr1enbe4udou1n committed Sep 10, 2020
1 parent a5463cc commit 4a4a22d
Show file tree
Hide file tree
Showing 46 changed files with 78 additions and 78 deletions.
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "laravel-vuetify-admin"]
[submodule "laravel-admin"]
path = packages/laravel
url = [email protected]:okami101/laravel-vuetify-admin.git
url = [email protected]:okami101/laravel-admin.git
Binary file modified README.md
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ module.exports = (ctx) => ({
},
{
text: "Laravel",
link: "https://github.com/okami101/laravel-vuetify-admin",
link: "https://github.com/okami101/laravel-admin",
},
{
text: "Demo",
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ footer: MIT Licensed | Copyright © 2020 Adrien Beaudouin
<div class="feature">
<img src="/icons/laravel.svg" alt="laravel" />
<h2>Laravel ready</h2>
<p>If you select Laravel as API backend, use official <a href="https://github.com/okami101/laravel-vuetify-admin"><strong>Laravel Vuetify Admin</strong></a> composer package for even more <strong>immediate start from top to bottom</strong>. <strong>Docker support and Server-side API CRUD code generators</strong> included as a bonus !</p>
<p>If you select Laravel as API backend, use official <a href="https://github.com/okami101/laravel-admin"><strong>Laravel Admin</strong></a> composer package for even more <strong>immediate start from top to bottom</strong>. <strong>Docker support and Server-side API CRUD code generators</strong> included as a bonus !</p>
</div>
<div class="feature">
<img src="/icons/books.svg" alt="documented" />
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ To summary :
* [Vue CLI Plugin](getting-started.md) : for immediate start.
* [Tutorial](tutorial.md) : follow this quick tutorial if you want a good starting point.
* [API Platform](api-platform.md) : tutorial with advanced backend API for more real use case.
* [Laravel Vuetify Admin](laravel.md) : for complete top to bottom development experience with Laravel backend.
* [Laravel Admin](laravel.md) : for complete top to bottom development experience with Laravel backend.

**Resources builder :**

Expand Down
6 changes: 3 additions & 3 deletions docs/guide/components/inputs.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ Default init value for `init` :
::: details IMAGE UPLOAD HANDLER
You may need a real backend image upload handler in order to avoid the default base64. Use global `imageUploadUrl` admin TinyMCE options [as explain here](../admin.md#options) for setting a handler URL compatible with TinyMCE 5. It will add a direct upload zone on images plugin and as well as enable drag and drop.

[Laravel Vuetify Admin](../laravel.md) already integrate a functional upload handler that you can activate by adding the upload route :
[Laravel Admin](../laravel.md) already integrate a functional upload handler that you can activate by adding the upload route :

**`routes/api.php`**

Expand All @@ -200,7 +200,7 @@ You may provide admin axios instance to [VuetifyAdmin constructor](../admin.md#i
::: details FILE BROWSER
You may want to bridge the Wysiwyg within a file browser. Use global `fileBrowserUrl` admin TinyMCE options [as explain here](../admin.md#options) for setting a backend file browser solution. It will add a picker button for images and media that allows file selection from the file browser.

If you use any PHP framework you should try `elFinder` which is already integrated on official [Laravel Vuetify Admin](../laravel.md) package :
If you use any PHP framework you should try `elFinder` which is already integrated on official [Laravel Admin](../laravel.md) package :

![file-browser](/assets/inputs/file-browser.png)
:::
Expand Down Expand Up @@ -338,7 +338,7 @@ Raw files will be send into your update or create API according to given `source
::: tip DATA PROVIDER FILE DELETION
This file input will use `VaFileField` or `VaImageField` with `clearable` prop enabled under the hood which allows file removing. It will fill an array which contains media id that should be deleted on backend. You can use `itemValue` prop if media value different than `id`. Then this array will be send to your update API with a specific delete property which will take this name format : `{source}_delete`.

If using Laravel Vuetify Admin, this [RequestMediaTrait](../laravel.md#requestmediatrait) will done already everything for you.
If using Laravel Admin, this [RequestMediaTrait](../laravel.md#requestmediatrait) will done already everything for you.
:::

### Array
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/crud/list.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ A global search filter will be enabled by default. To disable it, use `disableGl

This filter will send the string search query on backend via the key configured on `globalSearchQuery`, which is `q` by default.

Then you have to deal on backend side for SQL processing, for example via a multi columns `LIKE` search. If you use the [separate Laravel package](https://github.com/okami101/laravel-vuetify-admin) for your Laravel app, you can use the dedicated [`SearchFilter`](../laravel.md#search-filter) for that.
Then you have to deal on backend side for SQL processing, for example via a multi columns `LIKE` search. If you use the [separate Laravel package](https://github.com/okami101/laravel-admin) for your Laravel app, you can use the dedicated [`SearchFilter`](../laravel.md#search-filter) for that.

::: tip INTERNAL FILTERS
In addition to exposed filters, you may need some internal filters that user cannot modify through UI. Use `filter` prop for that. It's an simple key-value object that will be automatically sent to your data provider, merged with any other active filters.
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/data-providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ In case of a [translatable resource](i18n.md#resource-translation), Vuetify Admi

[Laravel Data Provider](https://github.com/okami101/vuetify-admin/blob/master/packages/admin/src/providers/data/laravel.js) is one of the available data provider that implements previous contract. You can use it as a base example for implementing yours. If you use standard REST API protocol, only few lines has to be changed, mainly for GET_LIST part and error handling.

This provider is intended to be use by official [Laravel Vuetify Admin](https://github.com/okami101/laravel-vuetify-admin) composer package as [explained on Laravel guide](laravel.md).
This provider is intended to be use by official [Laravel Admin](https://github.com/okami101/laravel-admin) composer package as [explained on Laravel guide](laravel.md).

::: tip EXISTING LARAVEL PROJECT
You can even use it easily without official package if you use [Laravel Query Builder](https://github.com/spatie/laravel-query-builder) which is the perfect package for implementing api resource browsing, mainly for list pages and data iterator component. All rest of crud operations are standard Laravel CRUD operations.
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ If first discover, I highly recommend you to go through the [tutorial](tutorial.
::: tip BACKEND API
You should have a separate API backend project before using this package.

Fortunately you can quickly start with a fully functional Laravel API backend thanks to separated [Laravel Vuetify Admin](https://github.com/okami101/laravel-vuetify-admin) composer package. As a bonus, this package will use an integrated laravel optimized Vue CLI preset for even less install steps. Go [here](laravel.md) for full showcase.
Fortunately you can quickly start with a fully functional Laravel API backend thanks to separated [Laravel Admin](https://github.com/okami101/laravel-admin) composer package. As a bonus, this package will use an integrated laravel optimized Vue CLI preset for even less install steps. Go [here](laravel.md) for full showcase.

In case you want to use it on your custom API, you may probably need to write your own [data provider](data-providers.md).
:::
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/i18n.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ From user point of view, be sure to select targeted locale at first in case of e
:::

::: tip BACKEND
The main work will be on server side of course but you can quickly done that if you use the official [Laravel Vuetify Admin](https://github.com/okami101/laravel-vuetify-admin) composer package, which uses [Spatie Translatable](https://github.com/spatie/laravel-translatable) under the hood (JSON based storage for translations). See the [dedicated Laravel guide section](laravel.md#requesttranslatabletrait) for how it works. Here we talk about client side only.
The main work will be on server side of course but you can quickly done that if you use the official [Laravel Admin](https://github.com/okami101/laravel-admin) composer package, which uses [Spatie Translatable](https://github.com/spatie/laravel-translatable) under the hood (JSON based storage for translations). See the [dedicated Laravel guide section](laravel.md#requesttranslatabletrait) for how it works. Here we talk about client side only.
:::

In order to haver this locale selector appear, you must first pass the list of supported locales for translation :
Expand Down
24 changes: 12 additions & 12 deletions docs/guide/laravel.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Laravel

This guide is a demonstration of how official [Laravel Vuetify Admin](https://github.com/okami101/laravel-vuetify-admin) can heavily facilitates Vuetify Admin integration within laravel backend for full top to bottom development experience. We will also made usage of server and client code generator commands for YAML driven development showcase. Simply quick and done !
This guide is a demonstration of how official [Laravel Admin](https://github.com/okami101/laravel-admin) can heavily facilitates Vuetify Admin integration within laravel backend for full top to bottom development experience. We will also made usage of server and client code generator commands for YAML driven development showcase. Simply quick and done !

::: warning REQUIREMENTS

Expand All @@ -22,7 +22,7 @@ Simply init your project by this simple steps :

```bash
laravel new my-brand-new-project && cd my-brand-new-project
composer require okami101/laravel-vuetify-admin
composer require okami101/laravel-admin
php artisan admin:install
```

Expand Down Expand Up @@ -90,7 +90,7 @@ class Kernel extends HttpKernel
/* ... */
'api' => [
\Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class,
\Okami101\LaravelVuetifyAdmin\Http\Middleware\Impersonate::class,
\Okami101\LaravelAdmin\Http\Middleware\Impersonate::class,
'throttle:60,1',
\Illuminate\Routing\Middleware\SubstituteBindings::class,
],
Expand All @@ -104,7 +104,7 @@ Note as `Impersonate` must be placed just right **AFTER** the `EnsureFrontendReq

### Vue CLI admin UI project

**At the end of installation, a full ready Vue CLI Admin project will be installed inside `admin` sub folder (default) with all required dependencies by using [this preset](https://github.com/okami101/laravel-vuetify-admin/blob/master/preset.json).**
**At the end of installation, a full ready Vue CLI Admin project will be installed inside `admin` sub folder (default) with all required dependencies by using [this preset](https://github.com/okami101/laravel-admin/blob/master/preset.json).**

::: tip UI ADMIN GENERATE COMMAND
You can still regenerate new admin UI without reuse full installer by using `php artisan admin:ui`.
Expand Down Expand Up @@ -361,7 +361,7 @@ use App\Http\Requests\UpdateBook;
use App\Http\Resources\Book as BookResource;
use Spatie\QueryBuilder\AllowedFilter;
use Spatie\QueryBuilder\QueryBuilder;
use Okami101\LaravelVuetifyAdmin\Filters\SearchFilter;
use Okami101\LaravelAdmin\Filters\SearchFilter;

class BookController extends Controller
{
Expand Down Expand Up @@ -457,7 +457,7 @@ class BookController extends Controller

namespace App\Http\Resources;

use Okami101\LaravelVuetifyAdmin\Http\Resources\BaseResource;
use Okami101\LaravelAdmin\Http\Resources\BaseResource;

class Book extends BaseResource
{
Expand All @@ -474,7 +474,7 @@ class Book extends BaseResource
}
```

> Use [Laravel eloquent resource](https://laravel.com/docs/eloquent-resources) and extend specific LaravelVuetifyAdmin base resource mainly for translatable and media API handling.
> Use [Laravel eloquent resource](https://laravel.com/docs/eloquent-resources) and extend specific LaravelAdmin base resource mainly for translatable and media API handling.
:::

::::
Expand All @@ -494,7 +494,7 @@ You may needs to write some factory code for dummy data. Let's write it on next

use App\Book;
use Faker\Generator as Faker;
use Okami101\LaravelVuetifyAdmin\Faker\Provider\Html;
use Okami101\LaravelAdmin\Faker\Provider\Html;

$factory->define(Book::class, function (Faker $faker) {
$faker->addProvider(new Html($faker));
Expand Down Expand Up @@ -911,7 +911,7 @@ And finally the form view :

### Specific resource base

For API resource definition, you may use [Eloquent Resources](https://laravel.com/docs/eloquent-resources) that extends `Okami101\LaravelVuetifyAdmin\Http\Resources\BaseResource` in case you need media or translatable fields support within Vuetify Admin.
For API resource definition, you may use [Eloquent Resources](https://laravel.com/docs/eloquent-resources) that extends `Okami101\LaravelAdmin\Http\Resources\BaseResource` in case you need media or translatable fields support within Vuetify Admin.

This class will do 2 things :

Expand Down Expand Up @@ -943,7 +943,7 @@ The Vuetify Admin file upload component `va-file-input` will take care of all of

### Search filter

If you want use global search in [Vuetify Admin Iterator](crud/list.md), use `Okami101\LaravelVuetifyAdmin\Filters\SearchFilter` with all searchable fields inside allowedFilters method of [Spatie Query Builder](https://docs.spatie.be/laravel-query-builder/v2/features/filtering/) as next :
If you want use global search in [Vuetify Admin Iterator](crud/list.md), use `Okami101\LaravelAdmin\Filters\SearchFilter` with all searchable fields inside allowedFilters method of [Spatie Query Builder](https://docs.spatie.be/laravel-query-builder/v2/features/filtering/) as next :

```php {4}
return new BookCollection(
Expand All @@ -961,12 +961,12 @@ Use `exportOrPaginate` specific macro after end of each QueryBuilder in order to

### Html Faker provider

You can use `Okami101\LaravelVuetifyAdmin\Faker\Provider\Html` for easy html generation your factories :
You can use `Okami101\LaravelAdmin\Faker\Provider\Html` for easy html generation your factories :

```php {6,15,16}
use App\Book;
use Faker\Generator as Faker;
use Okami101\LaravelVuetifyAdmin\Faker\Provider\Html;
use Okami101\LaravelAdmin\Faker\Provider\Html;

$factory->define(Book::class, function (Faker $faker) {
$faker->addProvider(new Html($faker));
Expand Down
6 changes: 3 additions & 3 deletions examples/demo-laravel/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Bookstore API Demo

This demo project is the API backend used by separate Vue CLI [bookstore admin demo](../demo) project, and is a good showcase for backend-side development.
It's also a good platform for developing external [Laravel Vuetify Admin](https://github.com/okami101/laravel-vuetify-admin) composer package.
It's also a good platform for developing external [Laravel Admin](https://github.com/okami101/laravel-admin) composer package.

> [Access to online demo](https://va-demo.okami101.io)
> The [okami101/laravel-vuetify-admin](https://github.com/okami101/laravel-vuetify-admin) composer package is directly symlinked to `packages/laravel` root git submodule folder of this repo.
> The [okami101/laravel-admin](https://github.com/okami101/laravel-admin) composer package is directly symlinked to `packages/laravel` root git submodule folder of this repo.
> So direct live package development is fully working, even inside docker !
## Features
Expand All @@ -14,7 +14,7 @@ It's also a good platform for developing external [Laravel Vuetify Admin](https:
* Authors
* Books
* Reviews
* All [Laravel package features](https://github.com/okami101/laravel-vuetify-admin#features) (account profile, sanctum auth, impersonation, docker files, etc.)
* All [Laravel package features](https://github.com/okami101/laravel-admin#features) (account profile, sanctum auth, impersonation, docker files, etc.)

## How to run

Expand Down
2 changes: 1 addition & 1 deletion examples/demo-laravel/app/Author.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use App\ModelTraits\UserAccessTrait;
use Illuminate\Database\Eloquent\Model;
use Okami101\LaravelVuetifyAdmin\Traits\RequestMediaTrait;
use Okami101\LaravelAdmin\Traits\RequestMediaTrait;
use Spatie\MediaLibrary\HasMedia\HasMedia;
use Spatie\MediaLibrary\Models\Media;
use Spatie\Translatable\HasTranslations;
Expand Down
2 changes: 1 addition & 1 deletion examples/demo-laravel/app/Book.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Carbon;
use Okami101\LaravelVuetifyAdmin\Traits\RequestMediaTrait;
use Okami101\LaravelAdmin\Traits\RequestMediaTrait;
use Spatie\Image\Manipulations;
use Spatie\MediaLibrary\HasMedia\HasMedia;
use Spatie\MediaLibrary\Models\Media;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use App\Http\Resources\User as UserResource;
use Illuminate\Http\Request;
use Okami101\LaravelVuetifyAdmin\Traits\AccountTrait;
use Okami101\LaravelAdmin\Traits\AccountTrait;

class AccountController extends Controller
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use App\Http\Requests\UpdateAuthor;
use App\Http\Resources\Author as AuthorResource;
use Illuminate\Database\Eloquent\Builder;
use Okami101\LaravelVuetifyAdmin\Filters\SearchFilter;
use Okami101\LaravelAdmin\Filters\SearchFilter;
use Spatie\QueryBuilder\AllowedFilter;
use Spatie\QueryBuilder\QueryBuilder;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use App\Http\Resources\BookCollection;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Http\Request;
use Okami101\LaravelVuetifyAdmin\Filters\SearchFilter;
use Okami101\LaravelAdmin\Filters\SearchFilter;
use Spatie\QueryBuilder\AllowedFilter;
use Spatie\QueryBuilder\QueryBuilder;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use App\Http\Resources\Publisher as PublisherResource;
use App\Publisher;
use Illuminate\Http\Request;
use Okami101\LaravelVuetifyAdmin\Filters\SearchFilter;
use Okami101\LaravelAdmin\Filters\SearchFilter;
use Spatie\QueryBuilder\AllowedFilter;
use Spatie\QueryBuilder\AllowedInclude;
use Spatie\QueryBuilder\QueryBuilder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use App\Http\Requests\UpdateReview;
use App\Http\Resources\Review as ReviewResource;
use App\Review;
use Okami101\LaravelVuetifyAdmin\Filters\SearchFilter;
use Okami101\LaravelAdmin\Filters\SearchFilter;
use Spatie\QueryBuilder\AllowedFilter;
use Spatie\QueryBuilder\QueryBuilder;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use App\Http\Resources\User as UserResource;
use App\User;
use Illuminate\Support\Facades\Hash;
use Okami101\LaravelVuetifyAdmin\Filters\SearchFilter;
use Okami101\LaravelAdmin\Filters\SearchFilter;
use Spatie\QueryBuilder\AllowedFilter;
use Spatie\QueryBuilder\QueryBuilder;

Expand Down
6 changes: 3 additions & 3 deletions examples/demo-laravel/app/Http/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Kernel extends HttpKernel
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
\App\Http\Middleware\TrimStrings::class,
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
\Okami101\LaravelVuetifyAdmin\Http\Middleware\Locale::class,
\Okami101\LaravelAdmin\Http\Middleware\Locale::class,
];

/**
Expand All @@ -41,10 +41,10 @@ class Kernel extends HttpKernel

'api' => [
\Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class,
\Okami101\LaravelVuetifyAdmin\Http\Middleware\Impersonate::class,
\Okami101\LaravelAdmin\Http\Middleware\Impersonate::class,
'throttle:300,1',
\Illuminate\Routing\Middleware\SubstituteBindings::class,
\Okami101\LaravelVuetifyAdmin\Http\Middleware\ReadOnly::class,
\Okami101\LaravelAdmin\Http\Middleware\ReadOnly::class,
],
];

Expand Down
2 changes: 1 addition & 1 deletion examples/demo-laravel/app/Http/Resources/Author.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\Http\Resources;

use Okami101\LaravelVuetifyAdmin\Http\Resources\BaseResource;
use Okami101\LaravelAdmin\Http\Resources\BaseResource;

class Author extends BaseResource
{
Expand Down
2 changes: 1 addition & 1 deletion examples/demo-laravel/app/Http/Resources/Book.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\Http\Resources;

use Okami101\LaravelVuetifyAdmin\Http\Resources\BaseResource;
use Okami101\LaravelAdmin\Http\Resources\BaseResource;

class Book extends BaseResource
{
Expand Down
2 changes: 1 addition & 1 deletion examples/demo-laravel/app/Http/Resources/Publisher.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\Http\Resources;

use Okami101\LaravelVuetifyAdmin\Http\Resources\BaseResource;
use Okami101\LaravelAdmin\Http\Resources\BaseResource;

class Publisher extends BaseResource
{
Expand Down
2 changes: 1 addition & 1 deletion examples/demo-laravel/app/Http/Resources/Review.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\Http\Resources;

use Okami101\LaravelVuetifyAdmin\Http\Resources\BaseResource;
use Okami101\LaravelAdmin\Http\Resources\BaseResource;

class Review extends BaseResource
{
Expand Down
Loading

0 comments on commit 4a4a22d

Please sign in to comment.