how to check my laravel version

There are two ways available to find the version of the Laravel application. You can either find it by running a command or you can check the Laravel version in files.

Command to find Laravel Version

Open the terminal on your system. Navigate to the webroot directory of the Laravel application. Now execute the following PHP artisan command to check the Laravel version.

$ php artisan --version

Laravel Framework 5.6.39

Check Laravel Version in File

Sometimes you may not have access to the terminal of server-hosted Laravel application. Or you may not much familiar with the command line. In that case, you can simply view the Laravel version in the following file.

First navigation to Laravel webroot directory.

$ vim ./vendor/laravel/framework/src/Illuminate/Foundation/Application.php

Linked List In CPP

#include<iostream>
#include<conio.h>
#include<stdio.h>
#include<ctype.h>
using namespace std;
class node
{
int data;
node*next;
public:
node *creatlist()
{
node*head,*tail, *temp;
int x;
head=NULL;
cout<<"Enter number(-99 to stop):";
cin>>x;
while(x!=-99)
{
temp=new node();
temp->data=x;
temp->next=NULL;
if(head==NULL)
{
head=tail=temp;
}
else
{
tail->next=temp;
tail=temp;
}
cout<<"enter value(-99 to stop)";
cin>>x;
}
return head;
}

void traverse(node*head)
{
node*p=head;
while(p!=NULL)
{
cout<<p->data<<"->";
p=p->next;
}
cout<<"\b"<<char(12)<<endl;
}

void searchnode(node*head,int srch)
{

node*p=head;
while(p!=NULL)
{

if(srch==p->data)
{

cout<<endl<<p->data<<" found\n";
{

break;
}
}
p=p->next;
}

if(p==NULL)
{
cout<<"\nnot found\n";
}

}



node *inserthead(node*head,int x)
{
node *tmp;
if(head==NULL)
{
cout<<"empty list";
}
else
{
tmp=new node();
tmp->data=x;
tmp->next=head;
head=tmp;
}
return head;
}
node *deletehead(node*head)
{
     
node*p=head;
if(head==NULL)
{
cout<<"empty list";
}
else
{
 head=p->next;
 delete(p);
 }
 return head;
}
node* inserttail(node*head,int x)
{
      node *tmp;
node*p=head;
if(head==NULL)
{
              cout<<"empty list";
              }
              else
              {
while(p->next!=NULL)
{
p=p->next;
}
tmp=new node();
tmp->data=x;
tmp->next=NULL;
p->next=tmp;
}

return head;
}
node*deletebefore(node*head,int srch)
{
node *p,*q;
p=head;
q=head->next;
while(q!=NULL)
{
if(q->next->data==srch)
{
break;
}
p=p->next; q=q->next;
}
if(q!=NULL)
{
p->next=q->next;
delete(q);
}
else
{
cout<<"Delete error";
}
return head;
}

};
int main()
{
int ch,srch,x;
char cnt;
node singly;
node*head;
do{
cout<<"1.for creatlist"<<endl<<"2.for traverse"<<endl<<"3.for search"<<endl<<"4. head insert"<<endl<<"5.delete head"<<endl<<"6.for insert tail"<<endl<<"7 for deletebefore"<<endl;
cout<<"enter your choice\n";
cin>>ch;

if(ch==1)
{
head=singly.creatlist();
}
else if(ch==2)
{
singly.traverse(head);
}
else if(ch==3)
{
cout<<"enter srch value";
cin>>srch;
singly.searchnode(head,srch);	
}
else if(ch==4)
{
cout<<"enter value for insert ";
cin>>x;
head=singly.inserthead(head,x);	
}
else if(ch==5)
{
cout<<"delete head";
head=singly.deletehead(head);

}
else if(ch==6)
{
     cout<<"insert new value for tail : ";
     cin>>x;
     head=singly.inserttail(head,x);
 }
 else if(ch==7)
 {
 cout<<"enter srch value";
 cin>>srch;

 head=singly.deletebefore(head,srch);
}
fflush(stdin);
cout<<"do you want to continue then press (y/n) : ";
cin>>cnt;
}
while(toupper(cnt)=='Y');


getch();
}

What is Linked List

List of Program of C language

  1. WAP to ADD, Sum, MUL, Divide of two numbers X, Y?
  2. WAP to enter five nos. and print sum and average?
  3. WAP to enter Principle, Rate, Time and calculate Simple Interest?
  4. WAP to enter basic and calculate hra 2% of basic, da 3%of basic and find gross salary?
  5. WAP to exchange value of two Variables of Two Values X, Y?
  6. WAP to print prime or not prime numbers?
  7. WAP to print even or odd numbers?
  8. WAP to reverse numbers?
  9. WAP of factorial numbers?
  10. WAP of Fibonacci series?
  11. WAP fine the largest numbers in array?
  12. WAP sum of two matrix?
  13. WAP Mul of two Matrix?
  14. WAP print reverse order of array?
  15. WAP of array implementation of queue?
  16. WAP array of pointer?
  17. WAP array of structure?
  18. WAP of automatic storage class?
  19. WAP of Binary Search?
  20. WAP of Bubble sort, insertion sort and selection sort?
  21. WAP of Call by value and Call by reference?
  22. WAP of stack using array?
  23. WAP of stack using linked list?
  24. WAP of Merging of two  D array?
  25. WAP of Transpose of Two D Array?
  26. WAP of recursive function?
  27. WAP of Singly linked list in C with using structure?
  28. WAP of smallest and largest number in 2 D Array?
  29. WAP of Negative and positive number ?
  30. WAP to display largest of from three inputs?
  31. WAP of Looping statement
  32. For Loop
  33. While loop
  34. Do while loop

Using these loop make a program of even and odd number, prime and not prime numbers, negative and positive numbers etc.

  • WAP of loop control statement

(a)Break

(b)continue

(c ) exit(0)

(d)goto

Using these loop control statement write a program of prime or not prime numbers and even and odd number etc.

  • WAP of Linear Search?
  • WAP of Binary search?
  • WAP of insert,search and delete in Array?
  • WAP of string create a string count the words of string and reverse the string?
  • WAP search the string?
  • WAP matrix add calculating with 2 D Array
  • Row major ording
  • Coolum Major ordering
  • WAP of file handling with file oprations

(a)Read

(b)Write

(c )append

(d)read/write

37. WAP enter two string copy one string to another string?

38. WAP to enter the string and count word and space in string?

39. WAP to convert decimal to binary number?

40. WAP to print their value in decreasing order?

41.WAP to enter string convert lower alpha to upper alpha?

42. WAP to sort the character in the string

Input-> COMPU

OUTPUT->CMOPU

43. WAP to remove space from string?

44.WAP of Sparse Matrix?

45.WAP display name, roll, marks, t.makrs, sub, hindi, eng, sci, math  using string in array?

46.WAP display name, desi, contact etc. in string?

47. WAP to compare to string equal or not?

48. WAP find the sum of prime numbers 2-100?

49. WAP to enter two numbers and swap their values

50. WAP to the enter the user want at the end it should display the count the positive, negative and zero

51.WAP to digit wise reverse

52. WAP to digit wise multiply

53 WAP to digit wise reverse and add 5 with it.

54. WAP to print count digit numbers

55. WAF create a factorial of number with return argument

56. WAF of prime and not prime numbers

57 WAF of stack

58 WAF to enter the n number print their sum of total numbers

59 WAP of deep copying and shallow coping

60 WAP array of pointer

61.WAP to show the contents of pointer an array of pointer

62. WAP of pointer with pointer

63 WAP of two point p1 and p2

 Int  i=10,j=20; compare tow pointers

64. WAP to exchange two integer values using function in pointer

65. WAP to find the sum of all element stored in array

Int *p, sum=0, I;

Int A[3]={4,5,6}

66. WAP to return largest value in pointer

67.  WAP 2D Array elements using pointer?

68. WAP of structure pointer

69. WAP of Nested Structure

70. WAP of Singly linked through structure in C

71. WAP of Doubly linked list through structure in C

72. WAP of Circular linked list through structure in C

73. WAP of implementation stack using linked list in C

74. WAP to store even values in another link list

75. WAP of recursive to display the nodes of linked list

76. WAP of stack using array and linked list.

Singly linked list in c language

#include<stdio.h>
#include<process.h>
struct node
{
	int data;
	struct node *next;
};
typedef struct node *singly;
singly createlist()
{
	int x;
	singly head,tail,tmp;
	head=NULL;
	printf("\n enter value(-99 to stop)");
	scanf("%d",&x);
	while(x!=-99)
	{
		tmp=(singly)malloc(sizeof(struct node));
		tmp->data=x;
		if(head==NULL)
		{
			head=tail=tmp;
		}
		else
		{
			tail->next=tmp;
			tail=tmp;
		}
		tail->next=NULL;
		printf("\n Enter value(-99 to stop)");
		scanf("%d", &x);
			}
			return(head);
}
void traverse(singly head)
{
	singly p=head;
	while(p!=NULL)
	{
		printf("%d --> ",p->data);
		p=p->next;
	}
}
singly inserthead(singly head,int ins)
	{
		singly tmp;
		tmp=(singly)malloc(sizeof(struct node));
		tmp->data=ins;
		if(head==NULL)
		{
			printf("\n error insert");
		}
		else
		{
			tmp->next=head;
			head=tmp;
		}
		return(head);
}
singly insertbefore(singly head, int srch,int ins)
{
	singly p=head,tmp;
	while(p!=NULL)
	{	if(p->next->data==srch)
		{
			break;
		}
		p=p->next;
	}
	if(p!=NULL)
	{
		tmp=(singly)malloc(sizeof(struct node));
	
		tmp->data=ins;
		tmp->next=p->next;
		p->next=tmp;
		
	}
	else
	{
		printf("\n error insert");
	}
	return(head);
}
singly deletetail(singly head)
{
	singly p=head,q=head->next;
	while(q->next!=NULL)
	{
		p=p->next;
		q=q->next;
	}
	p->next=NULL;
	free(q);
	return(head);
}
singly deleteafter(singly head,int srch)
{
	singly p=head,q=head->next;
	while(p->next!=NULL)
	{
		if(p->data==srch)
		{
			break;
		}
		p=p->next;q=q->next;
	}
	if(p->next==NULL)
	{
		printf("\n delete error");
	}
	else
	{
		p->next=q->next;
		free(q);
	}
	return(head);
}


int main()
{
	singly head;int ch,ins;char cnt;int srch;

	do{
		printf("\n1. create list\n2. traverse\n3. insert as head\n4. insert before\n5. Delete tail\n6. Delete after\nEnter your choice : ");
	scanf("%d",&ch);
	switch(ch){
		case 1:
	head=createlist();
		break;
		case 2:
	traverse(head);
		break;
		case 3:
		printf("\nenter value to insert : ");
		scanf("%d",&ins);
	head=inserthead(head,ins)	;
		break;
		case 4:
		printf("\n enter value to insert :");
		scanf("%d",&ins);
		printf("\n enter value to search :");
		scanf("%d",&srch);
	head=insertbefore(head,srch,ins)	;
		break;
		case 5:
	head=deletetail(head);
		break;
		case 6:
		printf("\n enter value to search");
		scanf("%d",&srch);
		head=deleteafter(head,srch) ;
		break;	
	}
	fflush(stdin);
	printf("\ndo you want to continue (y/n) : ");
	scanf("%c",&cnt);
	}while(cnt=='y');
}

<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
     style="display:block"
     data-ad-format="autorelaxed"
     data-ad-client="ca-pub-7462577112023113"
     data-ad-slot="1814817697"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>

upload image ajax

Ajax code for image upload

$(document).ready(function (e) {
    $('#imageUploadForm').on('submit',(function(e) {
        e.preventDefault();
        var formData = new FormData(this);

        $.ajax({
            type:'POST',
            url: $(this).attr('action'),
            data:formData,
            cache:false,
            contentType: false,
            processData: false,
            success:function(data){
                console.log("success");
                console.log(data);
            },
            error: function(data){
                console.log("error");
                console.log(data);
            }
        });
    }));

    $("#ImageBrowse").on("change", function() {
        $("#imageUploadForm").submit();
    });
});

Basic Php Code for File Upload

$filetype = array('jpeg','jpg','png','gif','PNG','JPEG','JPG');
   foreach ($_FILES as $key )
    {

          $name =time().$key['name'];

          $path='local_cdn/'.$name;
          $file_ext =  pathinfo($name, PATHINFO_EXTENSION);
          if(in_array(strtolower($file_ext), $filetype))
          {
            if($key['name']<1000000)
            {

             @move_uploaded_file($key['tmp_name'],$path);
             echo $name;

            }
           else
           {
               echo "FILE_SIZE_ERROR";
           }
        }
        else
        {
            echo "FILE_TYPE_ERROR";
        }

श्र से शब्द

ज्ञ अक्षर वाले शब्द

ज्ञ देवनागरी वर्णमाला में ‘‘ और ‘‘ के योग से बना हुआ एक अक्षर जिसका उच्चारण हिंदी में ग्य, मराठी में, ‘द्न्य’ और गुजराती में ‘जन’ होता है। यह एक व्यंजन है।

  • ज्ञानार्जन
  • ज्ञानेद्रिय
  • ज्ञानात्मक
  • ज्ञानसागर
  • ज्ञानमूर्ति

ज्ञ शब्द से शुरू होने वाले लड़कों के नाम


ज्ञानकीर्ति                               प्रसिद्ध ज्ञान के साथ
ज्ञानमूर्ति                                ज्ञान का प्रतीक
ज्ञानभास्कर                           ज्ञान का सूर्य
ज्ञानचन्द्र                                ज्ञान की मून
ज्ञानदर्पण                               ज्ञान का आईना
ज्ञानदर्शन                               सुप्रीम ज्ञान
ज्ञानदेव                                   ज्ञान का भगवान
ज्ञानदीप                                  ज्ञान का दीपक
ज्ञानगम्य                               समझ से प्राप्य
ज्ञानकेतू                                  खुफिया के निशान के साथ
ज्ञानघनचार्य                          शुद्ध बुद्धि के शिक्षक
ज्ञानपवन                               सफ़ाई ज्ञान
ज्ञानप्रभ                                  ज्ञान के साथ शानदार
ज्ञानप्रकाश                             ज्ञान का प्रकाश

ultimate member plugin not redirect after login

Solution 1

In Ultimate member -> Settings -> User roles -> Subscriber (or another role you want to configure). Then in Login options “Action to be taken after login – Redirect to URL” and set it to the URL I specified.
THEN, click in the right sidepanel on top “Update Role” (big blue button).

Solution 2

Go to Ultimate Member > Forms
Select the Login form
On the right under Options, select Redirect to URL from dropdown
Under that, put the URL in the Set Custom Redirect URL field

What is Advanced Security of reCAPTCHA?

reCAPTCHA protects and defends

reCAPTCHA is built for security. Armed with state of the art technology, reCAPTCHA is always at the forefront of spam and abuse fighting trends so it can provide you an unparalleled view into abusive traffic on your site.

Easy for People.
Hard for Bots

Purposefully designed. And actively aware. reCAPTCHA knows when to be easy on people and hard on bots.

Help everyone, everywhere – One CAPTCHA at a time.

Hundreds of millions of CAPTCHAs are solved by people every day. reCAPTCHA makes positive use of this human effort by channeling the time spent solving CAPTCHAs into annotating images and building machine learning datasets. This in turn helps improve maps and solve hard AI problems.

Google reCAPTCHA v3

Google reCAPTCHA v3  helps you detect abusive traffic on your website without any user friction. Google reCAPTCHA is a free service that protects your website from spam and abuse. Google reCAPTCHA uses an advanced risk analysis engine and adaptive challenges to keep automated software from engaging in abusive activities on your site. It does this while letting your valid users pass through with ease.

The reCAPTCHA advantage

  • Advanced Security
  • Ease of Use
  • Creation of Value