How do i resolved that?

|
PHP Begginer 2019-08-01 20:05:53
I am trying to save an image but I get the following error fopen(): Filename cannot be empty
PHP Begginer 2019-08-01 20:06:16
public function createBrand(array $params)
{
try {
$collection = collect($params);

$logo = null;

if ($collection->has(‘logo’) && ($params[‘logo’] instanceof UploadedFile)) {
$logo = $this->uploadOne($params[‘logo’], ‘brands’);
}

$merge = $collection->merge(compact(‘logo’));

$brand = new Brand($merge->all());

$brand->save();

return $brand;

} catch (QueryException $exception) {
throw new InvalidArgumentException($exception->getMessage());
}
}

PHP Begginer 2019-08-01 23:35:48
ErrorException (E_WARNING)
fopen(): Filename cannot be empty
PHP Begginer 2019-08-01 23:36:06
how do i resolved that?
l_alexis 2019-08-02 02:01:58
PHP Begginer 2019-08-01 23:36:06
how do i resolved that?

dump($params[‘logo’]);

kashinkojie 2019-08-02 05:37:43
laravel_discuss-10369.jpg

kashinkojie 2019-08-02 05:38:37
hi. help me. i got this error when trying to get data from ubidots api
2019-08-02 06:21:48
Some interesting books.
skys215 2019-08-02 08:50:11
kashinkojie 2019-08-02 05:38:37
hi. help me. i got this error when trying to get data from ubidots api

Try composer dump-autoload

EdcbaoO 2019-08-02 10:49:44
laravel_discuss-10384.jpg

EdcbaoO 2019-08-02 10:49:44
laravel_discuss-10383.jpg

EdcbaoO 2019-08-02 10:49:44
laravel_discuss-10382.jpg

EdcbaoO 2019-08-02 10:49:44
laravel_discuss-10381.jpg

EdcbaoO 2019-08-02 10:49:44
laravel_discuss-10380.jpg

EdcbaoO 2019-08-02 10:49:57
Good day everyone..
Why I am getting route is not defended while I have the route defined when trying to store a form that has a pic
acrossoffwest 2019-08-02 11:05:33
EdcbaoO 2019-08-02 10:49:57
Good day everyone..
Why I am getting route is not defended while I have the route defined when trying to store a form that has a pic

laravel_discuss-10386.jpg

acrossoffwest 2019-08-02 11:05:57
Add: ->name(‘photo.index’)
hmsoft_ir 2019-08-02 11:10:27
Hi guys,
Today at Laracon, Taylor announced Laravel 6 will be coming out in August and it will be version 6.0. With this release the framework will include new branding and a new website…
More info: https://laravel-news.com/laravel-v6-announcement

Laravel v6 Announcement!Laravel News
Today at Laracon, Taylor announced Laravel 6 will be coming out in August and it will be version 6.0
MatPk 2019-08-02 11:20:16
i want to send some data json like this to mysql db
what i should to learn? rest ful?
EdcbaoO 2019-08-02 11:40:23
acrossoffwest 2019-08-02 11:05:57
Add: ->name(‘photo.index’)

Thank you so much .. It worked

shubhamdhyani 2019-08-02 12:19:41
hmsoft_ir 2019-08-02 11:10:27
Hi guys,
Today at Laracon, Taylor announced Laravel 6 will be coming out in August and it will be version 6.0. With this release the framework will include new branding and a new website…
More info: https://laravel-news.com/laravel-v6-announcement

yea would be great…laravel vapour seems exciting

EdcbaoO 2019-08-02 14:06:12
Is not this how to do the edit link I am not using resource route..
It’s not working
senhorY 2019-08-02 14:08:18
Check the href
EdcbaoO 2019-08-02 14:08:22
laravel_discuss-10398.jpg

senhorY 2019-08-02 14:08:51
No need to interpolate
EdcbaoO 2019-08-02 14:12:44
If it leads me to 404 does this mean the link is working?
Because it’s not going to the edit function
shubhamdhyani 2019-08-02 14:22:51
EdcbaoO 2019-08-02 14:12:44
If it leads me to 404 does this mean the link is working?
Because it’s not going to the edit function

It means the route is not present…check what api route is being called

GauravGohil 2019-08-02 15:05:20
@font-face {
font-family: ‘Roboto’;
font-style: italic;
font-weight: 300;
src: local(‘Roboto Light Italic’), local(‘Roboto-LightItalic’), url(https://fonts.gstatic.com/s/roboto/v19/KFOjCnqEu92Fr1Mu51TjASc6CsQ.woff2) format(‘woff2’)
}

@font-face {
font-family: ‘Roboto’;
font-style: italic;
font-weight: 400;
src: local(‘Roboto Italic’), local(‘Roboto-Italic’), url(https://fonts.gstatic.com/s/roboto/v19/KFOkCnqEu92Fr1Mu51xIIzI.woff2) format(‘woff2’)
}

@font-face {
font-family: ‘Roboto’;
font-style: italic;
font-weight: 500;
src: local(‘Roboto Medium Italic’), local(‘Roboto-MediumItalic’), url(https://fonts.gstatic.com/s/roboto/v19/KFOjCnqEu92Fr1Mu51S7ACc6CsQ.woff2) format(‘woff2’)
}

@font-face {
font-family: ‘Roboto’;
font-style: italic;
font-weight: 700;
src: local(‘Roboto Bold Italic’), local(‘Roboto-BoldItalic’), url(https://fonts.gstatic.com/s/roboto/v19/KFOjCnqEu92Fr1Mu51TzBic6CsQ.woff2) format(‘woff2’)
}

@font-face {
font-family: ‘Roboto’;
font-style: italic;
font-weight: 900;
src: local(‘Roboto #000 Italic’), local(‘Roboto-BlackItalic’), url(https://fonts.gstatic.com/s/roboto/v19/KFOjCnqEu92Fr1Mu51TLBCc6CsQ.woff2) format(‘woff2’)
}

@font-face {
font-family: ‘Roboto’;
font-style: normal;
font-weight: 100;
src: local(‘Roboto Thin’), local(‘Roboto-Thin’), url(https://fonts.gstatic.com/s/roboto/v19/KFOkCnqEu92Fr1MmgVxIIzI.woff2) format(‘woff2’)
}

@font-face {
font-family: ‘Roboto’;
font-style: normal;
font-weight: 300;
src: local(‘Roboto Light’), local(‘Roboto-Light’), url(https://fonts.gstatic.com/s/roboto/v19/KFOlCnqEu92Fr1MmSU5fBBc4.woff2) format(‘woff2’)
}

@font-face {
font-family: ‘Roboto’;
font-style: normal;
font-weight: 400;
src: local(‘Roboto’), local(‘Roboto-Regular’), url(https://fonts.gstatic.com/s/roboto/v19/KFOmCnqEu92Fr1Mu4mxK.woff2) format(‘woff2’)
}

@font-face {
font-family: ‘Roboto’;
font-style: normal;
font-weight: 500;
src: local(‘Roboto Medium’), local(‘Roboto-Medium’), url(https://fonts.gstatic.com/s/roboto/v19/KFOlCnqEu92Fr1MmEU9fBBc4.woff2) format(‘woff2’)
}

@font-face {
font-family: ‘Roboto’;
font-style: normal;
font-weight: 700;
src: local(‘Roboto Bold’), local(‘Roboto-Bold’), url(https://fonts.gstatic.com/s/roboto/v19/KFOlCnqEu92Fr1MmWUlfBBc4.woff2) format(‘woff2’)
}

@font-face {
font-family: ‘Roboto’;
font-style: normal;
font-weight: 900;
src: local(‘Roboto Black’), local(‘Roboto-Black’), url(https://fonts.gstatic.com/s/roboto/v19/KFOlCnqEu92Fr1MmYUtfBBc4.woff2) format(‘woff2’)
}

GauravGohil 2019-08-02 15:05:49
I want to find via jquery how many unique font weights are available
skys215 2019-08-02 16:02:33
Is not a laravel problem
skys215 2019-08-02 16:03:25
EdcbaoO 2019-08-02 14:08:22

Use route(‘PhotoEdit’, $id);

GauravGohil 2019-08-02 16:11:00
skys215 2019-08-02 16:02:33
Is not a laravel problem

Then what

skys215 2019-08-02 16:16:25
jQuery problem
GauravGohil 2019-08-02 16:16:45
Yee
GauravGohil 2019-08-02 16:17:00
Do u have any groups where I can ask
skys215 2019-08-02 16:28:45
Nope, sorry
binumathew 2019-08-02 16:36:01
A web app have 16 page form

User need to fill all the forms and at the end need to save the data

Which is the best way to save the data on time of navigate between forms

SESSIONS?

EdcbaoO 2019-08-02 16:44:17
skys215 2019-08-02 16:03:25
Use route(‘PhotoEdit’, $id);

Having the same error

EdcbaoO 2019-08-02 16:44:21
404
acrossoffwest 2019-08-02 16:51:03
EdcbaoO 2019-08-02 16:44:17
Having the same error

try
route(‘PhotoEdit’, [‘photo’ => $value->id]);

EdcbaoO 2019-08-02 16:52:15
Oh thanks now for some reason it worked 😁
Thanks alot
o_sayfullayev 2019-08-03 12:31:56
Hello everebody, how I can take Images from folder using php
o_sayfullayev 2019-08-03 12:32:22
$dir = “mytheme/images/myimages”;
$dh = opendir($dir);
while (false !== ($filename = readdir($dh))) {
$files[] = $filename;
}
$images=preg_grep (‘/.jpg$/i’, $files);
o_sayfullayev 2019-08-03 12:32:22
Now I’m using yhis code
o_sayfullayev 2019-08-03 12:32:41
but it’s not properly working
skys215 2019-08-03 13:13:19
You need check step by step to specify the problem
emtized 2019-08-03 14:10:53
oppps
Kvn_makwana 2019-08-03 14:12:40
o_sayfullayev 2019-08-03 12:31:56
Hello everebody, how I can take Images from folder using php

Use laravel storage facadr

Kvn_makwana 2019-08-03 14:13:35
https://laravel.com/docs/5.8/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.
o_sayfullayev 2019-08-03 14:57:18
Kvn_makwana 2019-08-03 14:13:35
https://laravel.com/docs/5.8/filesystem

thank you brother

|