Skip to content
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

Admin crud #44

Open
wants to merge 51 commits into
base: development
Choose a base branch
from
Open

Admin crud #44

wants to merge 51 commits into from

Conversation

meerasharma00
Copy link
Contributor

Fixes #29

@meerasharma00 meerasharma00 self-assigned this Jan 5, 2023
@meerasharma00 meerasharma00 added this to the v1.0 milestone Jan 5, 2023
// UI settings
//
//==============================================================================

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Delete

Suggested change

{
var SoundPlayer = app.SoundPlayer = function()
{
// Dummy interface

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Replace ········//·Dummy·interface␍ with ····//·Dummy·interface

Suggested change
// Dummy interface
// Dummy interface

* @author davidshimjs
* @see <a href="http://www.d-project.com/" target="_blank">http://www.d-project.com/</a>
* @see <a href="http://jeromeetienne.github.com/jquery-qrcode/" target="_blank">http://jeromeetienne.github.com/jquery-qrcode/</a>
*/

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Delete

Suggested change
*/
*/

switch(notify.permissionLevel())
{
case notify.PERMISSION_DENIED:
// Do nothing

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Replace ····················//·Do·nothing␍ with ··········//·Do·nothing

Suggested change
// Do nothing
// Do nothing


onready : function()
{
// Expose functional interface

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Replace ················//·Expose·functional·interface␍ with ········//·Expose·functional·interface

Suggested change
// Expose functional interface
// Expose functional interface

@@ -0,0 +1,735 @@
//==============================================================================
//

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Delete

Suggested change
//
//


// System settings

autoShow : true

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Replace ············autoShow·:·true␍ with ······autoShow:·true,

Suggested change
autoShow : true
autoShow: true,


element.innerHTML = '';

new QRCode(element, {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Replace ············new·QRCode(element,·{␍ with ······new·QRCode(element,·{

Suggested change
new QRCode(element, {
new QRCode(element, {

{
var fromUser = attributes.from_user_info;

this.fromUser = fromUser;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Replace ····················this.fromUser·=·fromUser;␍ with ············this.fromUser·=·fromUser;

Suggested change
this.fromUser = fromUser;
this.fromUser = fromUser;

app/Http/Controllers/AgentController.php Show resolved Hide resolved
app/Http/Controllers/AgentController.php Show resolved Hide resolved
{
try {
$user = User::find($id);
$user->delete();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we using InnoDB as the engine? won't this cause an issue with the foreign keys

app/Http/Controllers/DepartmentController.php Show resolved Hide resolved
public function showList()
{
try {
$data = Department::all();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this query cause an issue if i have a lot of data

public function deleteDepartment($id)
{
try {
$department = Department::find($id);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The foreign key problem

public function envelope()
{
return new Envelope(
from: new Address('[email protected]', 'Meera'),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have mail configurations.

{
Schema::create('jobs', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('queue')->index();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indexing is done generally for foreign keys, Add it for any column would take up memory

});
}

/**

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also if we are using InnoDB, indexing will be done automatically

@sandesh556
Copy link

Also, we don't have the option to upload logos? are we directly inserting it in storage or a public folder?

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

Successfully merging this pull request may close these issues.

Admin Dashboard CRUD
4 participants