How do i insert values on a fillable pdf form using php?

|
TDarkCoder 2020-02-15 23:32:05
dd works
karabayyazilim 2020-02-16 03:35:51
ERR_TOO_MANY_REDIRECTS what is this error
skys215 2020-02-16 03:37:14
Redirect loop
Bittle 2020-02-16 05:08:35
karabayyazilim 2020-02-16 03:35:51
ERR_TOO_MANY_REDIRECTS what is this error

Check how you’re redirecting, one of those routes can be pointing to a route that points to the original route, etc. This causes a loop

PHP Begginer 2020-02-16 15:00:33
I have the problem of showing the url in api ,This is the error I am getting Missing required parameters for [Route: flights.show] [URI: api/v1/flights/{flight}].
PHP Begginer 2020-02-16 15:01:03
public function getFlight($flightNumber)
{
return $this->filterFlights(Flight::where(‘flightNumber’,$flightNumber )->get());
}

protected function filterFlights($flights)
{
$data = [];

foreach ($flights as $flight){
$entry =[
‘flightNumber’ => $flight->flightNumber,
‘status’ => $flight->status,
‘href’ => route(‘flights.show’, [‘id’ => $flight->flightNumber])
];

//Add in data array
$data[] = $entry;
}

return $data;
}

PHP Begginer 2020-02-16 15:01:34
this is my controller public function show($id)
{
//call service
$data = $this->flights->getFlights($id);
return response()->json($data);
}
PHP Begginer 2020-02-16 15:01:53
Route::resource(‘/v1/flights’, v1FlightController::class);
PHP Begginer 2020-02-16 15:02:24
Missing required parameters for [Route: flights.show] [URI: api/v1/flights/{flight}].
2020-02-16 15:16:13
Hello all, anyone in the group professional at sending out mass emails with php or python script. Send me a private message I got a project
skys215 2020-02-16 15:35:44
PHP Begginer 2020-02-16 15:01:03
public function getFlight($flightNumber)
{
return $this->filterFlights(Flight::where(‘flightNumber’,$flightNumber )->get());
}

protected function filterFlights($flights)
{
$data = [];

foreach ($flights as $flight){
$entry =[
‘flightNumber’ => $flight->flightNumber,
‘status’ => $flight->status,
‘href’ => route(‘flights.show’, [‘id’ => $flight->flightNumber])
];

//Add in data array
$data[] = $entry;
}

return $data;
}

have you checked that flight->flightNumber exists?

PHP Begginer 2020-02-16 15:36:05
Yes it does
sadeqi125 2020-02-16 16:16:14
how can upload my laravel project in cpanel
sadeqi125 2020-02-16 16:16:25
can help m
sadeqi125 2020-02-16 16:16:33
elaravel vuejs project
2020-02-16 16:21:00
PHP Begginer 2020-02-16 15:02:24
Missing required parameters for [Route: flights.show] [URI: api/v1/flights/{flight}].

route(“flights.show”, $data->id)

skys215 2020-02-16 16:57:17
sadeqi125 2020-02-16 16:16:14
how can upload my laravel project in cpanel

#deploying_on_a_shared_host click this link

Blast06 2020-02-16 17:12:35
people, $request->validated() does not work anymore?
2020-02-16 17:21:56
Blast06 2020-02-16 17:12:35
people, $request->validated() does not work anymore?

->validate()

AlkaouDembele 2020-02-16 20:22:48
Try it $users = User::all()->get();
loveycom 2020-02-16 21:42:13
AlkaouDembele 2020-02-16 20:22:48
Try it $users = User::all()->get();

Why get on all again?

praneet81 2020-02-17 01:51:51
How do i insert values on a fillable pdf form using php?
praneet81 2020-02-17 01:52:53
It should just fill the fields without changing the style of pdf, in short or shouldn’t flatten the file
Fatima 2020-02-17 02:08:07
laravel_discuss-26724.jpg
How can I solve this problem???
loveycom 2020-02-17 06:50:57
Fatima 2020-02-17 02:08:07
How can I solve this problem???

Check out the following:
Php version
Laravel version
And ensure they meet the package requirements

rebory 2020-02-17 06:55:15
loveycom 2020-02-15 18:02:17
Double datatype.

i used double (18,2) but same issue it’s save 12.25 as 12.00

loveycom 2020-02-17 06:59:11
rebory 2020-02-15 14:22:21
blade dd(); array

Quote the floats

rebory 2020-02-17 07:00:24
loveycom 2020-02-17 06:59:11
Quote the floats

u means if save the float in database need to covert in string?

rebory 2020-02-17 07:03:31
rebory 2020-02-17 07:00:24
u means if save the float in database need to covert in string?

laravel_discuss-26730.jpg

loveycom 2020-02-17 07:12:02
Please what is the source of your data? Form or api or file?
rebory 2020-02-17 07:17:10
loveycom 2020-02-17 07:12:02
Please what is the source of your data? Form or api or file?

form

rebory 2020-02-17 07:18:33
rebory 2020-02-17 07:17:10
form

laravel_discuss-26734.jpg

loveycom 2020-02-17 07:19:42
OK. I understand now. Amount came from form (which will be in form of string) while others are from calculations.
loveycom 2020-02-17 07:21:24
Try this first

‘unit_price’ => (string) $request…

loveycom 2020-02-17 07:37:57
Finally, if this does not work, try with (float) instead of (string). You are experiencing precision error which is an error known in php and also by mysql (in some cases). So if these solutions above failed, then the error is not in the code but mysql
rebory 2020-02-17 07:40:22
loveycom 2020-02-17 07:37:57
Finally, if this does not work, try with (float) instead of (string). You are experiencing precision error which is an error known in php and also by mysql (in some cases). So if these solutions above failed, then the error is not in the code but mysql

so but i do for solution?

loveycom 2020-02-17 07:40:44
loveycom 2020-02-17 07:21:24
Try this first

‘unit_price’ => (string) $request…

This

rebory 2020-02-17 07:50:41
loveycom 2020-02-17 07:40:44
This

i cant understand how to used it in my code

rebory 2020-02-17 07:51:24
‘tax_amount’ => ($request->sale_tax[$key]==1) ? (string) $request->quantity[$key] * calculateTax($request->amount[$key]): 0,
loveycom 2020-02-17 07:52:21
Put it just immediately after the => sign
loveycom 2020-02-17 07:53:32
loveycom 2020-02-17 07:52:21
Put it just immediately after the => sign

‘tax_amount’ => (string) ($request->sale_tax[$key]==1) ? $request->quantity[$key] * calculateTax($request->amount[$key]): 0,

rebory 2020-02-17 07:53:54
ok
loveycom 2020-02-17 07:54:30
Yea
loveycom 2020-02-17 08:01:00
Update?
rebory 2020-02-17 08:02:24
loveycom 2020-02-17 08:01:00
Update?

wait

Fatima 2020-02-17 08:38:59
laravel_discuss-26749.jpg
Is the problem in package or my codes???
Z_Yamin 2020-02-17 09:29:17
Fatima 2020-02-17 08:38:59
Is the problem in package or my codes???

read this one. i hope it help to you
https://serverfault.com/questions/575239/error-unable-to-find-dot-command-of-the-graphviz-package

Error – Unable to find `dot` command of the GraphViz packageServer Fault
Ubuntu precise (12.04.1 LTS)

I’m rather new to PEAR.

I installed PEAR. Then, using pear I installed phpdoc.

It seems to be working great except for the graphing functions.

I ran this command:

praneet81 2020-02-17 09:46:26
How do i insert values on a fillable pdf form using php?
praneet81 2020-02-17 09:46:37
It should just fill the fields without changing the style of pdf, in short or shouldn’t flatten the file
rebory 2020-02-17 09:57:30
laravel_discuss-26754.jpg

|