<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>TrishulAPI Q&amp;A - Recent questions</title>
<link>https://trishulapi.com/forum/questions</link>
<description>Powered by Question2Answer</description>
<item>
<title>How to create own MIddleware?</title>
<link>https://trishulapi.com/forum/12/how-to-create-own-middleware</link>
<description>&lt;p&gt;Hello Developers, all of us know the value of middlewares in any framework.&lt;/p&gt;&lt;p&gt;Some people call it interceptors, in spring boot it is called filterchain. In frameworks like laravel, TrishulAPI it is called middleware.&lt;/p&gt;&lt;h3&gt;&lt;strong&gt;Work of Middleware: &lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;To intercept the incoming request and outgoing response.&lt;/p&gt;&lt;h3&gt;&lt;strong&gt;Use Case:&lt;/strong&gt;&lt;/h3&gt;&lt;div&gt;&lt;strong&gt;AuthMiddleware&lt;/strong&gt;: To authenticate the request before it reaches to any controller.&lt;/div&gt;&lt;div&gt;&lt;strong&gt;LogMiddleware:&lt;/strong&gt; To log the incoming request and outgoing response.&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;How to create middleware in TrishulApi?&lt;/div&gt;&lt;div&gt;&lt;/div&gt;</description>
<category>Middlewares</category>
<guid isPermaLink="true">https://trishulapi.com/forum/12/how-to-create-own-middleware</guid>
<pubDate>Thu, 26 Jun 2025 02:55:48 +0000</pubDate>
</item>
<item>
<title>How to get the query params of url in Trishul API?</title>
<link>https://trishulapi.com/forum/10/how-to-get-the-query-params-of-url-in-trishul-api</link>
<description>Hi developers, sometimes you have to apply filters based on the query params. &lt;br /&gt;
&lt;br /&gt;
For example if url has user_id then you want to filter the user data by user_id and if url has username in query params then you will filter the data by username &lt;br /&gt;
&lt;br /&gt;
Url example: &lt;a href=&quot;https://example.com/users?user_id=54&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://example.com/users?user_id=54&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://example.com/users?username=shyam&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://example.com/users?username=shyam&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
In this situation, your API endpoint needs query params. How will you get these query params?</description>
<category>Request</category>
<guid isPermaLink="true">https://trishulapi.com/forum/10/how-to-get-the-query-params-of-url-in-trishul-api</guid>
<pubDate>Tue, 24 Jun 2025 08:15:49 +0000</pubDate>
</item>
<item>
<title>How to get the path variables in Trishul API?</title>
<link>https://trishulapi.com/forum/7/how-to-get-the-path-variables-in-trishul-api</link>
<description>Hi developers, as all of us know that whenever we work on any restful backend. We have to deal with the path variables for example&lt;br /&gt;
&lt;br /&gt;
/user/{username}&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
How to get this path variable in Trishul API?</description>
<category>Request</category>
<guid isPermaLink="true">https://trishulapi.com/forum/7/how-to-get-the-path-variables-in-trishul-api</guid>
<pubDate>Tue, 24 Jun 2025 03:13:23 +0000</pubDate>
</item>
<item>
<title>What properties should I add in .env file?</title>
<link>https://trishulapi.com/forum/4/what-properties-should-i-add-in-env-file</link>
<description>As a developer, I am using TrishulApi for building my application. I want to connect the application with database. I have heard that putting some properties in .env file will automatically connect the application with database. &lt;br /&gt;
&lt;br /&gt;
What are those properties?</description>
<category>App</category>
<guid isPermaLink="true">https://trishulapi.com/forum/4/what-properties-should-i-add-in-env-file</guid>
<pubDate>Fri, 06 Jun 2025 10:20:49 +0000</pubDate>
</item>
<item>
<title>What is Trishul API Framework?</title>
<link>https://trishulapi.com/forum/2/what-is-trishul-api-framework</link>
<description></description>
<category>QnA</category>
<guid isPermaLink="true">https://trishulapi.com/forum/2/what-is-trishul-api-framework</guid>
<pubDate>Thu, 05 Jun 2025 06:50:43 +0000</pubDate>
</item>
<item>
<title>Welcome Note for Developers</title>
<link>https://trishulapi.com/forum/1/welcome-note-for-developers</link>
<description>&lt;p&gt;Welcome developers to the new framework developed in PHP.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Useful for Restful APIs.&lt;/p&gt;&lt;p&gt;Easy to implement.&lt;/p&gt;&lt;p&gt;Easy to understand.&lt;/p&gt;&lt;p&gt;Easy to learn.&amp;nbsp;&lt;/p&gt;&lt;h2&gt;&lt;strong&gt;Features&lt;/strong&gt;:&lt;/h2&gt;&lt;p&gt;Fast.&lt;/p&gt;&lt;p&gt;Secure&lt;/p&gt;&lt;p&gt;Dependency Injection&amp;nbsp;&lt;/p&gt;&lt;p&gt;Logging.&lt;/p&gt;&lt;p&gt;Middlewares.&lt;/p&gt;&lt;p&gt;Routes.&lt;/p&gt;&lt;p&gt;Request.&lt;/p&gt;&lt;p&gt;Cookies&lt;/p&gt;&lt;p&gt;Sessions&lt;/p&gt;&lt;p&gt;Header&lt;/p&gt;&lt;p&gt;Response&amp;nbsp;&lt;/p&gt;&lt;p&gt;A lot of classes with very useful functions.&amp;nbsp;&lt;/p&gt;</description>
<category>App</category>
<guid isPermaLink="true">https://trishulapi.com/forum/1/welcome-note-for-developers</guid>
<pubDate>Fri, 30 May 2025 06:31:57 +0000</pubDate>
</item>
</channel>
</rss>