kossa / laradminator Goto Github PK
View Code? Open in Web Editor NEWIntegration of Adminator into Laravel 6.x/7.x/8.x with RTL support
Home Page: https://laradminator.kossa.one/admin
License: MIT License
Integration of Adminator into Laravel 6.x/7.x/8.x with RTL support
Home Page: https://laradminator.kossa.one/admin
License: MIT License
I plan to do some sort of "Order building" form, thus my users will add products to an order ... I would like to know how would you do this with laradminator, or if you know some other project which covers this matter
I'm new to laravel, and this is my first project. Thank you for being part of it by helping me with this template.
But I have not yet figured out how to translate as datatable to pt-br.
I want to use this plugin,
https://cdn.datatables.net/plug-ins/1.10.12/i18n/Portuguese-Brasil.json
how can I implement it within the project?
So i wanted to add jquery in Laradminator
installed via npm like other included dependencies
but i cant use it just like included dependencies can you tell me where i did wrong?
In this release can't access admin route.
127.0.0.1 is ok.
127.0.0.1/admin ( 404)
Don't show any errors.
I can see only 404 not found.
I have done these steps.
git clone https://github.com/kossa/laradminator.git
cd laradminator
composer install # Install backend dependencies
sudo chmod 777 storage/ -R # Chmod Storage
php artisan storage:link # Enable link to storage
cp .env.example .env # Update database credentials configuration
php artisan key:generate # Generate new keys for Laravel
php artisan migrate:fresh --seed # Run migration and seed users and categories for testing
yarn install # or npm i to Install node dependencies(>= node 9.x)
npm run production # To compile assets for prod
So i wanted to add select2 in laradminator
installed via npm and adding folder select2 and index.js in assets folder just like other included dependencies
but i cant use it just like included dependecies can you tell me where i did wrong?
It's a question, and I do not know if this place is best to ask. So what do you think about small pieces of javascript code (such as forms ajax calls, some frontend behavior, some component-specific behavior, etc.), should be placed inside a folder like /resources/js/utils/some-folder
? Where you put your javascript codes of this type, in time, we're not talking about VueComponents, hum?
hello sir,
After successful installation and download, my antivirus popped with the following issue,
Server.php is an IDP.ALEXA.51 Trojan!
I opened server.php and there was the usual code or any SERVER.PHP in any laravel framework
Hello. I'm newbie, just started learning laravel. Can you explain me a proper way to delete some functions in the /login page. I just want to left this page for login to dashboard only (admin login only).
I want to delete functions such as remembering the password, forgetting the password and creating a new account. Sorry for the stupid question, but I guess there's no need to use them. I can just delete these files like register.blade.php and so on, but i want to know exactly how to do it properly.
sir can u teach me on how to remove the debugbar on the frontend but stays on the backend
Hello, thanks for the programming.
I don't understan why my favicon no working, How to show it?
I try on views in default.blade.php:
but don't working. I have too an errors in my commands 'npm run dev':
Hey,
something is messing up with Vue. If I initialize #app container, multi level menu, sidebar collapse, tooltips, popovers doesn't work anymore. And console doesn't show any error.
Any help?
The style the sidebar.scss has a class .active:before but it is not working.
Hello, I have just installed your code. Your installation instructions are very clear but I'm new to the whole laravel mix thing and cannot figure out how to enable the various javascript libraries. I successfully installed the node_modules using yarn, enable npm watch and then I added the following code to the end of resources\views\admin\index.blade.php to test jquery using sweetalert2:
@section('js') <script> $(function(){ Swal.fire('hello world'); }); </script> @endsection
I expected a simple alert popup when reloading, but nothing happens. In resources\js\bootstrap.js there is already a line at the bottom with import './sweetalert2';
so I assume that the library is being loaded. What am I missing?
Blocked mixed content when in HTTPS scheme.
Good afternoon, I have problems to integrate the template Adminator-HTML5, your example has access to the database, it would help me to integrate only the template, I want to start from scratch, I would appreciate it a lot.
@kossa are this them support rtl ?
With "setUserPassword" mutator, when using laravel auth facade, it will fail (not sure it fails out of the box) when editing password, since "password" field is hidden, it hashes a null value.
Please test it, just in case I' ve fixed it with this guard:
public function setPasswordAttribute($password)
{
if(Hash::needsRehash($password))
$password = Hash::make($password);
$this->attributes['password'] = $password;
}
Thanks for this piece of code. I plan to VueJS in my code. Please may I know why you uncommented app.js in resources/js folder.
I'm trying to connect laradminator project with cassandra database and dont know how to approach , can you please help me out.
thanks
Help!
php artisan migrate:fresh --seed
Illuminate\Database\QueryException : SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES) (SQL: SHOW FULL TABLES WHERE table_type = 'BASE TABLE')
at /home/work/laradminator/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664
660| // If an exception occurs when attempting to run a query, we'll format the error
661| // message to include the bindings with SQL, which will make this exception a
662| // lot more helpful to the developer instead of just the database's errors.
663| catch (Exception $e) {
664| throw new QueryException(
665| $query, $this->prepareBindings($bindings), $e
666| );
667| }
668|
Exception trace:
1 PDOException::("SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES)")
/home/work/laradminator/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:68
2 PDO::__construct("mysql:host=127.0.0.1;port=3306;dbname=homestead", "homestead", "secret", [])
/home/work/laradminator/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:68
Please use the argument -v to see more details.
Hello,
Thank you for a great contribution. However, I am starting long-term project so I am forced to use laravel 5.5.
I would welcome if you could create such a version or at least if you can post a tutorial how to implement adminator theme to laravel.
How can i use datepicker in a input field. Please anyone post a snip. Thanks
How To Static sidebard or fixed sidebar in this project.
Salam bro, i'm facing an issue while installing laradminator on my pc, as you described very well in your installing guide, here's the message error:
$ sudo chmod 777 storage/ -R
bash: sudo: command not found
Regards.
When building a selector with:
{!! Form::mySelect('contact_id', 'Contact', ([0 => 'Pick one...', $contacts]), 0, ['class' => 'form-control select2']) !!}
It does not point to the proper selector value (0, in this case, "Nothing").
I'm prepending a "0" value to my options with that array declaration, so the user is able to "deselect" a contact when picking it (maybe there is another, cleaner way :D)
If I use "form-control select" instead of the "select2" one, the option 0 I've chosen in mySelect shows up, but when using select2, the select option points to the first element I've passed to the view.
Changing method call to:
{!! Form::mySelect('contact_id', 'Contact', ([0 => 'Nothing', $contacts]), [0 => 'Nothing'], ['class' => 'form-control select2']) !!}
made it work as expected ... But kinda weird at displaying (that "1" should not be there?)
Guess I am not using "children" properly :(
Hello, i have been trying to see if i could use the laratrust package, buts its not working, cant even login with the default logins that laratrust provides, can you help?
I can't use moda('show) and modal('hide')' in js code.Please response me.
If can,let me know how
Thank you.
What's the best way to integrate Datatable server side.
The problem is that i'm not able to write jquery on the blade page, and i'm not able to add the jquery in the resources/js since the ajax points to a route.
tried using yarjabox
Any help is appreciated.
Besides adding the role name in config/variables.php and adding route group, what else should I know?
If i use modal in my form select2 css and javascript not working properly.
Form style is broken:
Not a big issue but looks bad.
on auth.passwords.email view just requires
form content to wrap with
div class="row"
Well looks better with it.
I have write several back end codes for my laravel project. Now I want to implement laradminator. I copy the package.json and webpack.mix.js to my project. Then I run npm i
then npm run production
I got this error:
`fs.js:948
binding.stat(pathModule._makeLong(path));
^
Error: ENOENT: no such file or directory, stat '/home/vagrant/code/admin/resources/assets/static/images'
at Object.fs.statSync (fs.js:948:11)
at Object.statSync (/home/vagrant/code/admin/node_modules/graceful-fs/polyfills.js:297:22)
`
I've seen some issue like this, but I've double checked to follow the steps and use proper URL
http://localhost:8000/ is OK
http://localhost:8000/admin 404
git clone https://github.com/kossa/laradminator.git
cd laradminator
composer install # Install backend dependencies
sudo chmod 777 storage/ -R
php artisan storage:link
cp .env.example .env
php artisan key:generate
php artisan migrate:fresh --seed
yarn install
npm run production
php artisan serve
@kossa, this is a great template repository πThanks!
Do you mind adding a license so that it can serve as a template repository for other projects?
Here are some good resources to choose the most appropriate license:
As in #22, the blue dot is not showing up
This line looks guilty:
<a class="sidebar-link {{ Str::startsWith($route, ADMIN . '.dash') ? 'active' : '' }}"
It's always evaluating to ' ', although if we "dd" it here:
@php
$r = \Route::current()->getAction();
$route = (isset($r['as'])) ? $r['as'] : '';
@endphp
It yelds "active" correctly
for some reason commenting out
require_once base_path('resources/macros/form.php');
Schema::defaultStringLength(191);
on Learavel 6.0.3 bring up the themed Authentication pages but doesn't redirect the user to the dashboard and same goes for the .users route too.
Keeping them however doesn;t work
Hi !
Have you tried to hide a column in some datatable ?
My goal is to allow searching by that "column" in the datatable search field, but dont show that column, but not sure how to achieve this.
Hi! I'm new with laravel, I don't understand what is happening with the folder resources/js.
I understand that you are working with nodejs, but I don't understand how to implement google maps or sweet alert, and all others libraries.
Can you give a brief example. or a tutorial to understand how to work nodejs with laravel?
I know this is kinda demo, but should item creation work out of the box ?
I'm not sure if I broke something or there is no element creation form, since the only "form" blade needs to receive an -item-, so looks not suitable to create new ones.
I want to know how to do it by my own, for future projects.
Thanks!
I noticed that after a user registers he gets logged in, but when he tries to login again, he gets an error even if data is correct.
This is because in RegisterController.php at line 68 you use bcrypt on the password, but it is already used by Laravel default authentication method. This causes the password to be crypted two times.
I'm opening an issue because opening a PR just for the one line of code is exaggerated.
So the only thing to do is leaving the line as
'password' => $data['password'],
without the hashing function.
Steps to reproduce:
RTL
What is expected?
Rewrite all media query for RTL
I temporarily use the following code in rtl.scss
βββ :
@import "spec/tools/mixins";
@import "spec/settings/breakpoints";
@import "spec/settings/materialColors";
@import "spec/settings/baseColors";
.page-container {
min-height: 100vh;
padding-right: $offscreen-size;
transition: all 0.2s ease;
@include between($breakpoint-md, $breakpoint-xl) {
padding-right: $collapsed-size;
}
@include to($breakpoint-md) {
padding-right: 0;
}
}
.is-collapsed {
.page-container {
padding-right: $collapsed-size;
@include to($breakpoint-md) {
padding-right: 0;
}
@include between($breakpoint-md, $breakpoint-xl) {
padding-right: $offscreen-size;
}
}
.full-container {
right: $collapsed-size;
@include to($breakpoint-md) {
right: 0;
}
@include between($breakpoint-md, $breakpoint-xl) {
right: $offscreen-size;
padding-right: 0;
}
}
}
.is-collapsed {
.sidebar {
@include to($breakpoint-md) {
right: 0;
left: unset;
}
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.