How to make page views counter in Laravel Application?

|
canbayat 2021-05-13 13:38:10
Shri 2021-05-13 13:33:01
Check controller

Check Also ROUTE in web.php

2021-05-13 13:57:30
Hello everyone! How to make page views counter in Laravel Application?
2021-05-13 14:18:49
simon_an 2021-05-13 06:04:05
Why can’t you write your own e-commerce site then?

Because I want to contribute in something to improve community not to build something that already built!

Lalit Rana 2021-05-13 14:29:06
Bwaks 2021-05-13 11:53:06
return datatables::of($data)
              ->addIndexColumn()
              ->addColumn(‘action’,function(Application $application){
                  $application_id=$application->job_id;
                  $job=Job::where(‘id’,$application_id)->get();
                $job_id=Job::findOrFail($application_id);
                $job_slug=Job::where(i)
                return ‘<a href=”‘.route(‘job.applications.show’,[‘job’=> $job_id, ‘application’ => $application->slug]).'” class=”edit btn btn-success btn-sm”>View Application</a>’;
              })

Is there any error

VIKI 2021-05-13 17:05:48
Thank God theres a love group for laravel
SureshLaraDev 2021-05-13 17:05:59
Welcome home
VIKI 2021-05-13 17:05:59
Hallo all Friends
VIKI 2021-05-13 17:06:14
Im facing a problem
VIKI 2021-05-13 17:06:26
Im really Frustrated
SureshLaraDev 2021-05-13 17:06:39
Take some rest
VIKI 2021-05-13 17:07:10
😂😂😂taken rest Bro but until the issue is resolved theres no relief
SureshLaraDev 2021-05-13 17:07:39
What’s the issue
VIKI 2021-05-13 17:07:53
First I want to know is Foriegn key setup necessary… cant I finish my project without using foreign keya
2021-05-13 17:08:29
VIKI 2021-05-13 17:07:53
First I want to know is Foriegn key setup necessary… cant I finish my project without using foreign keya

yes you can it’s not necessary

VIKI 2021-05-13 17:09:05
R u sure… means can I access data from different tables without issues… whats the use of foreign keys then…
SureshLaraDev 2021-05-13 17:09:44
Foreign key is like….
VIKI 2021-05-13 17:10:15
Yes pls explain abt it…
SureshLaraDev 2021-05-13 17:10:17
You’re son to your mom and bf to your gf. One person having different roles. 😂
SureshLaraDev 2021-05-13 17:10:32
In your home table.. You’re son.
nowodev 2021-05-13 17:10:43
VIKI 2021-05-13 17:09:05
R u sure… means can I access data from different tables without issues… whats the use of foreign keys then…

Nah. You need foreign keys to do this effectively

SureshLaraDev 2021-05-13 17:10:52
nowodev 2021-05-13 17:10:43
Nah. You need foreign keys to do this effectively

Yes

SureshLaraDev 2021-05-13 17:11:08
In your college table you’re student
VIKI 2021-05-13 17:11:08
SureshLaraDev 2021-05-13 17:10:17
You’re son to your mom and bf to your gf. One person having different roles. 😂

Okkkk. I un£👍🏻👍🏻😂

SureshLaraDev 2021-05-13 17:11:22
VIKI 2021-05-13 17:11:08
Okkkk. I un£👍🏻👍🏻😂

Clean

VIKI 2021-05-13 17:11:43
Right…and how many foreign keys can I add to a single table…
SureshLaraDev 2021-05-13 17:12:11
It depends
VIKI 2021-05-13 17:12:22
On what??
VIKI 2021-05-13 17:12:35
Im trying to add two but I cant…
SureshLaraDev 2021-05-13 17:12:53
VIKI 2021-05-13 17:12:35
Im trying to add two but I cant…

Uh??

VIKI 2021-05-13 17:13:00
The table gets created but the migration stays pending
VIKI 2021-05-13 17:13:18
Migration status:0
SureshLaraDev 2021-05-13 17:13:22
Screenshot??
VIKI 2021-05-13 17:13:29
Okkk
VIKI 2021-05-13 17:13:47
Im getting error for error 150:
VIKI 2021-05-13 17:14:13
And something like my foreign key setud method is bad
|