Category : laravel

I am Trying to set fb messenger bot in Laravel 8 But it show show the error of The URL couldn’t be validated. in the Facebook Developer page. What I am trying is <?php namespace AppHttpControllers; use IlluminateHttpRequest; use pimaxFbBotApp; use pixmaxMessagesMessage; class MessagerController extends Controller { public function index(Request $request) { if ($request->hub_verify_token === ..

Read more

I keep getting this error when I try to make an API call on my laravel App. v8 $uploadedImage = $request->image->store(‘watermark’); $photo = fopen($uploadedImage, ‘r’); $response = Http::withHeaders([ ‘content-type’ => ‘multipart/form-data’, ])->withOptions([ ‘debug’ => true, ])->attach( ‘image’, $photo, $uploadedImage )->post(‘http://dummyapiwebsite.com/’); dd($response) Sourc..

Read more

I need suggestions how to make this work. I want to customize Laravel 8 Jetstream authentication. My project works like this. Once a new user is added, a random password is to be generated. When that user first logs in with that system generated password, it will ask the user to change the password. Flow ..

Read more

i have problem when joining my tables the error says Undefined variable: spps $siswas = DB::table(‘siswa’) ->join(‘kelas’, ‘siswa.id_kelas’, ‘=’, ‘kelas.id_kelas’) ->join(‘spp’, ‘spp.id_spp’, ‘=’, ‘siswa.id_spp’ ) ->get(); $kelass = DB::table(‘kelas’)->get(); return view(‘admin.data_siswa’,compact(‘siswas’,’kelass’)); $spps = DB::table(‘spp’, ‘kelas’)->get(); return view(‘admin.data_siswa’,compact(‘siswas’,’spps’)); } i dont know how to defining the spp table, any one please suggest me idea Source: Ask ..

Read more

I’m working with Laravel 8 to develop my project which is an Online Forum. And here is my route to / uri: Route::get(‘/’, function () { $threads = AppModelsThread::paginate(15); return view(‘welcome’, compact(‘threads’)); }); And at welcome blade: @section(‘content’) @include(‘thread.partials.thread-list’) @endsection And at thread-list, I added this: @forelse($threads as $thread) Posted by <a href="{{route(‘user_profile’,$thread->user->name)}}">{{$thread->user->name}}</a> {{$thread->created_at->diffForHumans()}} @endforelse ..

Read more

i am using pusher sdk with out laravel-echo in laravel websockets i am able to subscribe channel but listening events functionality is not working below is my code which i am using for front end <script>var module = { };</script> <script src="https://js.pusher.com/4.3/pusher.min.js"></script> <script> var pusher = new Pusher("123123", { wsHost: window.location.hostname, wsPort: 6001, disableStats: true, ..

Read more