You mean between microservices and modular monoliths?

|
2020-10-22 20:02:51
mystic_riverr 2020-10-22 19:55:28
Hi ,

I Have Created A Form To Upload Something To Database And I Need To Show Contents From the table under that form.

So For that i have created a route with get with some function and then returned the blade page containing the form and then created a post route with some other function and now the uploading section was working fine. Bt since i need to show contents from the database under the form i have changed the previous get function to get those contents from the database and then returned it as some variable and then in the blade.php page used for each to show all those datas inder the form. But Now I Can’t type anything in the form And Its Showing Datas From The Database . What is the problem?

Inspect this in browser and see what’s going wrong.

2020-10-22 20:04:17
There might b some zindex or overflow issue (related to css property)
gktauuuzx 2020-10-22 20:04:22
Bacott
2020-10-22 20:07:44
I have created a form to upload image and reduce file size while uploading… but not working? any idea or tips
2020-10-22 20:11:57
2020-10-22 20:07:44
I have created a form to upload image and reduce file size while uploading… but not working? any idea or tips

What error you’re getting

2020-10-22 20:14:32
gktauuuzx 2020-10-22 20:04:22
Bacott

Mbak ini grup internasional_- banyak orang

gktauuuzx 2020-10-22 20:15:14
2020-10-22 20:14:32
Mbak ini grup internasional_- banyak orang

Gw sii o ajje

datlechin 2020-10-22 20:17:15
laravel_discuss-56019.jpg
Which path can I access this file directly?

http://localhost:8000/ ….

gktauuuzx 2020-10-22 20:17:48
@dilaaajew tap ajjaaa
2020-10-22 20:22:03
datlechin 2020-10-22 20:17:15
Which path can I access this file directly?

http://localhost:8000/ ….

You can try move files folder into public, cause laravel root /public

DesolatorMagno 2020-10-22 20:24:16
laravel_discuss-56023.jpg

2020-10-22 20:24:42
datlechin 2020-10-22 20:17:15
Which path can I access this file directly?

http://localhost:8000/ ….

You need to move to the Public folder or inside the Public folder you can create a new folder and store there

DesolatorMagno 2020-10-22 20:25:25
app/files should be for either internal files, or files that you don’t want to be acceded thought a simple get route.
datlechin 2020-10-22 20:25:29
2020-10-22 20:24:42
You need to move to the Public folder or inside the Public folder you can create a new folder and store there

storage:link, right ?

2020-10-22 20:25:46
Php artisan storage:link
2020-10-22 20:26:03
datlechin 2020-10-22 20:25:29
storage:link, right ?

Exactly

2020-10-22 20:26:55
To store the file use “storeAs(‘public’,$filename)”
iamurjay 2020-10-22 20:29:32
Help?
StanleyMasinde 2020-10-22 20:46:45
2020-10-22 19:57:13
Can I integrate Laravel with ReactJS?

Yes using laravel mix and not the react CLI

datlechin 2020-10-22 20:58:00
2020-10-22 20:26:55
To store the file use “storeAs(‘public’,$filename)”

how to name the file like laravel (eg: hCtp3vhNQ4J7DWMyzp7e1VHq4fn5ajmnn9SpQZqn.png)

2020-10-22 21:01:28
$filename = ‘YourFileName’.$request->get()->(‘file’)->guessextension()
Then filename will be YourFileName.png
DesolatorMagno 2020-10-22 21:02:49
$path = $request->file(‘avatar’)->store(‘avatars’);
DesolatorMagno 2020-10-22 21:03:48
There are a few important things to note about this example. Note that we only specified a directory name, not a file name. By default, the store method will generate a unique ID to serve as the file name. The file’s extension will be determined by examining the file’s MIME type.

You use store instead of storeAs

2020-10-22 21:05:53
DesolatorMagno 2020-10-22 21:03:48
There are a few important things to note about this example. Note that we only specified a directory name, not a file name. By default, the store method will generate a unique ID to serve as the file name. The file’s extension will be determined by examining the file’s MIME type.

You use store instead of storeAs

While storing the document I used to add the PrimaryKey to the fileName for Unique File will store Automatically Creates Unique ID

datlechin 2020-10-22 21:05:59
DesolatorMagno 2020-10-22 21:02:49
$path = $request->file(‘avatar’)->store(‘avatars’);

This is not public/ it saves to storage/app/ (although I ran storage: link)

DesolatorMagno 2020-10-22 21:07:26
laravel_discuss-56039.jpg
You should configure the disk, if you use local, of course it will store it in that place.
DesolatorMagno 2020-10-22 21:07:51
you need to use public, because that file will be.. public.
DesolatorMagno 2020-10-22 21:08:15
The documentation don’t byte.
DesolatorMagno 2020-10-22 21:09:15
usually a ‘avatar’ disk should be something like app/public/users
Syed Shahid Raza 2020-10-22 21:32:35
Hello My name is Syed I am a php developer having 2yeras of experience in web development, I loss my job in corona plz inform if any requirements for php developer. Location Gurgao
2020-10-22 21:34:12
Syed Shahid Raza 2020-10-22 21:32:35
Hello My name is Syed I am a php developer having 2yeras of experience in web development, I loss my job in corona plz inform if any requirements for php developer. Location Gurgao

Keep this posted on LinkedIn, there are many looking for the same there.

Syed Shahid Raza 2020-10-22 21:34:34
Oky thank you..
datlechin 2020-10-22 21:56:27
file uploaded to the server, why does the image file have a jpg extension and other file types have no extension
datlechin 2020-10-22 21:57:30
the exe file extension when uploaded has no extension
Abde 2020-10-22 22:46:07
Let’s play to win cash prizes! Join me on GAMEE. https://www.gamee.com/get/fuwced0a

GAMEE – Play games, WIN REAL CASH!
Play games, get tickets and WIN $$$. More tickets, more chances to WIN! Enjoy over 80 free games, arcades, sports games, puzzle games and more. WIN REAL CASH!
git_au 2020-10-23 10:13:33
Hey guys between microservices and packages which might be the best way to start scaling out a laravel application
StanleyMasinde 2020-10-23 10:37:24
git_au 2020-10-23 10:13:33
Hey guys between microservices and packages which might be the best way to start scaling out a laravel application

You mean between microservices and modular monoliths?

StanleyMasinde 2020-10-23 10:37:38
Or what do you mean by packages?
git_au 2020-10-23 10:54:53
StanleyMasinde 2020-10-23 10:37:38
Or what do you mean by packages?

Kind of like plugins…the application is built to accept extra modules in plugin form…the plugins can even have their own data sources…so all you need to do to add those extra features to the application is add the plugin/package

git_au 2020-10-23 10:58:15
StanleyMasinde 2020-10-23 10:37:24
You mean between microservices and modular monoliths?

Yes this is exactly what i mean

Unknownuser009 2020-10-23 11:08:06
Divyesh22598 2020-10-17 09:05:18
Any one want whatsapp bulk messaging software for 5 years ar INR 199,
If yes call me on +919898219987

I m intrested

StanleyMasinde 2020-10-23 11:40:00
git_au 2020-10-23 10:58:15
Yes this is exactly what i mean

Microservices and modularisation is there to help you have a maintainable codebase.

If you are worried about scaling up eg to handle more requests without downtimes , there are two options

1. Horizontal scaling- Addition of more computers. This is ideal if your users are from different regions
2. Vertical scaling- Addition of hardware specs.

Both microservices and monoliths can fit in these two.

I’ve tried to be as brief as possible but I hope this helps

mystic_riverr 2020-10-23 13:19:38
2020-10-22 20:04:17
There might b some zindex or overflow issue (related to css property)

yes it was. thank you 😊

Zulfikar_ditya 2020-10-23 13:27:38
that anyone have laravel8 tutor. I really appreciate.
Iam user django before. And i interesting with laravel.
o_sayfullayev 2020-10-23 13:28:31
Zulfikar_ditya 2020-10-23 13:27:38
that anyone have laravel8 tutor. I really appreciate.
Iam user django before. And i interesting with laravel.

https://laravel.com/docs/8.x/readme

o_sayfullayev 2020-10-23 13:28:57
laravel’s own site best for beginning
Zulfikar_ditya 2020-10-23 13:29:31
I dont really like read the doc. I like watch a tutor
o_sayfullayev 2020-10-23 13:30:03
youtube => freecodecamp.org channel
o_sayfullayev 2020-10-23 13:31:19
You are welcome
o_sayfullayev 2020-10-23 13:31:34
https://www.youtube.com/watch?v=ImtZ5yENzgE&ab_channel=freeCodeCamp.org

Laravel PHP Framework Tutorial – Full Course for Beginners (2019)YouTube
Learn Laravel 5.8 by creating an Instagram clone in this full tutorial course for beginners. Laravel is a free, open-source PHP web framework used for creating web applications.

💻Code: https://github.com/coderstape/freecodegram

⭐️Course Contents ⭐️
⌨️ (0:00) Introduction
⌨️ (1:14) What is Laravel?
⌨️ (2:07) Installing Laravel
⌨️ (5:30) First look at the project
⌨️ (7:15) Intro to php artisan
⌨️ (11:42) Generating login flow with make:auth
⌨️ (12:04) Setting Up the Front End with Node and NPM
⌨️ (20:00) Migrations and Setting Up SQLite
⌨️ (26:00) Designing the UI from Instagram
⌨️ (42:12) Adding Username to the Registration Flow
⌨️ (58:35) Creating the Profiles Controller
⌨️ (1:04:00) RESTful Resource Controller
⌨️ (1:09:10) Passing Data to the View
⌨️ (1:10:20) Adding the Profiles Mode, Migration and Table
⌨️ (1:17:30) Adding Eloquent Relationships
⌨️ (1:28:10) Fetching the Record From The Database
⌨️ (1:30:00) Adding Posts to the Database & Many To Many Relationship
⌨️ (2:04:24) Creating Through a Relationship
⌨️ (2:08:12) Uploading/Saving the Image to the Project
⌨️ (2:19:19) Resizing Images with Intervention Image PHP Library
⌨️ (2:27:42) Route Model Binding
⌨️ (2:31:48) Editing the Profile
⌨️ (2:46:46) Restricting/Authorizing Actions with a Model Policy
⌨️ (2:54:50) Editing the Profile Image
⌨️ (3:00:00) Automatically Creating A Profile Using Model Events
⌨️ (3:12:56) Default Profile Image
⌨️ (3:19:48) Follow/Unfollow Profiles Using a Vue.js Component
⌨️ (3:31:28) Many To Many Relationship
⌨️ (3:46:33) Calculating Followers Count and Following Count
⌨️ (3:48:55) Laravel Telescope
⌨️ (3:51:44) Showing Posts from Profiles The User Is Following
⌨️ (4:01:03) Pagination with Eloquent
⌨️ (4:03:25) N + 1 Problem & Solution
⌨️ (4:05:21) Make Use of Cache for Expensive Query
⌨️ (4:11:44) Sending Emails to New Registered Users
⌨️ (4:21:51) Wrapping Up
⌨️ (4:22:37) Closing Remarks & What’s Next In your Learning

🎥Course from Coder’s Tape. Check out their YouTube channel for more great Laravel tutorials: https://www.youtube.com/coderstape

Learn to code for free and get a developer job: https://www.freecodecamp.org

Read hundreds of articles on programming: https://medium.freecodecamp.org

|