Yes yes is it possible to develop HTTP API using it?

|
2019-07-21 14:05:31
mhd_arffnn 2019-07-21 14:05:22
yes yes is it possible to develop HTTP API using it?

with any framework.

2019-07-21 14:05:57
if you want to stay in the laravel enviromnent maybe it’ll be better go trough the Lumen.
2019-07-21 14:06:26
but laravel zero is for console applications
2019-07-21 14:06:36
it’s better you read the documentation before go trough it.
acrossoffwest 2019-07-21 14:06:51
mhd_arffnn 2019-07-21 14:05:22
yes yes is it possible to develop HTTP API using it?

Why did you decide use it framework for API?

2019-07-21 14:07:11
mhd_arffnn 2019-07-21 14:05:22
yes yes is it possible to develop HTTP API using it?

with laravel zero no

2019-07-21 14:07:26
acrossoffwest 2019-07-21 14:06:51
Why did you decide use it framework for API?

with laravel zero him will only develop console applications

2019-07-21 14:07:35
it’s more for run background tasks in the server.
acrossoffwest 2019-07-21 14:07:46
2019-07-21 14:07:26
with laravel zero him will only develop console applications

I know it

acrossoffwest 2019-07-21 14:08:24
But I am interesting why he decide use it framework
mhd_arffnn 2019-07-21 14:09:23
oh man, all my code right now are using laravel zero
mhd_arffnn 2019-07-21 14:10:18
acrossoffwest 2019-07-21 14:08:24
But I am interesting why he decide use it framework

currently i developing a background task to exhange file between server to server

mhd_arffnn 2019-07-21 14:11:02
but right now i need to use API 🙁
acrossoffwest 2019-07-21 14:11:02
mhd_arffnn 2019-07-21 14:09:23
oh man, all my code right now are using laravel zero

Just move your code to Lumen, It should be easy I think

2019-07-21 14:11:40
acrossoffwest 2019-07-21 14:11:02
Just move your code to Lumen, It should be easy I think

It’s easy if him follow the standards and convetions

2019-07-21 14:11:52
For example, using interfaces, repository patterns
2019-07-21 14:11:54
and etc
2019-07-21 14:11:59
it’ll be very easy
acrossoffwest 2019-07-21 14:12:01
2019-07-21 14:11:40
It’s easy if him follow the standards and convetions

Yeap, I agree with you

2019-07-21 14:12:26
I have a bulk of generic classes and i create my own laravel installation set up
2019-07-21 14:12:41
with that I can move to any kind env of the framework without headach
2019-07-21 14:13:02
recently i finished create a resources controllers for generic responses, so now I can use in any framework.
2019-07-21 14:13:21
if him follows those ideas and standards, him it not will have any issues.
mhd_arffnn 2019-07-21 14:17:47
i will try using guzzle hope it works
acrossoffwest 2019-07-21 14:19:07
mhd_arffnn 2019-07-21 14:17:47
i will try using guzzle hope it works

Oh, do you wana do http request from your project?

mhd_arffnn 2019-07-21 14:19:35
yes i need to POST and GET something from external API
acrossoffwest 2019-07-21 14:20:16
Just we wrong understand your question, sorry
acrossoffwest 2019-07-21 14:20:26
Use Guzzle yeap
mhd_arffnn 2019-07-21 14:20:56
nevermind buddy, seems a good news will try it
nikhil_ev 2019-07-21 15:48:57
laravel_discuss-9798.jpg
Anybody know why the url is wrong and how to correct it #openAPI ##swagger
nikhil_ev 2019-07-21 15:50:11
Url should be localhost:8000 right but something is wrong
acrossoffwest 2019-07-21 16:11:14
nikhil_ev 2019-07-21 15:48:57
Anybody know why the url is wrong and how to correct it #openAPI ##swagger

localhost setted as protocol

nikhil_ev 2019-07-21 16:13:56
Yeh.. i have editted correct url in l5-swagger.php
base env filr
nikhil_ev 2019-07-21 16:14:02
It worked
MatPk 2019-07-22 10:48:37
hi guys
who worked with ckeditor in laravel? i have problem
MatPk 2019-07-22 10:50:21
laravel_discuss-9806.jpg
when i’m trying to upload image in ckeditor, the 404 not found error will showed.
acrossoffwest 2019-07-22 11:06:50
MatPk 2019-07-22 10:48:37
hi guys
who worked with ckeditor in laravel? i have problem

Hi, try this guide: https://coderwall.com/p/xs1rsa/image-uploads-with-ckeditor-and-laravel

Image Uploads with CKEditor and Laravel (Example)Coderwall
A protip by graup about php, laravel, upload, and ckeditor.
Prakash D 2019-07-22 12:31:13
Can any one tell how to upload image to S3
acrossoffwest 2019-07-22 12:35:49
Prakash D 2019-07-22 12:31:13
Can any one tell how to upload image to S3

i think you can to use default drive for S3

acrossoffwest 2019-07-22 12:39:27
Prakash D 2019-07-22 12:31:13
Can any one tell how to upload image to S3

.env:

AWS_ACCESS_KEY_ID=xxxxx
AWS_SECRET_ACCESS_KEY=xxxx
AWS_DEFAULT_REGION=ap-south-1
AWS_BUCKET=laravelimage

public function imageUpload(Request $request)
{
$this->validate($request, [‘image’ => ‘required|image’]);
if($request->hasfile(‘image’))
{
$file = $request->file(‘image’);
$name=time().$file->getClientOriginalName();
$filePath = ‘images/’ . $name;
Storage::disk(‘s3’)->put($filePath, file_get_contents($file));
return back()->with(‘success’,’Image Uploaded successfully’);
}
}

acrossoffwest 2019-07-22 12:39:47
acrossoffwest 2019-07-22 12:39:27
.env:

AWS_ACCESS_KEY_ID=xxxxx
AWS_SECRET_ACCESS_KEY=xxxx
AWS_DEFAULT_REGION=ap-south-1
AWS_BUCKET=laravelimage

public function imageUpload(Request $request)
{
$this->validate($request, [‘image’ => ‘required|image’]);
if($request->hasfile(‘image’))
{
$file = $request->file(‘image’);
$name=time().$file->getClientOriginalName();
$filePath = ‘images/’ . $name;
Storage::disk(‘s3’)->put($filePath, file_get_contents($file));
return back()->with(‘success’,’Image Uploaded successfully’);
}
}

from: https://appdividend.com/2018/05/22/laravel-cloud-file-upload-tutorial-with-example/

Laravel Cloud File Upload: How to Upload Image on AWS S3AppDividend
We will upload an Image from Laravel and store the image inside AWS S3 Storage. I have shown every step from creating AWS account.
ldefra 2019-07-22 18:48:23
hi guys, i just noticed that laravel collective didn’t support laravel 5.8, how are you doing?
ldefra 2019-07-22 19:02:05
the best solution! 😂
I wanted to know if you still used it or used the classic tags? Because it was convenient for me to use it but maybe I was wrong
zack6849 2019-07-22 20:04:13
Some of the helpers looked neat but not worth the trade-off of not using other libraries or the newer versions Imo
shaileshkumarcs 2019-07-23 06:48:59
Hello everyone, how to create Laravel multiple user logins with a different table and their session management.
lincoln3917 2019-07-23 10:17:42
hi there i got some problem
DB::table(‘office’)->select(‘office.datetime AS date’, ‘nn AS people’)->get();
then laravel show me error like this
SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘nn’ in ‘field list’ (SQL: select office.datetime as date, nn as dadsa from `office`)
nikhil_ev 2019-07-23 10:41:11
lincoln3917 2019-07-23 10:17:42
hi there i got some problem
DB::table(‘office’)->select(‘office.datetime AS date’, ‘nn AS people’)->get();
then laravel show me error like this
SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘nn’ in ‘field list’ (SQL: select office.datetime as date, nn as dadsa from `office`)

Do you have the column nn in table?

lincoln3917 2019-07-23 10:46:51
no i don’t have nn in column
lincoln3917 2019-07-23 10:48:45
i will put nn in alias thats why i use query like that
nikhil_ev 2019-07-23 15:00:37
You are trying to take a column ‘nn’ which is not exists as dadsa
|