<?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: Ishtiaq Ahmed</title>
    <description>The latest articles on Forem by Ishtiaq Ahmed (@rajaishtiaq6).</description>
    <link>https://forem.com/rajaishtiaq6</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%2F3658839%2F3c8394dd-d32b-4a2b-93db-4b4089720762.png</url>
      <title>Forem: Ishtiaq Ahmed</title>
      <link>https://forem.com/rajaishtiaq6</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/rajaishtiaq6"/>
    <language>en</language>
    <item>
      <title>Laravel ReverseKit: Generate Your Entire Laravel Backend From a JSON Structure</title>
      <dc:creator>Ishtiaq Ahmed</dc:creator>
      <pubDate>Fri, 12 Dec 2025 15:54:21 +0000</pubDate>
      <link>https://forem.com/rajaishtiaq6/laravel-reversekit-generate-your-entire-laravel-backend-from-a-json-structure-50m7</link>
      <guid>https://forem.com/rajaishtiaq6/laravel-reversekit-generate-your-entire-laravel-backend-from-a-json-structure-50m7</guid>
      <description>&lt;p&gt;I just released a new Laravel package called &lt;strong&gt;Laravel ReverseKit&lt;/strong&gt; that helps you build an entire Laravel backend from a single JSON structure — no AI required.&lt;/p&gt;

&lt;p&gt;Instead of writing models, controllers, migrations, policies, tests, and resources manually, you define the output (&lt;code&gt;JSON&lt;/code&gt;) once, and ReverseKit generates the full backend for you. (&lt;a href="https://github.com/shaqi-labs/laravel-reversekit" rel="noopener noreferrer"&gt;github.com&lt;/a&gt;)&lt;/p&gt;




&lt;h2&gt;
  
  
  🚀 What Laravel ReverseKit Does
&lt;/h2&gt;

&lt;p&gt;Laravel ReverseKit takes a JSON structure and generates:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Models with &lt;code&gt;$fillable&lt;/code&gt;, &lt;code&gt;$casts&lt;/code&gt;, and relationships
&lt;/li&gt;
&lt;li&gt;Migrations with inferred column types
&lt;/li&gt;
&lt;li&gt;API Controllers with CRUD methods
&lt;/li&gt;
&lt;li&gt;API Resources mirroring your JSON output
&lt;/li&gt;
&lt;li&gt;Form Requests for validation
&lt;/li&gt;
&lt;li&gt;Policies with ownership checks
&lt;/li&gt;
&lt;li&gt;Model Factories and Seeders
&lt;/li&gt;
&lt;li&gt;Feature Tests for your endpoints
&lt;/li&gt;
&lt;li&gt;API routes registered via &lt;code&gt;Route::apiResource()&lt;/code&gt; (&lt;a href="https://github.com/shaqi-labs/laravel-reversekit" rel="noopener noreferrer"&gt;github.com&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔧 How It Works
&lt;/h2&gt;

&lt;p&gt;Create a JSON file describing your expected API response (or provide a JSON string) and run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;php artisan reverse:generate path/to/your.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can also use:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Live API URLs (&lt;code&gt;--from-url&lt;/code&gt;)
&lt;/li&gt;
&lt;li&gt;OpenAPI/Swagger specs (&lt;code&gt;--from-openapi&lt;/code&gt;)
&lt;/li&gt;
&lt;li&gt;Postman collections (&lt;code&gt;--from-postman&lt;/code&gt;)
&lt;/li&gt;
&lt;li&gt;Existing database tables (&lt;code&gt;--from-database&lt;/code&gt;)
&lt;/li&gt;
&lt;li&gt;Interactive CLI mode (&lt;code&gt;reverse:interactive&lt;/code&gt;) (&lt;a href="https://github.com/shaqi-labs/laravel-reversekit" rel="noopener noreferrer"&gt;github.com&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This generates all backend files based on the JSON structure you define — models, controllers, migrations, policies, and more. (&lt;a href="https://github.com/shaqi-labs/laravel-reversekit" rel="noopener noreferrer"&gt;github.com&lt;/a&gt;)&lt;/p&gt;




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

&lt;p&gt;With JSON like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"user"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"John Doe"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"email"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"john@test.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"posts"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"title"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"First Post"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"body"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"Content"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"published"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Running the generate command creates:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;app/Models/User.php
app/Models/Post.php
app/Http/Controllers/UserController.php
app/Http/Controllers/PostController.php
app/Http/Resources/UserResource.php
app/Http/Resources/PostResource.php
app/Policies/UserPolicy.php
app/Policies/PostPolicy.php
database/migrations/xxxx_create_users_table.php
database/migrations/xxxx_create_posts_table.php
tests/Feature/UserTest.php
tests/Feature/PostTest.php
routes/api.php
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  📍 Resources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/shaqi-labs/laravel-reversekit" rel="noopener noreferrer"&gt;https://github.com/shaqi-labs/laravel-reversekit&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Packagist:&lt;/strong&gt; &lt;a href="https://packagist.org/packages/shaqi-labs/laravel-reversekit" rel="noopener noreferrer"&gt;https://packagist.org/packages/shaqi-labs/laravel-reversekit&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🛠 Why This Helps
&lt;/h2&gt;

&lt;p&gt;Writing all the boilerplate for a new backend — models, migrations, relationships, policies, tests — takes a lot of time and repetitive typing. ReverseKit lets you focus on your domain and let the tool scaffold the rest based on the output you care about.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>laravel</category>
      <category>php</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
