Skip to content

Font awesome icon can not display when use laravel-adminlte packagist together #218

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wind-tech-fun opened this issue Mar 2, 2025 · 1 comment

Comments

@wind-tech-fun
Copy link

wind-tech-fun commented Mar 2, 2025

Environment:

Laravel-Code-Generator Version: Master
Laravel Version: 10

Description:

templates/default/[edit/create/index/show].blade.stub generated blade file that Font awesome icon can not display

Here is my temporary solution:
Generated files in your-project/resources/templates/defualt/ which is [edit/create/index/show].blade.stub

Add code before @section('content') in the files above:

@section('adminlte_css')
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css">
@stop
@MikeAlhayek
Copy link
Collaborator

You should not do that.

If you are trying to use the code generator with a theme, include fontawesome into he theme and all your views will have the icons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants