I have a pdf file in which some parametrs like name and email are there and i want to read it and store in database is there any suggestions how can i do that?

|
dacrixk 2020-02-12 17:39:37
Can anyone help me?
2020-02-12 17:47:22
skys215 2020-02-12 15:54:14
show the full error

laravel_discuss-26455.jpg
This sir

skys215 2020-02-12 17:48:42
dacrixk 2020-02-12 17:37:37
How can I upload file to Digitalocean space with Laravel api

do you mean SPACES OBJECT STORAGE?

skys215 2020-02-12 17:50:27
2020-02-12 17:47:22
This sir

show the $casts part of this model

2020-02-12 17:52:14
skys215 2020-02-12 17:50:27
show the $casts part of this model

laravel_discuss-26458.jpg
This model sir

Neeraj Khatak 2020-02-12 17:55:55
How to convert pdf file to excel with proper columns and rows
Neeraj Khatak 2020-02-12 17:56:48
How to read pdf data and extract store in form of array?
dacrixk 2020-02-12 17:59:12
skys215 2020-02-12 17:48:42
do you mean SPACES OBJECT STORAGE?

Yes @skys215

dacrixk 2020-02-12 17:59:40
How to do this
skys215 2020-02-12 18:03:10
dacrixk 2020-02-12 17:59:12
Yes @skys215

https://developers.digitalocean.com/documentation/spaces/
it is compatibale with aws, so use same code of aws to use digitalocean’s SOS

skys215 2020-02-12 18:03:23
2020-02-12 17:52:14
This model sir

there’s no $casts?

Neeraj Khatak 2020-02-12 18:06:27
I have a pdf file in which some parametrs like name and email are there and i want to read it and store in database is there any suggestions how can i do that?
skys215 2020-02-12 18:07:33
Neeraj Khatak 2020-02-12 18:06:27
I have a pdf file in which some parametrs like name and email are there and i want to read it and store in database is there any suggestions how can i do that?

first, try to read the pdf using php

dacrixk 2020-02-12 18:08:04
skys215 2020-02-12 18:03:10
https://developers.digitalocean.com/documentation/spaces/
it is compatibale with aws, so use same code of aws to use digitalocean’s SOS

Can I use it in api request?

dacrixk 2020-02-12 18:08:13
Using S3 driver?
2020-02-12 18:09:28
skys215 2020-02-12 18:03:23
there’s no $casts?

no sir  $ casts where sir

Neeraj Khatak 2020-02-12 18:09:32
skys215 2020-02-12 18:07:33
first, try to read the pdf using php

I have created .csv file with that pdf file using phptables api but need some customization which is not possible there.

skys215 2020-02-12 18:14:33
dacrixk 2020-02-12 18:08:13
Using S3 driver?

it says their SOS’s API has the same compatibility as S3’s API
so just changing the endpoint url will work
read the doc for how laravel handle with s3: https://laravel.com/docs/6.x/filesystem

Laravel – The PHP Framework For Web ArtisansLaravel
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
skys215 2020-02-12 18:15:50
2020-02-12 17:47:22
This sir

dump all three variable it has used

2020-02-12 18:20:12
skys215 2020-02-12 18:15:50
dump all three variable it has used

laravel_discuss-26474.jpg
Here are the results, sir

skys215 2020-02-12 18:23:16
2020-02-12 18:20:12
Here are the results, sir

nope, this is not

2020-02-12 18:29:22
How auto genrate slug in laravel using ajax
skys215 2020-02-12 18:29:54
I don’t understand your question
2020-02-12 18:30:44
Genrate slug keyword from title using ajax + laravel
skys215 2020-02-12 18:35:07
Sorry, my English is not good, I can’t undetstand
Boss_meet 2020-02-12 18:37:54
2020-02-12 18:30:44
Genrate slug keyword from title using ajax + laravel

Just write query in controller

cosmonte 2020-02-12 18:45:40
2020-02-12 18:29:22
How auto genrate slug in laravel using ajax

Use $slug = str_slug($title);

cosmonte 2020-02-12 18:46:08
https://laravel.com/docs/5.7/helpers#method-str-slug
cosmonte 2020-02-12 18:46:14
Check more here:
2020-02-12 19:08:46
Ok
rijisoft 2020-02-12 19:14:25
Hi
I have a ticketing system
I define a wallet for users, after succefull payment, the payment return a callback url to me like
Site.com/transaction/1
Then I check that request and , increment wallet amount

My question is how to prevent hack or sometimes maybe one person send multiple times this callback

dacrixk 2020-02-12 19:16:43
rijisoft 2020-02-12 19:14:25
Hi
I have a ticketing system
I define a wallet for users, after succefull payment, the payment return a callback url to me like
Site.com/transaction/1
Then I check that request and , increment wallet amount

My question is how to prevent hack or sometimes maybe one person send multiple times this callback

Use hash

rijisoft 2020-02-12 19:18:45
dacrixk 2020-02-12 19:16:43
Use hash

How to use ?any tutorial ??

rijisoft 2020-02-12 19:19:55
I think in first step use a unique Id like (vavata-262nztvX4&62xxdfqbabzfga5′) for transaction instead of an increment id (1)

And I define an status for transactions ,

Only transactions in status =0 can be accessed and after the first time callback is returned change the status=1 and future sending callback always go to the wall beacuase of the status of transaction is changed

MatPk 2020-02-12 20:48:45
if i run
php artisan schedule:run
and then i stop the serve, how Laravel can know i told it do this task every week?
MatPk 2020-02-12 20:50:23
MatPk 2020-02-12 20:48:45
if i run
php artisan schedule:run
and then i stop the serve, how Laravel can know i told it do this task every week?

anyone knows?

codetrend 2020-02-12 21:00:41
MatPk 2020-02-12 20:48:45
if i run
php artisan schedule:run
and then i stop the serve, how Laravel can know i told it do this task every week?

The schedules run with cronjobs its not base on serve

codetrend 2020-02-12 21:02:46
https://laravel.com/docs/6.x/scheduling
MatPk 2020-02-12 21:03:30
codetrend 2020-02-12 21:00:41
The schedules run with cronjobs its not base on serve

Oh thanks man u saved my time

codetrend 2020-02-12 21:04:23
no problem
rijisoft 2020-02-12 21:06:46
rijisoft 2020-02-12 19:19:55
I think in first step use a unique Id like (vavata-262nztvX4&62xxdfqbabzfga5′) for transaction instead of an increment id (1)

And I define an status for transactions ,

Only transactions in status =0 can be accessed and after the first time callback is returned change the status=1 and future sending callback always go to the wall beacuase of the status of transaction is changed

Anyone can help me
Any advice can help me 🙌🤗😬

Mani 2020-02-12 21:12:16
MatPk 2020-02-12 20:48:45
if i run
php artisan schedule:run
and then i stop the serve, how Laravel can know i told it do this task every week?

Run task scheduler with cron
* * * * * Cd /path to your project && php artisan schedule:run
And then add commands in your console kernel according to the desired time likewise
->daily(), ->weekly()
Check laravel task scheduling docs

2020-02-12 23:13:30
laravel_discuss-26499.jpg
I want to fix this problem. anyone to hire?
2020-02-12 23:17:43
laravel_discuss-26500.jpg
Hi guys I made autocomplete with ajax but im getting this error plz help me to solve it
richitorres 2020-02-13 00:57:48
2020-02-12 23:17:43
Hi guys I made autocomplete with ajax but im getting this error plz help me to solve it

dont use AJAX , use react o vue, that languages are installied in your project

richitorres 2020-02-13 00:57:55
if yo can type in your terminal
richitorres 2020-02-13 00:58:15
php preset vue o if you can use react, you type php preset react
richitorres 2020-02-13 00:58:38
that language is more better than ajax
richitorres 2020-02-13 00:58:43
axios is perfect
2020-02-13 00:59:22
Sir plz if you have any link for vue autocomplete search could you share
|