<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Mehedi Hasan Sagor</title>
    <description>The latest articles on Forem by Mehedi Hasan Sagor (@mhsagor110090).</description>
    <link>https://forem.com/mhsagor110090</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F537691%2F87c0fa42-9164-4188-9efb-d497e6d9de2d.jpeg</url>
      <title>Forem: Mehedi Hasan Sagor</title>
      <link>https://forem.com/mhsagor110090</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/mhsagor110090"/>
    <language>en</language>
    <item>
      <title>Introducing a Flexible and Framework-Agnostic Laravel Livewire Modal Package</title>
      <dc:creator>Mehedi Hasan Sagor</dc:creator>
      <pubDate>Sun, 18 Aug 2024 17:43:43 +0000</pubDate>
      <link>https://forem.com/mhsagor110090/introducing-a-flexible-and-framework-agnostic-laravel-livewire-modal-package-39m2</link>
      <guid>https://forem.com/mhsagor110090/introducing-a-flexible-and-framework-agnostic-laravel-livewire-modal-package-39m2</guid>
      <description>&lt;h1&gt;
  
  
  Introducing a Flexible Laravel Livewire Modal Package
&lt;/h1&gt;

&lt;p&gt;Laravel and Livewire have revolutionized the way we build dynamic applications with minimal JavaScript. But when it comes to handling modals, most solutions tend to lock us into specific design frameworks like Bootstrap or Tailwind CSS. What if you need the flexibility to choose your design system? That’s where my newly released Laravel Livewire Modal package comes in!&lt;/p&gt;

&lt;h2&gt;
  
  
  🚀 What Is This Package?
&lt;/h2&gt;

&lt;p&gt;The Laravel Livewire Modal package is a framework-agnostic solution for handling modals in your Livewire projects. It’s designed to work seamlessly with &lt;strong&gt;Bootstrap, Tailwind CSS, or any custom styles&lt;/strong&gt;. Whether you’re working on a brand new project or integrating into an existing one, this package adapts to your needs.&lt;/p&gt;

&lt;h2&gt;
  
  
  ✨ Key Features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Framework-Agnostic&lt;/strong&gt;: Use with Bootstrap, Tailwind CSS, or your own custom styles.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Easy Integration&lt;/strong&gt;: Simple Livewire events to open and close modals.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dynamic Data Handling&lt;/strong&gt;: Pass data effortlessly to your modal components.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Customizable and Lightweight&lt;/strong&gt;: No enforced styles, allowing you to maintain full control over your design.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  🛠️ Installation &amp;amp; Setup
&lt;/h2&gt;

&lt;p&gt;You can get started by installing the package via Composer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;composer require sagor110090/livewire-modal
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Next, add the following line to your &lt;code&gt;app.blade.php&lt;/code&gt; layout file to enable modals throughout your application:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;livewire:modals/&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Also, don’t forget to include the required JS and CSS in your &lt;code&gt;resources/js/app.js&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;../../vendor/sagor110090/livewire-modal/resources/js/loader.js&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;../../vendor/sagor110090/livewire-modal/resources/css/loader.css&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  📦 Usage Example
&lt;/h2&gt;

&lt;p&gt;Here’s how easy it is to open and close modals using this package:&lt;/p&gt;

&lt;h3&gt;
  
  
  Opening a Modal
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;wire:click=&lt;/span&gt;&lt;span class="s"&gt;"$dispatch('openModal', { component: 'edit-user', data: { id: {{ $user-&amp;gt;id }} } })"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    Open Modal
&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Closing a Modal
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"button"&lt;/span&gt; &lt;span class="na"&gt;wire:click=&lt;/span&gt;&lt;span class="s"&gt;"$dispatch('closeModal')"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    Cancel
&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Creating a Livewire Component
&lt;/h3&gt;

&lt;p&gt;To get you started, here’s a sample Livewire component for editing a user:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;?php&lt;/span&gt;

&lt;span class="kn"&gt;namespace&lt;/span&gt; &lt;span class="nn"&gt;App\Livewire&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;App\Models\User&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;Livewire\Component&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;EditUser&lt;/span&gt; &lt;span class="kd"&gt;extends&lt;/span&gt; &lt;span class="nc"&gt;Component&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="nv"&gt;$user&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;mount&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nv"&gt;$this&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;User&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;find&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$id&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;render&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;view&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'livewire.edit-user'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Customizing Your Modal Design
&lt;/h3&gt;

&lt;p&gt;This package is completely design-agnostic, meaning you can use any framework to style your modals. For example, if you’re using Tailwind CSS:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div class="fixed inset-0 flex items-center justify-center bg-gray-900 bg-opacity-50"&amp;gt;
    &amp;lt;div class="bg-white rounded-lg shadow-lg p-6"&amp;gt;
        &amp;lt;!-- Your Modal Content --&amp;gt;
    &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Feel free to replace the styling with Bootstrap, custom CSS, or whatever design system you prefer.&lt;/p&gt;

&lt;h2&gt;
  
  
  💡 Why Use This Package?
&lt;/h2&gt;

&lt;p&gt;Most modal solutions are tied to specific design frameworks, limiting your flexibility. This package gives you full control over how you style your modals while providing seamless integration with Livewire’s powerful components. &lt;/p&gt;

&lt;p&gt;Whether you’re building a large application or a simple project, this package is designed to be lightweight, flexible, and easy to use.&lt;/p&gt;

&lt;h2&gt;
  
  
  🚀 Get Started Today!
&lt;/h2&gt;

&lt;p&gt;If you’re ready to simplify modal management in your Laravel Livewire projects, give this package a try! You can install it via Composer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;composer require sagor110090/livewire-modal
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And be sure to check out the &lt;a href="https://github.com/sagor110090/livewire-modal" rel="noopener noreferrer"&gt;GitHub repository&lt;/a&gt; for more details and support.&lt;/p&gt;




&lt;p&gt;Thanks for reading! I hope this package helps you build more flexible and dynamic Laravel applications. If you have any questions or feedback, feel free to reach out in the comments.&lt;/p&gt;

&lt;p&gt;Happy coding! 🎉&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>livewire</category>
      <category>php</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Livewire CRUD Generator: Powering Efficient Laravel Development</title>
      <dc:creator>Mehedi Hasan Sagor</dc:creator>
      <pubDate>Sun, 03 Mar 2024 15:53:03 +0000</pubDate>
      <link>https://forem.com/mhsagor110090/livewire-crud-generator-powering-efficient-laravel-development-37ac</link>
      <guid>https://forem.com/mhsagor110090/livewire-crud-generator-powering-efficient-laravel-development-37ac</guid>
      <description>&lt;p&gt;Livewire CRUD Generator: Powering Efficient Laravel Development&lt;br&gt;
Introduction&lt;br&gt;
Livewire CRUD Generator is a Laravel package designed to simplify and streamline the development of CRUD functionality in Laravel applications. Whether you're a seasoned Laravel developer or just starting, this package provides a fast, efficient, and user-friendly way to manage Create, Read, Update, and Delete operations.&lt;/p&gt;

&lt;p&gt;Benefits of Livewire CRUD Generator&lt;br&gt;
Streamlined Development: Quickly scaffold CRUD interfaces for your Laravel Eloquent models. Say goodbye to repetitive coding and hello to productivity.&lt;/p&gt;

&lt;p&gt;User-Friendly Interface: An intuitive interface allows you to customize your generated components with ease. No need for complex configurations or extensive documentation.&lt;/p&gt;

&lt;p&gt;Time-Saving: Save valuable time during the development phase. With Livewire CRUD Generator, you can focus on building the core features of your application.&lt;/p&gt;

&lt;p&gt;Efficiency: Manage your data efficiently with CRUD operations. The package automates the process, reducing manual efforts and minimizing errors.&lt;/p&gt;

&lt;p&gt;Versatility: The generated components are versatile and can be easily modified to suit your specific project requirements.&lt;/p&gt;

&lt;p&gt;Compatibility: Livewire CRUD Generator is compatible with Laravel versions ^10.0 and tested on version ^8. It uses auth middleware and installs Breeze just in case you don't have any other auth mechanism.&lt;/p&gt;

&lt;p&gt;How to Use Livewire CRUD Generator&lt;br&gt;
Installation is straightforward. Simply run the following Composer command:&lt;/p&gt;

&lt;p&gt;composer require sagor110090/livewire-crud --dev&lt;br&gt;
After the installation, initiate the package with:&lt;/p&gt;

&lt;p&gt;php artisan crud:install&lt;br&gt;
This command sets up your project for generating CRUD components. To generate CRUD for a specific table, run:&lt;/p&gt;

&lt;p&gt;php artisan crud:generate {table-name} &lt;br&gt;
This command generates the necessary files for CRUD operations, including a Livewire component, model, views, and factory.&lt;/p&gt;

&lt;p&gt;Comprehensive Documentation&lt;br&gt;
Livewire CRUD Generator provides comprehensive documentation on how to use the package effectively. You can find more detailed documentation on the official Livewire CRUD website.&lt;/p&gt;

&lt;p&gt;Conclusion&lt;br&gt;
Livewire CRUD Generator is a powerful tool for Laravel developers, offering a seamless way to build and manage CRUD interfaces. With its user-friendly interface, time-saving features, and versatility, it's a must-have for any Laravel project. Improve your development workflow and enhance your productivity with Livewire CRUD Generator.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://freecoderteam.com/post/livewire-crud-generator-powering-efficient-laravel-development"&gt;https://freecoderteam.com/post/livewire-crud-generator-powering-efficient-laravel-development&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>livewire</category>
      <category>php</category>
      <category>webdev</category>
    </item>
    <item>
      <title>dsd</title>
      <dc:creator>Mehedi Hasan Sagor</dc:creator>
      <pubDate>Mon, 13 Nov 2023 22:46:12 +0000</pubDate>
      <link>https://forem.com/freecoderteam/how-can-make-a-social-link-qrcode-on-qrcodesolutioncom-39oo</link>
      <guid>https://forem.com/freecoderteam/how-can-make-a-social-link-qrcode-on-qrcodesolutioncom-39oo</guid>
      <description></description>
    </item>
    <item>
      <title>Laravel easy admin panel bangla tutorial</title>
      <dc:creator>Mehedi Hasan Sagor</dc:creator>
      <pubDate>Wed, 02 Aug 2023 05:09:11 +0000</pubDate>
      <link>https://forem.com/mhsagor110090/laravel-easy-admin-panel-bangla-tutorial-if2</link>
      <guid>https://forem.com/mhsagor110090/laravel-easy-admin-panel-bangla-tutorial-if2</guid>
      <description>&lt;p&gt;লারাভেল এজি এডমিন প্যানেল হলো একটি গুরুত্বপূর্ণ টুল, যা লারাভেল এপ্লিকেশন ব্যবহারকারীদের সহজেই সাধারণ প্রশাসনিক কাজ করতে সাহায্য করে। এই প্যানেলের মাধ্যমে আপনি ব্যবহারকারী, অনুমতি, ক্যাটাগরি, পোস্ট, প্রোফাইল ইত্যাদি সহ আপনার লারাভেল এপ্লিকেশনের বিভিন্ন দক্ষতা পরিচালনা করতে পারেন। এটি ব্যবহারকারীদের অনুমতি ভিত্তিক ব্যবস্থা সার্ভার প্যানেল তৈরি করতে সহায়ক, যাতে প্রশাসনিক ব্যবস্থা করা সহজ হয় এবং দক্ষতা নির্ধারণ করা সহজ হয়।&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;a href="https://youtu.be/T73Ik-GU3Nc"&gt;Video&lt;/a&gt;
&lt;/h2&gt;

&lt;p&gt;এই টিউটোরিয়ালে আমরা লারাভেল এজি এডমিন প্যানেল সেটআপ করবো এবং কিছু গুরুত্বপূর্ণ বৈশিষ্ট্য সহ কিভাবে প্রশাসনিক কাজ করতে হয় তা দেখাবো।&lt;/p&gt;

&lt;p&gt;Package Link:-&lt;br&gt;
jetstream : &lt;a href="https://jetstream.laravel.com/3.x/installation.html"&gt;https://jetstream.laravel.com/3.x/installation.html&lt;/a&gt;&lt;br&gt;
easypanel:  &lt;a href="https://easypanel.netlify.app/"&gt;https://easypanel.netlify.app/&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Laravel quiz management system with source code</title>
      <dc:creator>Mehedi Hasan Sagor</dc:creator>
      <pubDate>Thu, 20 Jul 2023 06:41:22 +0000</pubDate>
      <link>https://forem.com/mhsagor110090/laravel-quiz-management-system-with-source-code-4lo9</link>
      <guid>https://forem.com/mhsagor110090/laravel-quiz-management-system-with-source-code-4lo9</guid>
      <description>&lt;h2&gt;
  
  
  Quiz management system
&lt;/h2&gt;

&lt;p&gt;Welcome to the Laravel Quiz management system ! This repository contains the source code for a Quiz management system web application. here three types of account students, teachers and admin.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Demo&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://youtu.be/nvUSTqsDpUw"&gt;https://youtu.be/nvUSTqsDpUw&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prerequisites&lt;/strong&gt;&lt;br&gt;
Before running the project, ensure that you have the following prerequisites installed on your machine:&lt;/p&gt;

&lt;p&gt;PHP (version 7.4 or higher)&lt;br&gt;
Composer (&lt;a href="https://getcomposer.org"&gt;https://getcomposer.org&lt;/a&gt;)&lt;br&gt;
Getting Started&lt;br&gt;
To get started with the project, follow these steps:&lt;/p&gt;

&lt;p&gt;Clone the repository to your local machine:&lt;/p&gt;

&lt;p&gt;git clone &lt;a href="https://github.com/sagor110090/quiz-management-system.git"&gt;https://github.com/sagor110090/quiz-management-system.git&lt;/a&gt;&lt;br&gt;
Navigate to the project directory:&lt;/p&gt;

&lt;p&gt;cd quiz-management-system&lt;br&gt;
Install the PHP dependencies using Composer:&lt;/p&gt;

&lt;p&gt;composer install&lt;br&gt;
Copy the .env.example file and rename it to .env:&lt;/p&gt;

&lt;p&gt;cp .env.example .env&lt;br&gt;
Generate an application key:&lt;/p&gt;

&lt;p&gt;php artisan key:generate&lt;br&gt;
Configure the database settings in the .env file.&lt;/p&gt;

&lt;p&gt;Run the database migrations:&lt;/p&gt;

&lt;p&gt;php artisan migrate --seed&lt;br&gt;
Start the development server:&lt;/p&gt;

&lt;p&gt;php artisan serve&lt;br&gt;
Open your browser and visit &lt;a href="http://localhost:8000"&gt;http://localhost:8000&lt;/a&gt; to see the application.&lt;/p&gt;

&lt;p&gt;Contributing&lt;br&gt;
If you would like to contribute to the project, please follow these guidelines:&lt;/p&gt;

&lt;p&gt;Fork the repository and create a new branch.&lt;br&gt;
Make your changes and commit them to your branch.&lt;br&gt;
Push your branch to your forked repository.&lt;br&gt;
Create a pull request to the main repository.&lt;br&gt;
License&lt;br&gt;
This project is licensed under the MIT License.&lt;/p&gt;

&lt;p&gt;Feel free to copy and paste this markdown code into your README.md file.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/sagor110090/quiz-management-system.git"&gt;read more&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>php</category>
      <category>quiz</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>How can make an array from the values of another array's key?</title>
      <dc:creator>Mehedi Hasan Sagor</dc:creator>
      <pubDate>Mon, 18 Jul 2022 09:18:33 +0000</pubDate>
      <link>https://forem.com/freecoderteam/how-can-make-an-array-from-the-values-of-another-arrays-key-5d6k</link>
      <guid>https://forem.com/freecoderteam/how-can-make-an-array-from-the-values-of-another-arrays-key-5d6k</guid>
      <description>&lt;p&gt;Today what you are going to learn:&lt;br&gt;
If you are working on PHP or other PHP framework and you want to create array of another array value. now you can see on following lesson how can you make array form another multidimensional array key's.&lt;/p&gt;

&lt;p&gt;For lesson you have array like:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; $multi = array(

  ['1'] =&amp;gt; array('id'=&amp;gt;1,'name'=&amp;gt;'hardik'),

  ['2'] =&amp;gt; array('id'=&amp;gt;1,'name'=&amp;gt;'vimal'),

  ['3'] =&amp;gt; array('id'=&amp;gt;1,'name'=&amp;gt;'harshad'),

)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;but if you want to this multi-dimensional array just like this way:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$test = array('hardik','vimal','harshad');
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;so, we can make this type of array from multi-dimensional array using array_column() funtion.&lt;/p&gt;

&lt;p&gt;you can use this function easy as under.&lt;/p&gt;

&lt;p&gt;$result = array_column($multi, 'name');&lt;/p&gt;

&lt;p&gt;Try this..........&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;a href="https://www.freecoder.co/post/how-can-make-an-array-from-the-values-of-another-arrays-key-5429"&gt;Read More&lt;/a&gt;
&lt;/h2&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>tutorial</category>
      <category>php</category>
    </item>
    <item>
      <title>PHP merge two arrays on the same key AND value</title>
      <dc:creator>Mehedi Hasan Sagor</dc:creator>
      <pubDate>Mon, 18 Jul 2022 09:17:08 +0000</pubDate>
      <link>https://forem.com/mhsagor110090/php-merge-two-arrays-on-the-same-key-and-value-24j9</link>
      <guid>https://forem.com/mhsagor110090/php-merge-two-arrays-on-the-same-key-and-value-24j9</guid>
      <description>&lt;p&gt;Today what you are going to learn:&lt;br&gt;
Do you need to merge two array however you need without overwrite cost then right here you could see how to merge array in following lesson. So now we've two array and we need to merge it with overwrite with any key then we fetch many problem.we can do like this two array :&lt;/p&gt;

&lt;p&gt;My Array:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$array1 = [  

    '0'=&amp;gt; ['name'=&amp;gt;'Sagor','Surname'=&amp;gt;'Savani'],  

    '1'=&amp;gt; ['name'=&amp;gt;'Harsukh','Surname'=&amp;gt;'Makawana'],  

   ];  

$array2 = [  

    '0'=&amp;gt; ['name1'=&amp;gt;'Harshad','Surname1'=&amp;gt;'Pathak'],  

    '1'=&amp;gt; ['name1'=&amp;gt;'Vimal','Surname1'=&amp;gt;'Kashiyani'],  

   ];  
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;AND You want to merge like that :&lt;/p&gt;

&lt;p&gt;Result:-&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Array  

(  

    [0] =&amp;gt; Array  

        (  

            [name] =&amp;gt; Sagor  

            [Surname] =&amp;gt; Savani  

            [name1] =&amp;gt; Harshad  

            [Surname1] =&amp;gt; Pathak  

        )  

    [1] =&amp;gt; Array  

        (  

            [name] =&amp;gt; Harsukh  

            [Surname] =&amp;gt; Makawana  

            [name1] =&amp;gt; Vimal  

            [Surname1] =&amp;gt; Kashiyani  

        )  

)  
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Then you want to make this array without any loop, then you can use array_map() and array_merge(). this both function help to make this output as you want like this way to use.&lt;/p&gt;

&lt;p&gt;==&amp;gt;&amp;gt;&lt;/p&gt;

&lt;p&gt;$result = array_map(function($array1,$array2){  &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;return array_merge(isset($array1) ? $array1 : array(), isset($array2) ? $array2 : array());

},$array1,$array2);  
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;print_r($result);&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;a href="https://www.freecoder.co/"&gt;Read More&lt;/a&gt;
&lt;/h2&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>php</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Form Validation Example by PHP 8 MySQL</title>
      <dc:creator>Mehedi Hasan Sagor</dc:creator>
      <pubDate>Mon, 18 Jul 2022 09:15:49 +0000</pubDate>
      <link>https://forem.com/mhsagor110090/form-validation-example-by-php-8-mysql-54ih</link>
      <guid>https://forem.com/mhsagor110090/form-validation-example-by-php-8-mysql-54ih</guid>
      <description>&lt;p&gt;Today what you are going to learn:&lt;br&gt;
Hello Dev,&lt;/p&gt;

&lt;p&gt;Hello Brother, I will let you know lesson of PHP 8 MySQL Form Validation Example. you will learn PHP 8 Server Side Form Validation Tutorial Example. step by step explain how to create form validation in php 8. We will look at lesson of PHP 8 MySQL form input validation lesson. follow bellow step for how to show validation error in PHP 8 MySQL.&lt;/p&gt;

&lt;p&gt;This article will give you simple lesson of PHP 8 Basic Form Validation Tutorial&lt;/p&gt;

&lt;p&gt;So, let's see bellow solution:&lt;/p&gt;

&lt;p&gt;index.php&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;a href="https://www.freecoder.co/post/form-validation-example-by-php-8-mysql"&gt;Read more&lt;/a&gt;
&lt;/h2&gt;

</description>
      <category>webdev</category>
      <category>php</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Node JS Mysql Connection Example</title>
      <dc:creator>Mehedi Hasan Sagor</dc:creator>
      <pubDate>Mon, 18 Jul 2022 09:14:39 +0000</pubDate>
      <link>https://forem.com/mhsagor110090/node-js-mysql-connection-example-2na3</link>
      <guid>https://forem.com/mhsagor110090/node-js-mysql-connection-example-2na3</guid>
      <description>&lt;p&gt;Today what you are going to learn:&lt;br&gt;
Hello Brother,&lt;/p&gt;

&lt;p&gt;This is a short guide on node js mysql connection lesson. you will learn how to connect mysql database in node js. we will help you to give lesson of how to use mysql in node js. step by step explain mysql connection in node js.&lt;/p&gt;

&lt;p&gt;In this lesson i will give you simple lesson of how to connect mysql database using node js. i am not going to explain you in more details, but give you simple lesson so let's see lesson.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.freecoder.co/post/node-js-mysql-connection-example-9994"&gt;read more&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>node</category>
      <category>javascript</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>How to Get Difference Between Two Dates in PHP?</title>
      <dc:creator>Mehedi Hasan Sagor</dc:creator>
      <pubDate>Tue, 28 Jun 2022 06:29:28 +0000</pubDate>
      <link>https://forem.com/freecoderteam/how-to-get-difference-between-two-dates-in-php-2njp</link>
      <guid>https://forem.com/freecoderteam/how-to-get-difference-between-two-dates-in-php-2njp</guid>
      <description>&lt;p&gt;Do you want to calculate difference between two dates in php? I mean difference between two dates in days, months, years using php. if yes than i will show you to php get difference between two dates using strtotime(), abs() and floor().&lt;/p&gt;

&lt;p&gt;We may sometime require to get difference between in php for your application, even if you use any php framework like laravel, codeigniter, wordpress but you can use code php code anywhere. So you can see following lessons.&lt;/p&gt;

&lt;p&gt;Bellow lessons will help you to calculate difference between two dates in php lesson.&lt;/p&gt;

&lt;p&gt;I will give you one by one simple lesson of following definition.&lt;/p&gt;

&lt;p&gt;1) PHP Calculate difference between two dates in days&lt;/p&gt;

&lt;p&gt;2) PHP Calculate difference between two dates in months&lt;/p&gt;

&lt;p&gt;3) PHP Calculate difference between two dates in years&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;a href="https://freecoder.co/post/how-to-get-difference-between-two-dates-in-php-6895"&gt;learn more&lt;/a&gt;
&lt;/h2&gt;

</description>
      <category>webdev</category>
      <category>tutorial</category>
      <category>php</category>
      <category>programming</category>
    </item>
    <item>
      <title>Laravel 9 Contact US Form with Send Email Example</title>
      <dc:creator>Mehedi Hasan Sagor</dc:creator>
      <pubDate>Mon, 27 Jun 2022 17:20:27 +0000</pubDate>
      <link>https://forem.com/mhsagor110090/laravel-9-contact-us-form-with-send-email-example-6nn</link>
      <guid>https://forem.com/mhsagor110090/laravel-9-contact-us-form-with-send-email-example-6nn</guid>
      <description>&lt;p&gt;Today what you are going to learn:&lt;br&gt;
ello all! In this article, we will talk about laravel 9 contact form send email. let’s discuss about contact us form in laravel 9. step by step explain contact form validation in laravel 9. This article goes in detailed on laravel 9 feedback form lesson.&lt;/p&gt;

&lt;p&gt;In this lesson we will create a contact us form with name, email, phone, subject, and message. we will also add form validation for the contact form. After submitting the form we will store data in the database and send an email notification to the admin email. so let's follow the below step to make this lesson.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;a href="https://freecoder.co/post/laravel-9-contact-us-form-with-send-email-example-9921"&gt;read more&lt;/a&gt;
&lt;/h2&gt;

</description>
      <category>webdev</category>
      <category>laravel</category>
      <category>tutorial</category>
      <category>php</category>
    </item>
    <item>
      <title>Laravel Carbon Get All Months Between Two Dates Example</title>
      <dc:creator>Mehedi Hasan Sagor</dc:creator>
      <pubDate>Mon, 27 Jun 2022 08:31:56 +0000</pubDate>
      <link>https://forem.com/mhsagor110090/laravel-carbon-get-all-months-between-two-dates-example-4k70</link>
      <guid>https://forem.com/mhsagor110090/laravel-carbon-get-all-months-between-two-dates-example-4k70</guid>
      <description>&lt;p&gt;Today what you are going to learn:&lt;br&gt;
Hi Brother,&lt;/p&gt;

&lt;p&gt;This tutorial will provide lesson of laravel carbon get all months between two dates. step by step explain laravel carbon get all months. This post will give you simple lesson of carbon get all months between dates. We will use get all months between two dates laravel carbon. Hello Brother, Creating a basic lesson of get months between two dates laravel.&lt;/p&gt;

&lt;p&gt;you can easily get all months between two dates using carbon in laravel 6, laravel 7 and laravel 8 version.&lt;/p&gt;

&lt;p&gt;let's see simple lesson bellow:&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;a href="https://freecoder.co/post/laravel-carbon-get-all-months-between-two-dates-example-1153"&gt;read more&lt;/a&gt;
&lt;/h2&gt;

</description>
      <category>webdev</category>
      <category>laravel</category>
      <category>php</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
