You mean share all the file?

|
jumzeey 2020-05-09 14:37:21
jumzeey 2020-05-09 14:24:59
My app doesn’t seem to locate the livewire.js file, on inspecting network it keeps bringing up 404 not found for the Livewire.js file

Still awaiting response🤝

2020-05-09 14:46:57
sizeof(): Parameter must be an array or an object that implements Countable laravel 6. php 7.4
2020-05-09 14:47:07
Any idea?
skys215 2020-05-09 14:50:03
2020-05-09 14:46:57
sizeof(): Parameter must be an array or an object that implements Countable laravel 6. php 7.4

I think it’s obvious?

2020-05-09 14:50:58
laravel_discuss-36619.jpg
👆here
skys215 2020-05-09 14:54:48
see what type of variable you are passing, it doesn’t match the requirement
2020-05-09 14:58:40
skys215 2020-05-09 14:54:48
see what type of variable you are passing, it doesn’t match the requirement

With the previous versions of php (5) it works but when I upgraded, it doesn’t support count or sizeof when variables are passed like that

skys215 2020-05-09 14:59:45
2020-05-09 14:58:40
With the previous versions of php (5) it works but when I upgraded, it doesn’t support count or sizeof when variables are passed like that

you should see the documentation to see what’s the different between two version about this function

2020-05-09 15:00:12
skys215 2020-05-09 14:59:45
you should see the documentation to see what’s the different between two version about this function

any link to the documentation?

skys215 2020-05-09 15:01:57
2020-05-09 15:00:12
any link to the documentation?

php.net/sizeof

2020-05-09 15:06:34
skys215 2020-05-09 15:01:57
php.net/sizeof

if(isset($users) && count($users) ) would work…

skys215 2020-05-09 15:17:25
2020-05-09 15:06:34
if(isset($users) && count($users) ) would work…

so it seems that you are passing null to function sizeof

2020-05-09 15:18:18
skys215 2020-05-09 15:17:25
so it seems that you are passing null to function sizeof

True, But I have got the core to solve the problem now

Sujay 2020-05-09 16:28:24
flyingdragons 2020-05-09 06:34:23
Depends on the requirement.

Let me give you an example – if your building an WebApp let’s it as *Invoices* and think that in future your gonna develop IOS & Android App for the same, or you want few of your clients to consume your Application then you need to have some of doing so

REST APIs comes to your rescue.

If you just you JSON it’s more than sufficient. No need to SOAP as it’s very complex and adds lots of complexity on developer as well as consumer side

Thanks.👍

cayetanohosma 2020-05-09 17:00:41
Hi guys!
After I ran the migrations successfully, I try to persist an entity and I get the following error:
‘‘‘
IlluminateDatabaseQueryException could not find driver
‘‘‘

What does mean? Couldn’t migrations use the same driver?

Eze Godfrey Chibueze 2020-05-09 18:03:04
Please guys I need laravel textbook off please
Jooo 2020-05-09 18:27:02
In ProviderRepository.php line 208:

Class ‘UnisharpCkeditorServiceProvider’ not found

2020-05-09 18:46:11
Jooo 2020-05-09 18:27:02
In ProviderRepository.php line 208:

Class ‘UnisharpCkeditorServiceProvider’ not found

Could you please share your code and someone can help you out

2020-05-09 18:46:25
Possibly corret you
Jooo 2020-05-09 18:48:24
2020-05-09 18:46:11
Could you please share your code and someone can help you out

You mean share all the file?

2020-05-09 18:51:10
Not really i mean the files where you configured the ckeditor
2020-05-09 18:51:55
Coz i have had the same issue to day but i have finally worked it out
Jooo 2020-05-09 18:52:57
2020-05-09 18:51:55
Coz i have had the same issue to day but i have finally worked it out

<?php

namespace AppHttpControllers;

use IlluminateHttpRequest;

class CKEditorController extends Controller
{
/**
* Display a listing of the resource.
*
* @return IlluminateHttpResponse
*/
public function index()
{
//
return view(‘editor’);
}

/**
* Show the form for creating a new resource.
*
* @return IlluminateHttpResponse
*/
public function create()
{
//
}

/**
* Store a newly created resource in storage.
*
* @param IlluminateHttpRequest $request
* @return IlluminateHttpResponse
*/
public function store(Request $request)
{
//
}

/**
* Display the specified resource.
*
* @param int $id
* @return IlluminateHttpResponse
*/
public function show($id)
{
//
}

/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return IlluminateHttpResponse
*/
public function edit($id)
{
//
}

/**
* Update the specified resource in storage.
*
* @param IlluminateHttpRequest $request
* @param int $id
* @return IlluminateHttpResponse
*/
public function update(Request $request, $id)
{
//
}

/**
* Remove the specified resource from storage.
*
* @param int $id
* @return IlluminateHttpResponse
*/
public function destroy($id)
{
//
}

public function upload(Request $request)
{
if($request->hasFile(‘upload’)) {
//get filename with extension
$filenamewithextension = $request->file(‘upload’)->getClientOriginalName();

//get filename without extension
$filename = pathinfo($filenamewithextension, PATHINFO_FILENAME);

//get file extension
$extension = $request->file(‘upload’)->getClientOriginalExtension();

//filename to store
$filenametostore = $filename.’_’.time().’.’.$extension;

//Upload File
$request->file(‘upload’)->storeAs(‘public/uploads’, $filenametostore);

$CKEditorFuncNum = $request->input(‘CKEditorFuncNum’);
$url = asset(‘storage/uploads/’.$filenametostore);
$msg = ‘Image successfully uploaded’;
$re = “<script>window.parent.CKEDITOR.tools.callFunction($CKEditorFuncNum, ‘$url’, ‘$msg’)</script>”;

// Render HTML output
@header(‘Content-type: text/html; charset=utf-8’);
echo $re;
}

}
}

Jooo 2020-05-09 18:55:47
<script src=”{{ asset(‘ckeditor/ckeditor.js’) }}”></script>
<!–<script>
CKEDITOR.replace( ‘summary-ckeditor’ );
</script>–>

<script>
CKEDITOR.replace( ‘summary-ckeditor’, {
filebrowserUploadUrl: “{{route(‘upload’, [‘_token’ => csrf_token() ])}}”,
filebrowserUploadMethod: ‘form’
});
</script>

Jooo 2020-05-09 18:57:33
public function upload(Request $request)
{
if($request->hasFile(‘upload’)) {
//get filename with extension
$filenamewithextension = $request->file(‘upload’)->getClientOriginalName();

//get filename without extension
$filename = pathinfo($filenamewithextension, PATHINFO_FILENAME);

//get file extension
$extension = $request->file(‘upload’)->getClientOriginalExtension();

//filename to store
$filenametostore = $filename.’_’.time().’.’.$extension;

//Upload File
$request->file(‘upload’)->storeAs(‘public/uploads’, $filenametostore);

$CKEditorFuncNum = $request->input(‘CKEditorFuncNum’);
$url = asset(‘storage/uploads/’.$filenametostore);
$msg = ‘Image successfully uploaded’;
$re = “<script>window.parent.CKEDITOR.tools.callFunction($CKEditorFuncNum, ‘$url’, ‘$msg’)</script>”;

// Render HTML output
@header(‘Content-type: text/html; charset=utf-8’);
echo $re;
}

}
}

Jooo 2020-05-09 19:10:14
app.php UnisharpCkeditorServiceProvider::class,
Jooo 2020-05-09 19:12:17
i remove this line from app.php UnisharpCkeditorServiceProvider::class,
Jooo 2020-05-09 19:12:23
working fine
Patricklab 2020-05-09 21:41:32
Looking out for 2 full stack laravel PHP developers to help speed up an active development of a project
hiteshv253 2020-05-09 21:42:21
Patricklab 2020-05-09 21:41:32
Looking out for 2 full stack laravel PHP developers to help speed up an active development of a project

you can pin me .

Siberfx 2020-05-09 21:53:34
Patricklab 2020-05-09 21:41:32
Looking out for 2 full stack laravel PHP developers to help speed up an active development of a project

What are the stacks? 🙂

Patricklab 2020-05-09 21:54:11
Siberfx 2020-05-09 21:53:34
What are the stacks? 🙂

Vue laravel nodejs

Siberfx 2020-05-09 21:55:07
Country?
Patricklab 2020-05-09 21:56:38
Siberfx 2020-05-09 21:55:07
Country?

India mostly looking out for people from and within India its much more easier to send and move money around locally

Siberfx 2020-05-09 21:57:40
i think in India, its not that hard to find developers
Siberfx 2020-05-09 21:58:17
For me, it my own opinion do not be offended;
Siberfx 2020-05-09 21:58:53
i dont like to work with indian developers, mostly mess code, no solid principles
Patricklab 2020-05-09 22:02:02
Siberfx 2020-05-09 21:58:53
i dont like to work with indian developers, mostly mess code, no solid principles

Well true that but not all of them lock down got me locked up in a foren country and it’s quite hard pushing or making money worse still in a country u barely know of

hiteshv253 2020-05-09 22:02:03
Siberfx 2020-05-09 21:58:53
i dont like to work with indian developers, mostly mess code, no solid principles

where are you from sir ?

Siberfx 2020-05-09 22:03:14
i do not blame all guys, take it easy
Siberfx 2020-05-09 22:03:47
i am from Turkiye, but also not living there
hiteshv253 2020-05-09 22:04:02
it’s okai sir .😊 np.
Siberfx 2020-05-09 22:04:06
Just had experience with indian devs
Siberfx 2020-05-09 22:04:24
The ones i faced was horrible in coding
Siberfx 2020-05-09 22:04:44
Thats my reason only
Siberfx 2020-05-09 22:04:53
There are good ones either
Siberfx 2020-05-09 22:05:06
Just i didnt meet them yet
2020-05-09 22:05:33
Siberfx 2020-05-09 22:04:24
The ones i faced was horrible in coding

Speaking of horrible…

2020-05-09 22:06:10
I gat some bug here i wish someone helps me to crack it.
Patricklab 2020-05-09 22:06:12
Siberfx 2020-05-09 22:04:24
The ones i faced was horrible in coding

Yes one has to be very selective many of them otherwise u may end up building lots of bugs instead of getting work done

|