Please help me how can i have multiple project in same domain?

|
nomad 2019-06-02 20:28:35
thx
StanleyMasinde 2019-06-02 21:57:17
nomad 2019-06-02 18:55:53
Hi Guys,
Is max() function applicable for finding biggest datetime from an array ?

It would work if you converted it to Unix time

2019-06-02 22:06:30
Hi pls any good book on available packages for laravel ?especially data tables .thanks.
bourseAdviser_Dev 2019-06-03 07:04:56
hi everybody,i have a question
i need to install multiple laravel project in one domain
for example one project in
example.com
and another laravel project in
example.com/project1
please help me how can i have multiple project in same domain?
gabrielmoraesp 2019-06-03 07:07:07
Hi.
Look for virtualhost in the server
bourseAdviser_Dev 2019-06-03 07:09:30
gabrielmoraesp 2019-06-03 07:07:07
Hi.
Look for virtualhost in the server

would you please tell me more

gabrielmoraesp 2019-06-03 07:22:04
You need create virtualhosts.
For exemple:
Virtualhost 1
Documentroot /var/www/exemple.com

Virtualhost 2
/var/www/exemple.com/project1/public

Virtualhost 3
/var/www/exemple.com/project2/public

https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts

bourseAdviser_Dev 2019-06-03 07:31:08
gabrielmoraesp 2019-06-03 07:22:04
You need create virtualhosts.
For exemple:
Virtualhost 1
Documentroot /var/www/exemple.com

Virtualhost 2
/var/www/exemple.com/project1/public

Virtualhost 3
/var/www/exemple.com/project2/public

https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts

can i create virtual host in shared host?

StanleyMasinde 2019-06-03 08:26:58
bourseAdviser_Dev 2019-06-03 07:31:08
can i create virtual host in shared host?

You cannot

bourseAdviser_Dev 2019-06-03 08:32:37
thank,is there another solution?
rizkyarlin 2019-06-03 08:34:42
bourseAdviser_Dev 2019-06-03 08:32:37
thank,is there another solution?

Rent dedicated server?

StanleyMasinde 2019-06-03 08:36:44
bourseAdviser_Dev 2019-06-03 07:04:56
hi everybody,i have a question
i need to install multiple laravel project in one domain
for example one project in
example.com
and another laravel project in
example.com/project1
please help me how can i have multiple project in same domain?

Yes. Use subdomains.

Like
yourapp.com
blog.yourapp.com
etc

bourseAdviser_Dev 2019-06-03 08:38:43
ok thanks
Nunzio_S 2019-06-03 18:52:04
Hi guys, i need to check a form input after a blur event, but i don’t understand how.
skys215 2019-06-03 18:55:52
use javascript
Nunzio_S 2019-06-03 19:00:03
skys215 2019-06-03 18:55:52
use javascript

Mmm okay, and save the file in public/js?

skys215 2019-06-03 19:00:16
yes
Nunzio_S 2019-06-03 19:01:35
Okay thx, I’m trying
Coinwell 2019-06-03 19:59:51
bourseAdviser_Dev 2019-06-03 07:04:56
hi everybody,i have a question
i need to install multiple laravel project in one domain
for example one project in
example.com
and another laravel project in
example.com/project1
please help me how can i have multiple project in same domain?

U could use valet

praneet81 2019-06-04 17:44:00
Has anyone used maatwebsite package for importing excel sheet?
murtaza_amravatiwala 2019-06-04 17:57:31
Yes
Cybervant 2019-06-04 18:10:24
praneet81 2019-06-04 17:44:00
Has anyone used maatwebsite package for importing excel sheet?

I prefer using phpspreadsheet

Cybervant 2019-06-04 18:11:17
That is, to read the data then handle it the way I want… Validation, queues e.t.c
Kvn_makwana 2019-06-04 22:32:14
praneet81 2019-06-04 17:44:00
Has anyone used maatwebsite package for importing excel sheet?

Yes

2019-06-05 04:12:05
laravel_discuss-6783.jpg

Prakash D 2019-06-05 08:58:21
How we create header in laravel
Prakash D 2019-06-05 08:58:34
Send some example
Prakash D 2019-06-05 09:15:02
Guys
aslamdoctor 2019-06-05 10:20:16
hi guys, I would like to know what is better in regards to authentication methods. OAuth2 or JWT? and why?
loveycom 2019-06-05 10:45:14
Prakash D 2019-06-05 08:58:21
How we create header in laravel

You mean request header

loveycom 2019-06-05 10:47:20
$request = Request::create(route(‘api.v1.b.show’, [‘booking’ => 4]), ‘GET’);
$request->headers->set(‘X-Authorization’, ‘xxxxx’);
loveycom 2019-06-05 11:00:23
return response($content) ->withHeaders([ ‘Content-Type’ => $type, ‘X-Header-One’ => ‘Header Value’, ‘X-Header-Two’ => ‘Header Value’, ]);
Prakash D 2019-06-05 11:55:23
Header and footer for website
Manoj Mehta 2019-06-05 14:54:23
Can any one help me in ionic 3 and firebase notification integration
Manoj Mehta 2019-06-05 14:54:39
Any demo code?
Kvn_makwana 2019-06-05 15:56:34
aslamdoctor 2019-06-05 10:20:16
hi guys, I would like to know what is better in regards to authentication methods. OAuth2 or JWT? and why?

Oauth

Amirreza_ghorbanian 2019-06-05 16:07:27
hi guys
whene i use artisan auth artisan create a layout wich containe a app file and in that i find @yield(‘content’)
so question is laravel how know which content ? becuse all of the login register and home is section content !!!
skys215 2019-06-05 16:09:03
You should use @parent to include the content which already added to that section.
Otherwise it would be overwritten
gmaciel 2019-06-05 23:01:55
PHP job in Toronto – Canada

Description
Remote opportunity to join a company that helps clients worldwide!

– 5+ yrs of professional experience
– Proficient in PHP
– MySQL experience
– Must have worked with GIT, Linux and RestAPI
– Vagrant is a huge plus!

– Candidates that scored 70% or more on PHP Code Challenge will be considered
– Candidates with verified English as “Advanced” or “Fluent” will be considered

Must Have Skills
php my sql git oop linux rest api laravel

Nice To Have Skills
vagrant

Enroll now on vanhack’s platform 😁
https://app.vanhack.com/invite/guilhermeime

StanleyMasinde 2019-06-06 06:46:26
gmaciel 2019-06-05 23:01:55
PHP job in Toronto – Canada

Description
Remote opportunity to join a company that helps clients worldwide!

– 5+ yrs of professional experience
– Proficient in PHP
– MySQL experience
– Must have worked with GIT, Linux and RestAPI
– Vagrant is a huge plus!

– Candidates that scored 70% or more on PHP Code Challenge will be considered
– Candidates with verified English as “Advanced” or “Fluent” will be considered

Must Have Skills
php my sql git oop linux rest api laravel

Nice To Have Skills
vagrant

Enroll now on vanhack’s platform 😁
https://app.vanhack.com/invite/guilhermeime

This link looks life a referal link. Please be honest. Actually I think this is spam

Sumeet Jadhav 2019-06-06 10:32:49
Facing issue while writing unit test case for mail mocking
Can anyone please show me an example code for how to mock Mail
gmaciel 2019-06-06 10:48:55
StanleyMasinde 2019-06-06 06:46:26
This link looks life a referal link. Please be honest. Actually I think this is spam

This is indeed a referral link, yet there is no dishonesty while sharing that, it is a win-win situation. The company is legit, you can check them on any social media and countless successful cases…

StanleyMasinde 2019-06-06 10:50:48
gmaciel 2019-06-06 10:48:55
This is indeed a referral link, yet there is no dishonesty while sharing that, it is a win-win situation. The company is legit, you can check them on any social media and countless successful cases…

Thank you for the confirmation

nishan_b 2019-06-06 15:07:51
Array Collapse Performance Improvement in Laravel 5.8.20 https://laravel-news.com/laravel-5-8-20

Array Collapse Performance Improvement in Laravel 5.8.20Laravel News
The Laravel team released v5.8.20 yesterday with a performance improvement to the Arr::collapse() method along with the latest weekly additions, changes, and fixes.
Performance Improvements
Last week we saw an improvement to the Arr::flatten() method in v5.8.19, and this week the Arr class gets another performance improvement to the collapse method.
As far as I unders …
frz_099 2019-06-06 18:02:30
Call to undefined function AppHttpControllersvalidate()
oxbir 2019-06-06 18:18:57
How to register the user once to select the order?
oxbir 2019-06-06 18:20:00
The user chooses to register and send the order. Now my problem is that the user can only choose one order once.

If the user selects the order twice, a message will appear that previously saved your order.

OrderController.php

public function store(Request $request)
{
$this->validate(request(), [
‘category_id’ => ‘required’
]);

$order = Order::findOrFail(request(‘category_id’));

if(auth()->user()->checkOrder($order)) {
alert()->error(‘you ordered this order already’,’warinng’)->persistent(‘ok’);
return redirect()->back();
}
}
User.php

public function checkOrder($category)
{
return !! Order::where(‘user_id’ , $this->id)->where(‘category_id’ , $category->id)->first();
}

DesolatorMagno 2019-06-06 18:45:41
oxbir 2019-06-06 18:20:00
The user chooses to register and send the order. Now my problem is that the user can only choose one order once.

If the user selects the order twice, a message will appear that previously saved your order.

OrderController.php

public function store(Request $request)
{
$this->validate(request(), [
‘category_id’ => ‘required’
]);

$order = Order::findOrFail(request(‘category_id’));

if(auth()->user()->checkOrder($order)) {
alert()->error(‘you ordered this order already’,’warinng’)->persistent(‘ok’);
return redirect()->back();
}
}
User.php

public function checkOrder($category)
{
return !! Order::where(‘user_id’ , $this->id)->where(‘category_id’ , $category->id)->first();
}

I don’t get it, why in checkOrder you expect category but i see you pass $order, you should also expecify in the function what type of data (or model) you are expecting, like this.

public function checkOrder(Order $category)

oxbir 2019-06-06 18:54:28
It is not working
oxbir 2019-06-06 18:56:28
DesolatorMagno 2019-06-06 18:45:41
I don’t get it, why in checkOrder you expect category but i see you pass $order, you should also expecify in the function what type of data (or model) you are expecting, like this.

public function checkOrder(Order $category)

My problem did not solve

|