How do I set up phpMyAdmin on a Laravel Homestead box?

0 votes
Hello,

Can anyone tell me to set up phpMyadmin on a Laravel Homestead box?

Thank You!!
Mar 31 in Laravel by kartik
• 26,540 points
646 views

1 answer to this question.

0 votes

Hello,

Step 1:

Go to the phpMyAdmin website, download the latest version and unzip it into your code directory

Step 2:

Open up homestead.yaml file and add these lines

folders:
    - map: /Users/{yourName}/Code/phpMyAdmin
      to: /home/vagrant/Code/phpMyAdmin
sites:
    - map: phpmyadmin.test
      to: /home/vagrant/Code/phpMyAdmin

Step 3:

Open your hosts file and add this line:

127.0.0.1 phpmyadmin.test

Step 4:

You may need to run vagrant provision to load the new configuration if vagrant is already running.

Thats it...Thank You!!

answered Mar 31 by Niroj
• 57,260 points

Last login: Tue Jul 21 05:50:05 2020 from 10.0.2.2
vagrant@homestead:~$ ls
MyApp  project1
vagrant@homestead:~$

HERE I do Not see phpmyadmin directory... And get an error access 

http://phpmyadmin.test/

http://phpmyadmin.test/index.php

what to do?

Hello @LSE,

Can you please provide more details about what error you're getting?

Related Questions In Laravel

0 votes
1 answer

How can I install Laravel via Laravel Installer on Windows?

Hello, The PATH for Windows: I’ve found the location ...READ MORE

answered Mar 31 in Laravel by Niroj
• 57,260 points
159 views
0 votes
1 answer

How do I get HTTP Request body content in Laravel?

Hello @kartik, Inside controller inject Request object. So ...READ MORE

answered Aug 11 in Laravel by Niroj
• 57,260 points
119 views
0 votes
1 answer

How do I catch exceptions / missing pages in Laravel 5?

Hello @kartik, In Laravel 5 you can catch ...READ MORE

answered Aug 11 in Laravel by Niroj
• 57,260 points
64 views
0 votes
0 answers

How do I access to a variable inside a function?

I mean,I have public class MyClass{ ...READ MORE

16 hours ago in Laravel by aakash
• 210 points

edited 16 hours ago by Niroj 20 views
+1 vote
1 answer

How to make anchor tag with routing using Laravel?

Hey @kartik, First you have to go to ...READ MORE

answered Mar 18 in Laravel by Niroj
• 57,260 points
2,090 views
0 votes
1 answer

What is redirection in Laravel?

Named route is used to give specific ...READ MORE

answered Mar 18 in Laravel by Niroj
• 57,260 points
218 views
0 votes
1 answer

How to install Laravel via composer?

Hello, This is simple you just need to ...READ MORE

answered Mar 23 in Laravel by Niroj
• 57,260 points
181 views
+1 vote
1 answer

What are named routes in Laravel and How can specify route names for controller actions?

Hey @kartik, Named routing is another amazing feature of ...READ MORE

answered Mar 23 in Laravel by Niroj
• 57,260 points
2,490 views
0 votes
1 answer

How Can I Set the Default Value of a Timestamp Column to the Current Timestamp with Laravel Migrations?

Hello, To create both of the created_at and updated_at columns: $t->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP')); $t->timestamp('updated_at')->default(DB::raw('CURRENT_TIMESTAMP on update ...READ MORE

answered Apr 2 in Laravel by Niroj
• 57,260 points
2,004 views
0 votes
1 answer

How do I write to the console from a Laravel Controller?

Hello @kartik, This can be done with the ...READ MORE

answered Aug 11 in Laravel by Niroj
• 57,260 points
43 views