Whenever you need to get current url segment then you can get using Request facade I give you example one for using Request facade so you can get segment from url and how you can see both examplestrongExamplestrongpre classprettyprint langphpextendslayoutsappsectioncont
Whenever you need to get current route name then you can get using Request or Route facade I give you two example one for using Route facade and another for Request facade so you can get route name both way and how you can see both examplestrongUsing Requeststrongpre classprettyprint
If you are very fresher in jquery and you dont know how to work post ajax request then bellow example can help you i gave you the example of POST ajax request with json you can also easily modify this example you also fire GET ajax request using this example bellow example is a pretty simple to
A few days ago, I was struggling to install python on a Linux machine, in which I had no root permission. That machine was shared with many other users and there was only an old python version already installed on the machine. After a bit of search and trial, I was able to install a newer version of python on this machine to my local directory.
My goal was to run a program developed under python 2.7 on the Linux server which already had python 2.6 installed. As you can see, it was impossible for me to upgrade python on the system because I had no root permission. The only solution was to install the python 2.7 into my local directory and override the necessary environment variables. Even though this blog aims for python 2.7, I believe it should also be the same for python 3.0. The detailed steps are as follows:
- Install python to local directory
Firstly, I create a folder in my home directory, download the …
[Read more]I fetch this error i was working on my php project and when i need to add that project on my bitbucket account so first i create repository on my bitbucket account and clone that repo but when i push first time my projects i found following errorpreerror failed to push some refs to httpsi
First Laravel 5 introduce localization for laravel application Localization is very pretty intrsting topic added on laravel 5 Localization through we can manage multiple language message i mean you can manage multiple languages within your application for example you have one title like Home Pa
Just a quick post to help others who get stuck on the problem I solved today that could save a lot of time!
Introduction
Of course it’s Saturday (what else is there to do?!), and there is a little over a week before I present on running a Galera Cluster MySQL on Kubernetes and while trying to record the demo, everything was apparently broken. Here’s the tale of woe in a nutshell.
Initial problem
So, when trying to run my kubernetes cluster, when running the following:
patg@kubernetes-master001:~$ ./kubectl exec pxc-node2-hjjrw -i -t -- mysql -u root -p -h pxc-cluster
Content-Type specified (plain/text) must be 'application/json'
…
[Read more]Whenever you need to rewrite indexphp file from url you can find solution here you can easily enable rewrite mode using bellow terminal command when i create one virtualhost for my laravel application and open in browser and open my created virtual url but when i click on login i found following
When i start to work on Laravel 52 at that time i fetch this problem Class Input not found When i copy my old controller code from laravel 51 version that time i found this issue but i also could use Input insted to Request but i want to use Input as it is But at last found solution you ha
I entered the tech industry through SQL. When I came to work as a business analyst, I was handed the credentials to an Oracle database, pointers to some tables, and let loose.
Because SQL is declarative, it’s probably the least intimidating programming language to start with, and it remains one of my favorite technologies because what you see is mostly what you get.
But coming from the world of consulting where all I knew were spreadsheets and manipulating tabs upon tabs of pivot tables, I had no clue what was going on. Indexes, b-trees, blobs, transactions and other terms flew buy my head.
“Think of a table as a file cabinet, and indexes as drawers labeled A-C, D-F, and so on,” my manager at the time said, and I was introduced to IT terminology by analogy.
I’m now at a point in my career where, at the same time as I’m learning, I’ve also begun to help more junior people. I’ve taught countless …
[Read more]