Giter Club home page Giter Club logo

ct-argon-dashboard-pro-laravel's Introduction

version GitHub issues open GitHub issues closed

Frontend version: Argon Dashboard v2.0.1. More info at https://www.creative-tim.com/product/argon-dashboard-pro

Free demo

Check out the open-source demo version for a taste of what Argon Dashboard PRO Laravel has to offer https://www.creative-tim.com/product/argon-dashboard-laravel

Table of Contents

Prerequisites

If you don't already have an Apache local environment with PHP and MySQL, use one of the following links:

Also, you will need to install Composer: https://getcomposer.org/doc/00-intro.md
And Laravel: https://laravel.com/docs/10.x

Installation

  1. Unzip the downloaded archive
  2. Copy and paste argon-dashboard-pro-laravel-master folder in your projects folder. Rename the folder to your project's name
  3. In your terminal run composer install
  4. Copy .env.example to .env and updated the configurations (mainly the database configuration: database name, user name and password, set the APP_URL to the right path)
  5. In your terminal run php artisan key:generate
  6. Run php artisan migrate --seed to create the database tables and seed the roles and users tables
  7. Run php artisan storage:link to create the storage symlink (if you are using Vagrant with Homestead for development, remember to ssh into your virtual machine and run the command from there).

Usage

Register a user or login with the default users with different roles from your database and start testing (make sure to run the migrations and seeders for these credentials to be available):

Besides the numerous types of dashboard, you can find pages for editing your profile, pages for managing the users, the roles, the items, the categories and the tags. There are also static pages for profile, for users, for projects, for accounts, for various applications, for ecommerce and different styles of pages for authentication. All the necessary files are installed out of the box and all the needed routes are added to routes/web.php. Keep in mind that all of the features can be viewed once you login using the credentials provided or by registering your own user.

Versions

HTML Vue Laravel
Argon Dashboard HTML Vue Argon Dashboard Argon Dashboard Laravel

Demo

Register Login
Forgot Password Page Reset Password Page
Dashboard Virtual Reality
Profile Page User Management
Role Management Item Management
Category Management Tag Management
View More

Documentation

The documentation for the Material Dashboard Laravel is hosted at our website.

Login

If you are not logged in you can only access this page or the Sign Up page. The default url takes you to the login page where you use the default credentials [email protected] with the password secret but you can change them with the credentials for creator and for member. Logging in is possible only with already existing credentials. For this to work you should have run the migrations. The user also has the option to choose if he wants to be remembered or not.

The App/Http/Controllers/App/LoginController.php handles the logging in of an existing user.

    public function login(Request $request)
    {
        $credentials = $request->validate([
            'email' => ['required', 'email'],
            'password' => ['required'],
        ]);

        if (Auth::attempt(['email' => $request->email, 'password' => $request->password])) {
            $request->session()->regenerate();

            return redirect()->intended('/');
        }

        return back()->withErrors([
            'email' => 'The provided credentials do not match our records.',
        ]);
    }

Register

You can register as a user by filling in the name, email, role and password for your account. For your role you can choose between the Admin, Creator and Member. It is important to know that an admin user has access to all the pages and actions, can delete, add and edit another users, other roles, items, tags or categories; a creator user has acces to category, tag and item management, but can not add, edit or delete other users; a member user has access to the item management but can not take any actions. You can do this by accessing the sign up page from the "Sign Up" button in the top navbar or by clicking the "Sign Up" button from the bottom of the log in form. Another simple way is adding /register in the url.

The App/Http/Controllers/Auth/RegisterController.php handles the registration of a new user.

    $user = User::create([
        'firstname' => $attributes['firstname'],
        'email' => $attributes['email'],
        'role_id' => $attributes['role'],
        'password' => $attributes['password']
    ]);
    auth()->login($user);

Forgot Password

If a user forgets the account's password it is possible to reset the password. For this the user should click on the "here" under the login form.

The App/Http/Controllers/Auth/ResetPassword.php takes care of sending an email to the user where he can reset the password afterwards.

    public function send(Request $request)
    {
        $email = $request->validate([
            'email' => ['required']
        ]);
        $user = User::where('email', $email)->first();

        if ($user) {
            $this->notify(new RecoverPassword($user->id));
            return back()->with('succes', 'An email was send to your email address');
        }
    }

Reset Password

The user who forgot the password gets an email on the account's email address. The user can access the reset password page by clicking the button found in the email. The link for resetting the password is available for 12 hours. The user must add the new password and confirm the password for his password to be updated. The user is redirected to the login page.

The App/Http/Controllers/Auth/ChangePassword.php helps the user reset the password.

    if ($existingUser) {
        $existingUser->update([
            'password' => $attributes['password']
        ]);
        return redirect('login');
    } else {
        return back()->with('error', 'Your email does not match the email who requested the password change');
    }

User Profile

The profile can be accessed by a logged in user by clicking "User Profile" from the sidebar or adding /user-profile in the url. The user can add information like phone number, location or change name, email and password.

The App/Http/Controllers/UserController.php handles the user's profile information.

    $user = User::create([
        'firstname' => $request->get('firstname'),
        'lastname' => $request->get('lastname'),
        'password' => $request->get('password'),
        'role_id' => $request->get('role'),
        'email' => $request->get('email'),
        'gender' => $request->get('gender'),
        'location' => $request->get('location'),
        'phone' => $request->get('phone'),
        'language' => $request->get('language'),
        'birthday' => $birthday,
        'skills' => $request->get('skills')
    ]);

    if($request->file('avatar')) {
        $user->update([
            'avatar' => $request->file('avatar')->store('/', 'avatars')
        ]);
    }
    }

User Management

The user management can be accessed by clicking "User Management" from the Laravel Examples section from the sidebar or by adding "/user-management in the url. This page is available for users with the Admin role and the user is able to add, edit and delete other users. For adding a new user you can press the "Add User". If you would like to edit or delete an user you can click on the Action column. It is also possible to sort the fields or to change pagination.

On the page for adding a new user you will find a form which allows you to fill the information. All pages are generated using blade templates.

The App/Http/Controllers/UserController.php takes care of data validation and creating, editing and removing a user:

    public function destroy($id)
    {
        $user = User::find($id);
        $user->delete();
        return redirect()->route('user-management')->with('succes', 'The user was deleted');
    }

Once the user pressed Send at the end of the form the new user is added to the table. For authorizing this actions have been used policies such as App\Policies\UserPolicy:

    /**
     * Determine whether the authenticate user can manage other users.
     */
    public function manageUsers(User $user)
    {
        return $user->isAdmin();
    }

Role Management

The PRO version lets you add and edit roles to the user. The default roles are Admin, Creator and Member. The role management can be accessed by clicking "Role Management" from the Laravel Examples section of the sidebar or by adding "/role-management in the url. This page is available for users with the Admin role and the user is able to add, edit and delete roles. For adding a new role you can press the "Add Role" button. If you would like to edit or delete a role you can click on the Action column. It is also possible to sort the fields or to search in the fields.

On the page for adding a new role you will find a form which allows you to fill the name and the description of the new role.

The App/Http/Controllers/RoleController.php takes care of data validation and creation of a the new role:

    public function update($id)
    {
        $this->authorize('manage-users', User::class);
        $role = Role::find($id);

        $attributes = request()->validate([
            'name' => ['required',  Rule::unique('roles')->ignore($role->id)],
            'description' => 'required'
        ]);

        $role->update($attributes);

        return redirect()->route('role-management')->with('succes', 'role succesfully updated');
    }

Category Management

The theme has some default categories but an Admin or Creator user can manage these categories.The category management can be accessed by clicking "Category Management" from the Laravel Examples section of the sidebar or by adding "/category-management in the url. The authenticated user can add, edit and delete categories. For adding a new category you can press the "Add Category" button. If you would like to edit or delete a category you can click on the Action column. It is also possible to sort the fields or to search in the fields.

On the page for adding a new category you will find a form which allows you to fill the name and the description of the new category.

The App/Http/Controllers/CategoryController.php takes care of data validation when changing a category and updating it:

    public function update($id)
    {
        $this->authorize('manage-items', User::class);
        $category = Category::find($id);

        $attributes = request()->validate([
            'name' => ['required', Rule::unique('categories')->ignore($category->id)],
            'description' => 'required'
        ]);

        $category->update($attributes);

        return redirect()->route('category-management')->with('succes', 'Category succesfully updated');
    }

Tag Management

The theme has some default tags but an Admin or Creator user can manage these tags.The tag management can be accessed by clicking "Tag Managmenet" from the Laravel Examples section from the sidebar or by adding "/tag-management in the url. The authenticated user can add, edit and delete tags. For adding a new tag you can press the "Add Tag" button. If you would like to edit or delete a tag you can click on the Action column. It is also possible to sort the fields or to search in the fields.

On the page for adding a new category you will find a form which allows you to fill the name and the description of the new tag and on the edit page you will find a similar form for the changes you wish to make.

The /resources/views/laravel/tag/edit.blade.php is the blade template for editing a tag:

    <label for="name" class="form-label">Name</label>
    <div class="mb-3">
        <input type="text" class="form-control" id="name" name="name" value="{{ old('name', $tag->name) }}">
        @error('name')
            <p class='text-danger text-xs'> {{ $message }} </p>
        @enderror
    </div>

Item Management

Item Management is the most advanced example included in the PRO theme because every item has a picture, has a category and has multiple tags. The item management can be accessed by clicking "Item Management" from the Laravel Examples section of the sidebar or by adding "/item-management in the url. The authenticated user as an Admin or Creator can add, edit and delete items. For adding a new item you can press the "Add Item" button. If you would like to edit or delete an item you can click on the Action column. It is also possible to sort the fields or to search in the fields. The Member user can not take any actions on the item, he is only able to see the item management table.

On the page for adding a new item you will find a form which allows you to add an image of the item, to fill the name, description of the item, a dropdown to choose the category and a multiselect for the tags.

The App/Http/Controllers/ItemController.php takes care of data validation when adding a new item and of the item creation(see snippet below):

    public function store(Request $request)
    {
        $attributes = request()->validate([
            'name' => ['required', 'unique:items'],
            'excerpt' => ['max:100'],
            'description' => ['max:255'],
            'choices-category' => ['required'],
            'tags' => ['required'],
        ]);

        $item = Item::create([
            'name' => $request->get('name'),
            'excerpt' => $request->get('excerpt'),
            'description' => $request->get('description'),
            'category_id' => $request->get('choices-category'),
            'date' => $request->get('date'),
            'status' => $request->get('status'),
            'show_on_homepage' => $request->get('show_on_homepage'),
            'options' => $request->get('option')
        ]);

        $item->tags()->attach($request->get('tags'));

        if($request->file('picture')) {
            $item->update([
                'picture' => $request->file('picture')->store('/', 'items')
            ]);
        }

        return redirect()->route('item-management')->with('succes', 'Item succesfully saved');
    }

File Structure

app
 ┣ Console
 ┃ ┣ Commands
 ┃ ┃ ┗ Ressed
 ┃ ┗ Kernel.php
 ┣ Exceptions
 ┃ ┗ Handler.php
 ┣ Http
 ┃ ┣ Controllers
 ┃ ┃ ┣ Auth
 ┃ ┃ ┃ ┣ ChangePassword.php
 ┃ ┃ ┃ ┣ LoginController.php
 ┃ ┃ ┃ ┣ RegisterController.php
 ┃ ┃ ┃ ┗ ResetPassword.php
 ┃ ┃ ┣ CategoryController.php
 ┃ ┃ ┣ Controller.php
 ┃ ┃ ┣ ItemController.php
 ┃ ┃ ┣ PageController.php
 ┃ ┃ ┣ ProfileController.php
 ┃ ┃ ┣ RoleController.php
 ┃ ┃ ┣ TagController.php
 ┃ ┃ ┗ UserController.php
 ┃ ┣ Middleware
 ┃ ┃ ┣ Authenticate.php
 ┃ ┃ ┣ EncryptCookies.php
 ┃ ┃ ┣ PreventRequestsDuringMaintenance.php
 ┃ ┃ ┣ RedirectIfAuthenticated.php
 ┃ ┃ ┣ TrimStrings.php
 ┃ ┃ ┣ TrustHosts.php
 ┃ ┃ ┣ TrustProxies.php
 ┃ ┃ ┗ VerifyCsrfToken.php
 ┃ ┗ Kernel.php
 ┣ Models
 ┃ ┣ Category.php
 ┃ ┣ Item.php
 ┃ ┣ Role.php
 ┃ ┣ Tag.php
 ┃ ┗ User.php
 ┣ Notifications
 ┃ ┗ RecoverPassword.php
 ┣ Policies
 ┃ ┣ CategoryPolicy.php
 ┃ ┣ ItemPolicy.php
 ┃ ┣ RolePolicy.php
 ┃ ┣ TagPolicy.php
 ┃ ┗ UserPolicy.php
 ┗ Providers
 ┃ ┣ AppServiceProvider.php
 ┃ ┣ AuthServiceProvider.php
 ┃ ┣ BroadcastServiceProvider.php
 ┃ ┣ EventServiceProvider.php
 ┃ ┗ RouteServiceProvider.php

Browser Support

At present, we officially aim to support the last two versions of the following browsers:

Reporting Issues

We use GitHub Issues as the official bug tracker for the Soft UI Dashboard. Here are some advices for our users that want to report an issue:

  1. Make sure that you are using the latest version of the Material Dashboard. Check the CHANGELOG from your dashboard on our website.
  2. Providing us reproducible steps for the issue will shorten the time it takes for it to be fixed.
  3. Some issues may be browser specific, so specifying in what browser you encountered the issue might help.

Licensing

Useful Links

Social Media

Creative Tim

Twitter: https://twitter.com/CreativeTim?ref=md2pl-readme

Facebook: https://www.facebook.com/CreativeTim?ref=md2pl-readme

Dribbble: https://dribbble.com/creativetim?ref=md2pl-readme

Instagram: https://www.instagram.com/CreativeTimOfficial?ref=md2pl-readme

Updivision:

Twitter: https://twitter.com/updivision?ref=md2pl-readme

Facebook: https://www.facebook.com/updivision?ref=md2pl-readme

Linkedin: https://www.linkedin.com/company/updivision?ref=md2pl-readme

Updivision Blog: https://updivision.com/blog/?ref=md2pl-readme

Credits

ct-argon-dashboard-pro-laravel's People

Contributors

ghitu avatar mariusconstantin2503 avatar marqbeniamin avatar teamupdivision avatar timcreative avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ct-argon-dashboard-pro-laravel's Issues

No navigation between pages on fresh installation [Premium Support]

Hello, I installed Argon Pro Theme For Laravel Framework on a Centos7 machine (clean install), following the getting started instructions. Everything seems fine, but I can't navigate the pages (except the very first), or login: I always get a page not found error. (Also, I can't cache my routes, but this seems to depend from the using of closures). Here is my routes/web.php page:

`Route::get('/', function () {
return view('pages.welcome');
})->name('welcome');

Auth::routes();

Route::get('dashboard', 'HomeController@index')->name('home');
Route::get('pricing', 'PageController@pricing')->name('page.pricing');
Route::get('lock', 'PageController@lock')->name('page.lock');

Route::group(['middleware' => 'auth'], function () {
Route::resource('category', 'CategoryController', ['except' => ['show']]);
Route::resource('tag', 'TagController', ['except' => ['show']]);
Route::resource('item', 'ItemController', ['except' => ['show']]);
Route::resource('role', 'RoleController', ['except' => ['show', 'destroy']]);
Route::resource('user', 'UserController', ['except' => ['show']]);

Route::get('profile', ['as' => 'profile.edit', 'uses' => 'ProfileController@edit']);
Route::put('profile', ['as' => 'profile.update', 'uses' => 'ProfileController@update']);
Route::put('profile/password', ['as' => 'profile.password', 'uses' => 'ProfileController@password']);

Route::get('{page}', ['as' => 'page.index', 'uses' => 'PageController@index']);

});
`

I also have another question (not exactly a bug): what's the best way to implement the theme in an existing laravel web app?
(Current buggy installation aims to let me play in order to get that aim in the end)

Thanks
Andrea

Update to latest laravel [premium support]

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • [ yes] I am running the latest version
  • [yes ] I checked the documentation and found no answer
  • [yes ] I checked to make sure that this issue has not already been filed
  • [yes ] I'm reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

To be easier to sync with latest laravel

Current Behavior

When I downloaded the theme after purchase, I find it on laravel 9 not 10

Failure Information (for bugs)

Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Download the code after purchase
  2. You will find it is already implemented in laravel 9
  3. you get it...

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • Device: pc
  • Operating System: windows
  • Browser and Version: latest chrome

Failure Logs

Please include any relevant log snippets or files here.

Error after installation

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • [YES] I am running the latest version
  • [YES ] I checked the documentation and found no answer
  • [YES ] I checked to make sure that this issue has not already been filed
  • [YES ] I'm reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

ErrorException (E_ERROR)
htmlspecialchars() expects parameter 1 to be string, array given (View: C:\Projetos\2019\argon-dashboard-pro-laravel-master\resources\views\layouts\navbars\sidebar.blade.php) (View: C:\Projetos\2019\argon-dashboard-pro-laravel-master\resources\views\layouts\navbars\sidebar.blade.php) (View: C:\Projetos\2019\argon-dashboard-pro-laravel-master\resources\views\layouts\navbars\sidebar.blade.php)
Previous exceptions
htmlspecialchars() expects parameter 1 to be string, array given (View: C:\Projetos\2019\argon-dashboard-pro-laravel-master\resources\views\layouts\navbars\sidebar.blade.php) (View: C:\Projetos\2019\argon-dashboard-pro-laravel-master\resources\views\layouts\navbars\sidebar.blade.php) (0)
htmlspecialchars() expects parameter 1 to be string, array given (View: C:\Projetos\2019\argon-dashboard-pro-laravel-master\resources\views\layouts\navbars\sidebar.blade.php) (0)
htmlspecialchars() expects parameter 1 to be string, array given (0)

Current Behavior

Failure Information (for bugs)

Steps to Reproduce

  • Follow the README.md
  • Run "php artisan serve"
  • Login into dashboard

After this a saw the issue.

Context

PHP Version 7.3.1
php artisan serve

Failure Logs

Validation Dropdown Issue

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • [ /] I am running the latest version
  • [/ ] I checked the documentation and found no answer
  • [/ ] I checked to make sure that this issue has not already been filed
  • [ /] I'm reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

Should highlight the dropdown border for valid/invalid just like the other input.

Screenshot how it should work

Validation-Should-Be

Current Behavior

The validation feedback is working, but it doesn't highlight the dropdown border for valid/invalid. It used the primary color as we select the selection.

Dropdown Select

Dropdown

Screenshot invalid

Error-Feedback

Screenshot valid

Correct-Feedback

Code Snippet

<div class="form-group">
<label class="form-control-label" for="user-schedule">Work Schedule</label>
<select class="form-control" data-toggle="select" id="user-schedule" required>
<option value="">Select Work Schedule</option>
<option value="1">Schedule 1</option>
<option value="2">Schedule 2</option>
</select>
<div class="valid-feedback">
Looks good!
</div>
<div class="invalid-feedback">
Please select the work schedule!
</div>
</div>

Failure Information (for bugs)

Please help provide information about the failure if this is a bug.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Click the submit button for submitting the form.
  2. All input validation was good, except for the dropdown selection.

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • Device: Computer
  • Operating System: Windows
  • Browser and Version: Google Chrome Version 84.0.4147.135 (Official Build) (64-bit)

[Bug] Clicking in the menu reloads the page and resets the sidebar

Version

Latest (Demo)

Reproduction link

https://argon-dashboard-pro-laravel.creative-tim.com/grid

Operating System

Mac OS Mojave

Device

Macbook Pro

Browser & Version

Chrome 77.0.3865.75

Steps to reproduce

Log in
Click any header link (e.g. Components)
Click sub-link (e.g. Grid)

What is expected?

The page to reload, but keep the drop-down list in the side menu open for what you're currently viewing.

What is actually happening?

The page reloads, resets the sidebar which animates again (by sliding in and sliding back out). The user no longer knows that page they are active on as the sidebar has reset.


Solution

I'm not sure if the script is placed in a layout file or within the content file but placing it in the master layout file might solve the issue.

Additional comments

A generous discount for taking the time to report this bug would be much appreciated! :)

Page flickers on every load

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • [Yes] I am running the latest version
  • [Yes] I checked the documentation and found no answer
  • [Yes] I checked to make sure that this issue has not already been filed
  • [Yes] I'm reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

With the sidebar nav expanded, when I click a link, I expect the page to load nicely.

Current Behavior

With the sidebar nav expanded, when I click a link, the page flickers when it loads. The navbar seems to start in a collapsed state, before expanding. The page does not build well as a result.

I am working in the latest version of Chrome on a Mac.

Truly Laravel 8 with Breeze and / or Jetstream

We bought the pro version, we're already using the latest version and saw that you used legacy laravel/ui with framework upgrade from 7 to 8.
Upgrade because Laravel 8 out of the box now comes with Models Directory (app/Models), introduced Dynamic Blade Components and have entirely re-written as Model factories classes.
Also, most important thing: for UI, Laravel Breeze or Laravel Jetstream are heavily promoted and laravel/ui package's usage is discouraged from use in the future.

Any chance to upgrade the Pro theme to use Laravel Breeze or Laravel Jetstream with both stacks (Livewire + Blade / Inertia + Vue) ?

Is it possible to add react UI in argon-dashboard-pro-laravel

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed
  • I'm reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

Please describe the behavior you are expecting

Current Behavior

What is the current behavior?

Failure Information (for bugs)

Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. step 1
  2. step 2
  3. you get it...

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • Device:
  • Operating System:
  • Browser and Version:

Failure Logs

Please include any relevant log snippets or files here.

css issue

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • [yes ] I am running the latest version
  • [ yes] I checked the documentation and found no answer
  • [yes ] I checked to make sure that this issue has not already been filed
  • [yes ] I'm reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

I expect text-break to wrap the text inside the td when the class is defined

Current Behavior

the text inside the td is not wrapping as expected

Failure Information (for bugs)

Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. step 1
  2. step 2
  3. you get it...

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • Device:
  • Operating System:
  • Browser and Version:

Failure Logs

Please include any relevant log snippets or files here.

Laravel 6 translation

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed
  • I'm reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

{{ __('Validation') }} and {{ __('validation') }} will return the string 'Validation' - in validation.blade.php line 10

Current Behavior

The translation system sees the word 'validation' and loads the entire file validation.php from the en lang resources, which is not right.

Failure Information (for bugs)

ErrorException (E_ERROR)
htmlspecialchars() expects parameter 1 to be string, array given (View: /Users/tandersen/code/aotc-app/resources/views/pages/validation.blade.php)

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

install argon
composer install
Laravel 6
Visit 'Validation' from the left side bar
Crashes

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

Context
macOS 10.14.6
Chrome

Failure Logs

Please include any relevant log snippets or files here.

Sketch File - Argon Dashboard Laravel Pro

Hello,

We'd like to inquire regarding the inclusion of the sketch file on Argon Dashboard Laravel Pro latest version. Will you be able to share a preview of what's inside the file? Are we expecting that there are page templates already?

Our team is aiming to avail today. So, your response would be much appreciated.

My email is [email protected].

Regards,

Forms Validation Page

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • [ X ] I am running the latest version
  • [ X ] I checked the documentation and found no answer
  • [ X ] I checked to make sure that this issue has not already been filed
  • [ X ] I'm reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

ErrorException (E_ERROR)
htmlspecialchars() expects parameter 1 to be string, array given (View: C:\xampp\htdocs\BeBee\resources\views\pages\validation.blade.php)
Previous exceptions
htmlspecialchars() expects parameter 1 to be string, array given (0)

C:\xampp\htdocs\BeBee\vendor\laravel\framework\src\Illuminate\Support\helpers.php

    return $target;
}

}

if (! function_exists('e')) {
/**
* Encode HTML special characters in a string.
*
* @param \Illuminate\Contracts\Support\Htmlable|string $value
* @param bool $doubleEncode
* @return string
*/
function e($value, $doubleEncode = true)
{
if ($value instanceof Htmlable) {
return $value->toHtml();
}

    return htmlspecialchars($value, ENT_QUOTES, 'UTF-8', $doubleEncode);
}

}

if (! function_exists('ends_with')) {
/**
* Determine if a given string ends with a given substring.
*
* @param string $haystack
* @param string|array $needles
* @return bool
*
* @deprecated Str::endsWith() should be used directly instead. Will be removed in Laravel 5.9.
*/
function ends_with($haystack, $needles)
{
return Str::endsWith($haystack, $needles);
}
}

if (! function_exists('env')) {
Arguments
"htmlspecialchars() expects parameter 1 to be string, array given (View: C:\xampp\htdocs\BeBee\resources\views\pages\validation.blade.php)"

Current Behavior

Im trying to acces to Forms // Validations Page and shows that error

[Bug] El boton File browser no se visualiza que documento se sube

Version

Premium Bootstrap 4 Dashboard built for Laravel

Reproduction link

https://codepen.io/alberto-cordero-arellanes/pen/gOoVKPv

Operating System

iOS

Device

En todos

Browser & Version

Chrome

Steps to reproduce

Pongo este codigo html y cuando subo un archivo no se visualiza el archivo que subo

What is expected?

Espero que cuando se suba el archivo se vea el nombre del archivo

What is actually happening?

No se ve el nombre del archivo


Solution

Additional comments

Others Theme?

Is possible change theme?
there is
Another color palette?

auth/verify is trying to load sidebar

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • [x ] I am running the latest version
  • [x ] I checked the documentation and found no answer
  • [ x] I checked to make sure that this issue has not already been filed
  • [ x] I'm reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

If user email not verified, show auth/verify (auth.verify.blade.php)

Current Behavior

getting error about loading sidebar which should not be loading from the verify view

Failure Information (for bugs)

ErrorException
Undefined variable: parentSection (View: C:\projects\hitek_erp\resources\views\layouts\navbars\sidebar.blade.php)

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. add implements MustVerifyEmail to user class
  2. add this route to project

Route::get('/email/verify', function () {
return view('auth.verify');
})->middleware('auth')->name('verification.notice');

  1. register user

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • Device: desktop
  • Operating System: windows 10
  • Browser and Version: chrome Version 87.0.4280.88 (Official Build) (64-bit)
    Capture

Failure Logs

Please include any relevant log snippets or files here.

Calendar issue

Hey I can't get the build in calendar to work. Did you got any template or example how to create and edit events in the model?
Hopefully you can help me.

Building assets with webpack

Expected Behavior

We recently purchased a developer license for this package and would like to be able to use Laravel Mix to compile our assets. Also, we are looking for more information on how to customize colors.

Ideally, we would update the package.json file in our project root, use npm install to install dependencies, and compile/build resources/js/app.js and resources/sass/app.scss with npm run dev or npm run prod

Current Behavior

Public assets come pre-build and are bloating the public directory.

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • Device: PC
  • Operating System: Windows 10 & MacOS Mojave 10.14
  • Browser and Version: Chrome

Seeder Problems

Lateste Version of Argon for Laravel

The problem:

php artisan make: model Necessidade -a -c -m

Add NecessidadeSeeder on DatabaseSeeder

Illuminate\Contracts\Container\BindingResolutionException

Target class [NecesssidadeSeeder] does not exist.

at C:\xampp\htdocs\adm\vendor\laravel\framework\src\Illuminate\Container\Container.php:811
807▕
808▕ try {
809▕ $reflector = new ReflectionClass($concrete);
810▕ } catch (ReflectionException $e) {
➜ 811▕ throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e);
812▕ }
813▕
814▕ // If the type is not instantiable, the developer is attempting to resolve
815▕ // an abstract type such as an Interface or Abstract Class and there is

1 C:\xampp\htdocs\adm\vendor\laravel\framework\src\Illuminate\Container\Container.php:809
ReflectionException::("Class NecesssidadeSeeder does not exist")

2 C:\xampp\htdocs\adm\vendor\laravel\framework\src\Illuminate\Container\Container.php:809
ReflectionClass::__construct("NecesssidadeSeeder")

User cannot change his password in profile's settings

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • [yes] I am running the latest version
  • [yes] I checked the documentation and found no answer
  • [yes] I checked to make sure that this issue has not already been filed
  • [yes] I'm reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

When I change my password in the profile I want the password to be changed

Current Behavior

Some users have reported that they have an error when trying to update their password (they probably use autofill but it shouldn't matter)

Failure Information (for bugs)

I couldn't replicate this issue

Steps to Reproduce

Couldn't replicate it, some of the users have send me a video where they enter current password, new password and repeating new password, then they got an error from here (profile controller):

if (Gate::denies('update', auth()->user())) {
    return back()->withErrors([
        'not_allow_password' => __('You are not allowed to change the password for a default user.')
    ]);
}

Context

Didn't change anything with regards to user profile. I use latest version of argon pro on ubuntu 20.04 with LAMP stack, php 7.4, mysql 8

Failure Logs

None

Hi, I just can't figure out how to use full calendar. would you have a simple example with controller on how to view and add events? Thanks

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed
  • I'm reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

Please describe the behavior you are expecting

Current Behavior

What is the current behavior?

Failure Information (for bugs)

Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. step 1
  2. step 2
  3. you get it...

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • Device:
  • Operating System:
  • Browser and Version:

Failure Logs

Please include any relevant log snippets or files here.

Extend Edit and Delete feature to a new custom feature (Customers)

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • [ yes] I am running the latest version
  • [yes ] I checked the documentation and found no answer
  • [ yes] I checked to make sure that this issue has not already been filed
  • [yes ] I'm reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

Extend the List, Create, Edit and Delete feature into a new Controller called Customers.

Current Behavior

I created a new Controller for customers, obviously a model, policy, requests, adding the routes and everything needed to use the existing role/user/permission feature.

The view index that shows the List of customers works fine, the create view works fine too, but the edit view throw an 403 error 403
THIS ACTION IS UNAUTHORIZED..

I'd checked that update and edit methods are properly configured, but I can't figure out how to extend this feature (edit) to my customers feature.

Sidebar Animation

Hi,

I am using the latest version of the argon dashboard template and is trying to recreate this workaround but is having a problem with this instruction:

public/argon/css/argon.css, remove .sidenav:hover { max-width: 250px; }

the new version has the minified version argon.min.css.

Can you help me locate or update the minified version.

Related Ticket: #22

Thanks

How to work with fullcalendar

Argon PRO For LARAVEL 8.X

First, thanks for your time!

It's the first time I need to work with fullcalendar, I have no experience with js and ajax, so apologies for my ignorance.
I also the tutorial and but I can't identify in Argon until some points fullCalendar was implemented and how I should use it.

to learn how I would like to initialize fullcalendar in Argon PRO Laravel and persist the data in the database.

What I've managed to understand so far is what file:

C:\xampp\htdocs\admin\public\argon\js\components\vendor\fullcalendar.js

It is responsible for "starting" the fullcalendar in the blade view layer.

My difficulty is starting the fullcalendar in the view, how should I use the fullcalendar.js file?

Need to paste the contents of the "fullcalendar.js" file inside the view in a "<script>" tag?

After starting fullcalendar, how do I save the data in the database and retrieve it to display all events in the view?

Thank you!

Text Not Wrapping on mobile / tablet

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • [yes ] I am running the latest version
  • [ yes] I checked the documentation and found no answer
  • [yes ] I checked to make sure that this issue has not already been filed
  • [yes ] I'm reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

I opened this ticket before #18 and was provided a solution to the problem. Expectation was text should wrap on mobile.

Current Behavior

Currently Text is not wrapping on mobile / tablet (galaxy tab a). I have a table that has data populated from the DB and pagination and filtering handled by data table.

Failure Information (for bugs)

Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. step 1
  2. step 2
  3. you get it...

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • Device: Galaxt Tab A
  • Operating System:
  • Browser and Version: Chrome - latest version

Failure Logs

Please include any relevant log snippets or files here.

How do I add a "Show" method for users?

I'm working my way through the code to unwrap the middleware.

I want to implement the ability for the admin the simply view a user's details, not just edit or delete.

I've added the show() function to the UserController class and changed the routing from Route::resource('user', 'UserController', ['except' => ['show']]); to Route::resource('user', 'UserController'); but navigating to a user using the ID, e.g. 127.0.0.1:8000/user/1 just throws a 403 Forbidden Error.

Are there some additional changes to be made within the middleware? Do you have any documentation on it?

How can I use the ajax call?

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed
  • I'm reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

Please describe the behavior you are expecting

Current Behavior

What is the current behavior?
using the Laravel+bootstrap version, built passport on laravel and trying to call the api in js file using the $.ajax

Failure Information (for bugs)

Error message: $.ajax is not a function

Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.
It not a bug.
The template uses the jquery slim, but $.ajax is not a slim function.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. step 1
  2. step 2
  3. you get it...

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • Device: Laptop
  • Operating System: Windows
  • Browser and Version: Chrome

Failure Logs

Please include any relevant log snippets or files here.
image

File not found resources/sass/app.scss

File not found ./resources/sass/app.scss

Failure Logs

ERROR in multi ./resources/js/app.js ./resources/sass/app.scss
Module not found: Error: Can't resolve '/Users/fszostak/Downloads/argon-dashboard-pro-laravel-master/resources/sass/app.scss' i

Sidebar Animation

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • [x ] I am running the latest version
  • [x ] I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed
  • [x ] I'm reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

is there a way to make the sidebar expand / transition happen only when the toggle button is clicked and stay fixed until the toggle button is clicked again.

Current Behavior

Current behavior is sidebar expand when hovering on the toggle button and stay fixed when toggle button is clicked.

Failure Information (for bugs)

Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. step 1
  2. step 2
  3. you get it...

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • Device:
  • Operating System:
  • Browser and Version:

Failure Logs

Please include any relevant log snippets or files here.

Cant make page number of datatable dynamic [premium support]

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • [ yes] I am running the latest version
  • [yes ] I checked the documentation and found no answer
  • [yes ] I checked to make sure that this issue has not already been filed
  • [ yes] I'm reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

To add laravel way of pagination links in blade and it works normally

Current Behavior

it is not sync with the current implementations, the page number in items sample page is not dynamic and cant sync it with normal pagination

Failure Information (for bugs)

Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Add {{ $users->links() }} under table of page items
  2. Number of pages is the same

Context

  • Device: pc
  • Operating System: windows
  • Browser and Version: ltest chrome

Failure Logs

Please include any relevant log snippets or files here.

npm run production fails -> 100% - $icon-size-xl - 1

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • [NO ] I am running the latest version
  • [ Y] I checked the documentation and found no answer
  • [ Y] I checked to make sure that this issue has not already been filed
  • [ Y] I'm reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

Compile production assets

Current Behavior

There is an error in the compilation process

Steps to Reproduce

just run
npm run production

Context

npm 6.14.8
node v14.15.0

image
image

No validation for image upload on user profile

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • [ x ] I am running the latest version
  • [ x ] I checked the documentation and found no answer
  • [ x ] I checked to make sure that this issue has not already been filed
  • [ x ] I'm reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

Image should be validated before uploading it to User Profile

Current Behavior

Currently there's no validation on file upload which leads to file injection vuln which is a huge security hole

03 THIS ACTION IS UNAUTHORIZED

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • [ x] I am running the latest version
  • [ x] I checked the documentation and found no answer
  • [x ] I checked to make sure that this issue has not already been filed
  • [x ] I'm reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

When I click Edit or Destroy in my new table it should load the edit page or destroy the record and load the index.blade.php

Current Behavior

The model is called Friends
bnargon.zip
issuesfiles.zip

I can not get the edit or destroy to work for my new table. I can ADD records fine but when I click on Edit or Delete I get 403 THIS ACTION IS UNAUTHORIZED. I don't know what I am missing. Paul

Failure Information (for bugs)

Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. create new model
  2. create new controller
  3. create new policy
  4. create new request
  5. migrate table
  6. create new folder with index, edit and create files
  7. add new policy to auth service provider

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • Device:
  • Operating System:
  • Browser and Version:

Failure Logs

Please include any relevant log snippets or files here.

css and js not loading

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed
  • I'm reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

Login screen to be displayed correctly

Current Behavior

Login screen is being displayed without js (it is trying to load them from document root rather than the project directory)

Screen Shot 2022-12-25 at 2 15 20 pm

Sidebar animation bug [Premium Support]

Hi,

I'm using Argon Pro for Laravel with the sidebar menu like on your demo. The thing is that on a big screen, big enough for the sidebar to be expanded, there is a weird animation when changing pages. The sidebar makes a kind of "slide-in" from the left and the content is progressively resized. The expected behavior would be that the sidebar stays fixed across different pages.

ezgif-2-b0f7b6094ca2

It happens with both Chrome and Safari on macOS. (Maybe other navigators but I haven't tried). You can try it on your demo, it also makes this weird animation. How can I remove this animation?

Thank you very much and have a nice day!

Primary color

Prerequisites

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed
  • I'm reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

I would like to change the primary color (orange) to another but I can't find where to do it. At least, in the top bar of the dashboard.

The Argon Datatables is not Responsive like Material Datatables [Premium Support]

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • [/] I am running the latest version
  • [/] I checked the documentation and found no answer
  • [/] I checked to make sure that this issue has not already been filed
  • [/] I'm reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

In material datatables, the columns is hidden when responsive and there is an expand button at the first column.
image

Current Behavior

The Argon Design does not take this behaviour, it needs more scrolling in mobile which is not good especially when users can see the clipped version of the table. Sometimes its confusing and especially in desktop version. You have to scroll horizontally to reach the end.
image

The argon

Action Links in sortable table wont work

Prerequisites

I am using the latest Version of the dashboard and was able to reconstruct the issue even in your documentation.
Im using a sortable list and i want to use the action links, but they wont redirect to the url. If you try "open in new tab" it will work, if you try the same on a normal table action link, it will also work. So there has to be a problem between the list.js and sortable table that blocks the action links

screenshot

Expected Behavior

Please describe the behavior you are expecting

Current Behavior

What is the current behavior?

Failure Information (for bugs)

Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. open https://argon-dashboard-pro-laravel.creative-tim.com/docs/components/tables.html
  2. inspect table and place some working url in one of the action links
  3. click the action link, it will work.
  4. open https://argon-dashboard-pro-laravel.creative-tim.com/docs/plugins/list-js.html
  5. repeat steps 2 and 3, it wont work.

im using Google Chrome latest version and tested it on your documentation

@rarestoma

Horizontal scroll bar at the bottom of the page

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed
  • I'm reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

Without scroll on bottom page

Current Behavior

What is the current behavior?

Failure Information (for bugs)

A horizontal scroll appear on bottom page

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Check https://www.creative-tim.com/live/argon-dashboard-pro-laravel
  2. Click on Dashboard > alternative
  3. A horizontal scroll appear on bottom page

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • Device: Chrome
  • Operating System: Windows 10
  • Browser and Version: Latest

Failure Logs

bug

Sweet Alert: Confirm popup not appear

I'm using sweet alert button, but change to
If I set the link to ( <a href="#" ... >, the confirm popup is work.

The problem is if i change to route ( <a href="{{ route('xxx') }}" ....>, the confirm popup not appear although the background action process still work.

Please help. Thanks

New toles now showing during user registration

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • [Yes] I am running the latest version
  • [Yes ] I checked the documentation and found no answer
  • [ Yes] I checked to make sure that this issue has not already been filed
  • I'm reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

Please describe the behavior you are expecting
When i add a new role, it should show up as an option when a new user is registering

Current Behavior

What is the current behavior?

New role(s) is not showing up when a new user is registering

Range slider Result

argon laravel
In component range-slider-value value-high, how capturing two values ..in input forms?

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.