<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>function Archives - Artificial Intelligence</title>
	<atom:link href="https://www.aiuniverse.xyz/tag/function/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.aiuniverse.xyz/tag/function/</link>
	<description>Exploring the universe of Intelligence</description>
	<lastBuildDate>Tue, 02 May 2023 06:28:57 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>PHP Array Functions and their usage</title>
		<link>https://www.aiuniverse.xyz/what-is-array-functions-in-php/</link>
					<comments>https://www.aiuniverse.xyz/what-is-array-functions-in-php/#respond</comments>
		
		<dc:creator><![CDATA[Maruti Kr.]]></dc:creator>
		<pubDate>Tue, 02 May 2023 05:44:49 +0000</pubDate>
				<category><![CDATA[PHP Tutorials]]></category>
		<category><![CDATA[Example of php function]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP array functions]]></category>
		<category><![CDATA[What do you mean by php function]]></category>
		<category><![CDATA[What is Array Functions in PHP]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=16639</guid>

					<description><![CDATA[<p>Array functions in PHP are built-in functions that are designed to help you work with arrays in PHP. Arrays are a fundamental data structure in PHP that <a class="read-more-link" href="https://www.aiuniverse.xyz/what-is-array-functions-in-php/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/what-is-array-functions-in-php/">PHP Array Functions and their usage</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="356" src="https://www.aiuniverse.xyz/wp-content/uploads/2023/05/Capture-1024x356.png" alt="" class="wp-image-16643" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2023/05/Capture-1024x356.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2023/05/Capture-300x104.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2023/05/Capture-768x267.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2023/05/Capture.png 1148w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Array functions in PHP are built-in functions that are designed to help you work with arrays in PHP. Arrays are a fundamental data structure in PHP that allow you to store and manipulate collections of values.</p>



<p>PHP array functions provide a wide range of tools to work with arrays, including creating arrays, adding and removing elements, sorting and filtering arrays, searching for values in arrays, and merging arrays together. These functions are designed to make it easy to work with arrays in PHP, and can be used to perform complex operations on arrays with just a few lines of code.</p>



<p>PHP has a variety of built-in functions for working with arrays. Some of the most commonly used PHP array functions are:</p>



<ol class="wp-block-list">
<li><strong>count():</strong> This function is used to Counts the number of elements in an array.</li>



<li><strong>in_array():</strong> This function is used to  checks if a value exists in an array.</li>



<li><strong>array_push():</strong> This function is used to  Adds one or more elements to the end of an array.</li>



<li><strong>array_pop(): </strong>This function is used to  Removes and returns the last element of an array.</li>



<li><strong>array_shift():</strong> This function is used to Removes and returns the first element of an array.</li>



<li><strong>array_unshift(): </strong>This function is used to  Adds one or more elements to the beginning of an array.</li>



<li><strong>array_slice(): </strong>This function is used to  Extracts a portion of an array.</li>



<li><strong>array_merge(): </strong>This function is used to  Merges two or more arrays into a single array.</li>



<li><strong>array_reverse():</strong> This function is used to Reverses the order of elements in an array.</li>



<li><strong>array_search():</strong> Searches an array for a given value and returns the corresponding key.</li>



<li><strong>array_unique():</strong> This function is used to  Removes duplicate values from an array.</li>



<li><strong>sort():</strong> This function is used to Sorts an array in ascending order.</li>



<li><strong>rsort():</strong> This function is used to Sorts an array in descending order.</li>



<li><strong>shuffle(): </strong>This function is used to Shuffles the elements of an array randomly.</li>



<li><strong>array_key_exists():</strong> Checks if a given key exists in an array.</li>
</ol>
<p>The post <a href="https://www.aiuniverse.xyz/what-is-array-functions-in-php/">PHP Array Functions and their usage</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/what-is-array-functions-in-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to other table data to store another table data</title>
		<link>https://www.aiuniverse.xyz/how-to-other-table-data-to-store-another-table-data/</link>
					<comments>https://www.aiuniverse.xyz/how-to-other-table-data-to-store-another-table-data/#respond</comments>
		
		<dc:creator><![CDATA[dharmendra]]></dc:creator>
		<pubDate>Thu, 26 Aug 2021 13:01:10 +0000</pubDate>
				<category><![CDATA[laravel]]></category>
		<category><![CDATA[controller]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[table]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=15512</guid>

					<description><![CDATA[<p>This is packages table This is addimages table First let’s go to your Controller file and our function</p>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-other-table-data-to-store-another-table-data/">How to other table data to store another table data</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">This is packages table </h2>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="264" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/2-1024x264.jpg" alt="" class="wp-image-15513" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/2-1024x264.jpg 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/2-300x77.jpg 300w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/2-768x198.jpg 768w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/2.jpg 1361w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading"> This is addimages table  </h2>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="228" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/1-1024x228.jpg" alt="" class="wp-image-15515" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/1-1024x228.jpg 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/1-300x67.jpg 300w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/1-768x171.jpg 768w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/1.jpg 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading"> First let’s go to  your Controller file and our function</h2>



<script src="https://gist.github.com/dharmu9898/d1f31e2bf20434a8a499ce0cfde2aec4.js"></script>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="707" height="543" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/datapages.jpg" alt="" class="wp-image-15516" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/datapages.jpg 707w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/datapages-300x230.jpg 300w" sizes="auto, (max-width: 707px) 100vw, 707px" /></figure>



<h2 class="wp-block-heading">    </h2>



<p> </p>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-other-table-data-to-store-another-table-data/">How to other table data to store another table data</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/how-to-other-table-data-to-store-another-table-data/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to create auto increment id existing table and store in other table in Laravel</title>
		<link>https://www.aiuniverse.xyz/how-to-create-auto-increment-id-existing-table-and-store-in-other-table-in-laravel/</link>
					<comments>https://www.aiuniverse.xyz/how-to-create-auto-increment-id-existing-table-and-store-in-other-table-in-laravel/#respond</comments>
		
		<dc:creator><![CDATA[dharmendra]]></dc:creator>
		<pubDate>Wed, 18 Aug 2021 13:06:49 +0000</pubDate>
				<category><![CDATA[laravel]]></category>
		<category><![CDATA[controller]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[playstore]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=15406</guid>

					<description><![CDATA[<p>First let’s go to your Laravel project And add your Controller function and Store function $Trip->tour_id = $tour_id;</p>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-create-auto-increment-id-existing-table-and-store-in-other-table-in-laravel/">How to create auto increment id existing table and store in other table in Laravel</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="515" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/auto-creatment-1-1024x515.jpg" alt="" class="wp-image-15409" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/auto-creatment-1-1024x515.jpg 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/auto-creatment-1-300x151.jpg 300w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/auto-creatment-1-768x387.jpg 768w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/auto-creatment-1.jpg 1355w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading"><strong>First let’s go to your Laravel project</strong> And add your Controller function and Store function</h3>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="623" height="220" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/conto.jpg" alt="" class="wp-image-15410" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/conto.jpg 623w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/conto-300x106.jpg 300w" sizes="auto, (max-width: 623px) 100vw, 623px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="375" height="71" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/store-function-.jpg" alt="" class="wp-image-15411" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/store-function-.jpg 375w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/store-function--300x57.jpg 300w" sizes="auto, (max-width: 375px) 100vw, 375px" /></figure>



<script src="https://gist.github.com/dharmu9898/5b30cd8c93aa5bbeac7cf5a45c6f0ebc.js"></script>



 $Trip->tour_id = $tour_id;
<p>The post <a href="https://www.aiuniverse.xyz/how-to-create-auto-increment-id-existing-table-and-store-in-other-table-in-laravel/">How to create auto increment id existing table and store in other table in Laravel</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/how-to-create-auto-increment-id-existing-table-and-store-in-other-table-in-laravel/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to change publish button to unpublish button using java script</title>
		<link>https://www.aiuniverse.xyz/how-to-change-publish-button-to-unpublish-button-using-java-script/</link>
					<comments>https://www.aiuniverse.xyz/how-to-change-publish-button-to-unpublish-button-using-java-script/#respond</comments>
		
		<dc:creator><![CDATA[dharmendra]]></dc:creator>
		<pubDate>Wed, 04 Aug 2021 12:51:15 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[blade]]></category>
		<category><![CDATA[fetchData]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[Laravel]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[publish]]></category>
		<category><![CDATA[unpublish]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=15251</guid>

					<description><![CDATA[<p>This is my database First let’s go to your laravel project and your blade file &#38; this function fetchData is past Your blade file &#38; this function fetchData is <a class="read-more-link" href="https://www.aiuniverse.xyz/how-to-change-publish-button-to-unpublish-button-using-java-script/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-change-publish-button-to-unpublish-button-using-java-script/">How to change publish button to unpublish button using java script</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="458" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/publidhed-and-unpublish-1024x458.jpg" alt="" class="wp-image-15252" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/publidhed-and-unpublish-1024x458.jpg 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/publidhed-and-unpublish-300x134.jpg 300w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/publidhed-and-unpublish-768x343.jpg 768w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/publidhed-and-unpublish.jpg 1311w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading">This is my database</h3>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="447" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/database-stucture-1024x447.jpg" alt="" class="wp-image-15254" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/database-stucture-1024x447.jpg 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/database-stucture-300x131.jpg 300w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/database-stucture-768x335.jpg 768w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/database-stucture.jpg 1359w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading"><strong>First let’s go to your laravel project</strong> <strong>and your blade file</strong> &amp;  this function fetchData is past</h3>



<script src="https://gist.github.com/dharmu9898/a0a8b6872112afc9e2b326b1024df568.js"></script>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="761" height="493" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/publish-1.jpg" alt="" class="wp-image-15255" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/publish-1.jpg 761w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/publish-1-300x194.jpg 300w" sizes="auto, (max-width: 761px) 100vw, 761px" /></figure>



<h3 class="wp-block-heading"><strong>Your blade file</strong> &amp; this function fetchData is past second</h3>



<script src="https://gist.github.com/dharmu9898/0d0c1a0d1ddb58c063b44dae80b610a6.js"></script>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="632" height="423" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/publish2.jpg" alt="" class="wp-image-15256" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/publish2.jpg 632w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/publish2-300x201.jpg 300w" sizes="auto, (max-width: 632px) 100vw, 632px" /></figure>



<h3 class="wp-block-heading"><strong>Your blade file</strong> &amp; this function fetchData is past third</h3>



<script src="https://gist.github.com/dharmu9898/250bc3c70af478dcf0bc3eae0b7355de.js"></script>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="745" height="461" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/publish3.jpg" alt="" class="wp-image-15257" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/publish3.jpg 745w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/publish3-300x186.jpg 300w" sizes="auto, (max-width: 745px) 100vw, 745px" /></figure>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-change-publish-button-to-unpublish-button-using-java-script/">How to change publish button to unpublish button using java script</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/how-to-change-publish-button-to-unpublish-button-using-java-script/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to input box the first letter to search all pages in Laravel PHP Framework</title>
		<link>https://www.aiuniverse.xyz/how-to-input-box-the-first-letter-to-search-all-pages-in-laravel-php-framework/</link>
					<comments>https://www.aiuniverse.xyz/how-to-input-box-the-first-letter-to-search-all-pages-in-laravel-php-framework/#respond</comments>
		
		<dc:creator><![CDATA[dharmendra]]></dc:creator>
		<pubDate>Thu, 22 Jul 2021 13:11:03 +0000</pubDate>
				<category><![CDATA[laravel]]></category>
		<category><![CDATA[controller]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[input box]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[route]]></category>
		<category><![CDATA[search bar]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=15118</guid>

					<description><![CDATA[<p>Step 1: This is the Search Code This is Input the latter Search box View Step 2: Got to Route, Web.php Step 3: Go to the Controller <a class="read-more-link" href="https://www.aiuniverse.xyz/how-to-input-box-the-first-letter-to-search-all-pages-in-laravel-php-framework/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-input-box-the-first-letter-to-search-all-pages-in-laravel-php-framework/">How to input box the first letter to search all pages in Laravel PHP Framework</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">Step 1: This is the Search Code</h3>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="968" height="410" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/07/code-discrib.jpg" alt="" class="wp-image-15122" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/07/code-discrib.jpg 968w, https://www.aiuniverse.xyz/wp-content/uploads/2021/07/code-discrib-300x127.jpg 300w, https://www.aiuniverse.xyz/wp-content/uploads/2021/07/code-discrib-768x325.jpg 768w" sizes="auto, (max-width: 968px) 100vw, 968px" /></figure>



<script src="https://gist.github.com/dharmu9898/14278f033f427a15503fc109d9503699.js"></script>



<p></p>



<h4 class="wp-block-heading">This is  Input the latter Search box View</h4>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="339" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/07/input-the-latter--1024x339.jpg" alt="" class="wp-image-15119" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/07/input-the-latter--1024x339.jpg 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2021/07/input-the-latter--300x99.jpg 300w, https://www.aiuniverse.xyz/wp-content/uploads/2021/07/input-the-latter--768x254.jpg 768w, https://www.aiuniverse.xyz/wp-content/uploads/2021/07/input-the-latter-.jpg 1358w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading">Step 2: Got to Route,  Web.php</h3>



<script src="https://gist.github.com/dharmu9898/bb14e7d0d9fa620b2b59a3954a57263d.js"></script>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="585" height="83" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/07/Capture.jpg" alt="" class="wp-image-15125" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/07/Capture.jpg 585w, https://www.aiuniverse.xyz/wp-content/uploads/2021/07/Capture-300x43.jpg 300w" sizes="auto, (max-width: 585px) 100vw, 585px" /></figure>



<h3 class="wp-block-heading">Step 3: Go to the Controller Function</h3>



<script src="https://gist.github.com/dharmu9898/7ab2ad9e8cb9c872a2ae012927b556b5.js"></script>



<p><strong>Enter the input Box and click the search Trip</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="332" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/07/Capture-1-1024x332.jpg" alt="" class="wp-image-15130" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/07/Capture-1-1024x332.jpg 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2021/07/Capture-1-300x97.jpg 300w, https://www.aiuniverse.xyz/wp-content/uploads/2021/07/Capture-1-768x249.jpg 768w, https://www.aiuniverse.xyz/wp-content/uploads/2021/07/Capture-1.jpg 1359w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Then Click india and view the page </p>



<h2 class="wp-block-heading"></h2>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="450" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/07/sdjjhush-1024x450.jpg" alt="" class="wp-image-15133" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/07/sdjjhush-1024x450.jpg 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2021/07/sdjjhush-300x132.jpg 300w, https://www.aiuniverse.xyz/wp-content/uploads/2021/07/sdjjhush-768x338.jpg 768w, https://www.aiuniverse.xyz/wp-content/uploads/2021/07/sdjjhush.jpg 1353w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-input-box-the-first-letter-to-search-all-pages-in-laravel-php-framework/">How to input box the first letter to search all pages in Laravel PHP Framework</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/how-to-input-box-the-first-letter-to-search-all-pages-in-laravel-php-framework/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Why I&#8217;m getting &#8216;Non-static method should not be called statically&#8217; when invoking a method in a Eloquent model?</title>
		<link>https://www.aiuniverse.xyz/why-im-getting-non-static-method-should-not-be-called-statically-when-invoking-a-method-in-a-eloquent-model/</link>
					<comments>https://www.aiuniverse.xyz/why-im-getting-non-static-method-should-not-be-called-statically-when-invoking-a-method-in-a-eloquent-model/#respond</comments>
		
		<dc:creator><![CDATA[dharmendra]]></dc:creator>
		<pubDate>Tue, 20 Jul 2021 12:53:19 +0000</pubDate>
				<category><![CDATA[laravel]]></category>
		<category><![CDATA[blade]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[method]]></category>
		<category><![CDATA[modal]]></category>
		<category><![CDATA[static]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=15095</guid>

					<description><![CDATA[<p>I don&#8217;t know why I am getting this error: This is my blade file method: This is my model: Can you help me? I am trying to <a class="read-more-link" href="https://www.aiuniverse.xyz/why-im-getting-non-static-method-should-not-be-called-statically-when-invoking-a-method-in-a-eloquent-model/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/why-im-getting-non-static-method-should-not-be-called-statically-when-invoking-a-method-in-a-eloquent-model/">Why I&#8217;m getting &#8216;Non-static method should not be called statically&#8217; when invoking a method in a Eloquent model?</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="455" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/07/today-1024x455.jpg" alt="" class="wp-image-15096" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/07/today-1024x455.jpg 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2021/07/today-300x133.jpg 300w, https://www.aiuniverse.xyz/wp-content/uploads/2021/07/today-768x341.jpg 768w, https://www.aiuniverse.xyz/wp-content/uploads/2021/07/today.jpg 1365w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p><strong>I don&#8217;t know why I am getting this error:</strong></p>



<pre class="wp-block-code"><code>Non-static method App\Userevent::returnopretor() should not be called statically</code></pre>



<h3 class="wp-block-heading">This is my blade file method:</h3>



<script src="https://gist.github.com/dharmu9898/31a0b7aa65c1fc59bf17b975790893a4.js"></script>



<h3 class="wp-block-heading">This is my model:</h3>



<script src="https://gist.github.com/dharmu9898/cdad5adb7bafaa515adb41d8b8c4948f.js"></script>



<p>Can you help me? I am trying to do dynamic dependency dropdown menu in view with this. Want to get user names and id from Userevent model for dropdown in view and than connect returnopretor with users and save data to product table with user id.</p>



<p><strong>Relationships is to be called on models, so you have to fetch them from a user model. Change your controller logic to just fetch Userevent, not anything with returnopretor.</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="551" height="348" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/07/modal.jpg" alt="" class="wp-image-15097" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/07/modal.jpg 551w, https://www.aiuniverse.xyz/wp-content/uploads/2021/07/modal-300x189.jpg 300w" sizes="auto, (max-width: 551px) 100vw, 551px" /></figure>



<script src="https://gist.github.com/dharmu9898/1bc8664e4ff5b99e6b3e866506a89f94.js"></script>



<p>So in your blade file where you create your drop down, loop the users and then you can loop the <strong>returnopretor</strong>.</p>



<p>solved this error.</p>
<p>The post <a href="https://www.aiuniverse.xyz/why-im-getting-non-static-method-should-not-be-called-statically-when-invoking-a-method-in-a-eloquent-model/">Why I&#8217;m getting &#8216;Non-static method should not be called statically&#8217; when invoking a method in a Eloquent model?</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/why-im-getting-non-static-method-should-not-be-called-statically-when-invoking-a-method-in-a-eloquent-model/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
