Post Thumbnail

Latest review not comes when submit using review form

hi using submit review form latest review not comes .  review is child component i pass reviews data through props.. when submit form then latest review not comes on form submit.  thanks 

0 Comments
Post Thumbnail

Session using api

my project is an expense tracker, its backend in working using laravel and front using bootstrap(no framework used)using axios api calls communication is happeningissue:i need to display username in index.html (at k.anderson) using session i tried my level best.could you pls help me to solve this issue

1 Comment
Answered
Post Thumbnail

Api for laravel or any other web

 i want to ask that if we want to make APIs or REST APIs , we will have to make seperate API for each web or one API is sufficient for each Website

1 Comment
Solved
Post Thumbnail

Laravel 10 full calender ajax call is giving server error

1. My Event creation is showing me request array, i need to refresh the page for checking the  event generated, showing the server error as well.2. Event drop is not working showing the server error.3. when i want to edit the event using eventclick , it is creating a new event instead of editing the current event and also showing the server error.attaching the screenshot of controller code.

0 Comments
Answered
Post Thumbnail

Installation process in laravel application

Hello @⁨Hadayat Naizi My Mentor⁩ and other top Developers can guys make a video for us on installation process in laravel project where clients have to verify their Envato purchase code and enter their database credentials to import database automatically then also set up admin login details

0 Comments
Solved
Post Thumbnail

Reading select dropdown with component class

category component class code:<?phpnamespace App\View\Components;use Closure;use App\Models\Category;use Illuminate\View\Component;use Illuminate\Contracts\View\View;class Categories extends Component{    /**     * Create a new component instance.     */    public $categories;    public $selected;    public $depth;    public function __construct($categories, $selected=null, $depth=null,)    {        $this->categories = $categories;        $this->depth = $depth;        $this->selected = $selected;    }    public function buildSelectOptions($categories, $selected='', $depth = 0,) {        // Generate HTML for current category        $options = "";        foreach ($categories as $category) {            $options .= "<option selected( old('name', $selected) == '".$category['id']."')             value='".$category['id']."'>".str_repeat('- ', $depth).$category['name']."</option>";            if ($category->children) {                $options .= self::buildSelectOptions($category->children,$selected, $depth + 1);            }        }        return $options;    }    /**     * Get the view / contents that represent the component.     */    public function render(): View|Closure|string    {        return view('components.categories');    }}Category Blade file:{!! $buildSelectOptions($categories)  !!} Edit Blade File:<div class="row mb-3">                <div class="col">                    <label for="parent_id">Parent Category</label> <span class="star-color">*</span>                    <select class="form-control" id="parent_id" name="parent_id" required>                        <option value="">Select a Parent Category</option>                        <option value="0" selected><b>Root</b></option>                        <x-categories :categories="$categories" :selected="$category->id"  />                    </select>                </div>              </div>Controller Class:public function edit(string $id)    {        $category = Category::find($id);        $categories = Category::where('parent_id', '=', 0)->get();        $categoryOptions = Category::buildCategoryOptions($categories);                if(!$category){           abort(404);        }        return view('auth.categories.edit', ['category'=>$category, 'categories'=>$categories, 'categoryOptions'=>$categoryOptions]);    }

0 Comments
Answered
Post Thumbnail

Integrate calander in project laravel 9

there is a library full-calander in laravel but that is not supported laravel 9,so please provide me the solution to integrate calander on a link in my project.

2 Comments
Answered
Post Thumbnail

Wordpress error

pehle mera virtual host sahi chal raha tha har tarha se . ab ye achanak wp-admin per jab access karta hun to ye error aata he . wp admin per https show hota he isko me kis tarha http kar sakta hun

0 Comments
Answered